Package org.apache.abdera.model

Examples of org.apache.abdera.model.Text

Per RFC4287:

 A Text construct contains human-readable text, usually in small quantities.  The content of Text constructs is Language-Sensitive. atomPlainTextConstruct = atomCommonAttributes, attribute type { "text" | "html" }?, text atomXHTMLTextConstruct = atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv atomTextConstruct = atomPlainTextConstruct | atomXHTMLTextConstruct 

    setTextElement(SUBTITLE, text, false);
  }

  public Text setSubtitle(String value) {
    FOMFactory factory = (FOMFactory)this.factory;
    Text text = factory.newSubtitle();
    text.setValue(value);
    setSubtitleElement(text);
    return text;
  }
View Full Code Here


    return setSubtitle(value, Text.Type.XHTML);
  }
 
  public Text setSubtitle(String value, Text.Type type) {
    FOMFactory factory = (FOMFactory)this.factory;
    Text text = factory.newSubtitle(type);
    text.setValue(value);
    setSubtitleElement(text);
    return text;
  }
View Full Code Here

    return text;
  }
 
  public Text setSubtitle(Div value) {
    FOMFactory factory = (FOMFactory)this.factory;
    Text text = factory.newSubtitle(value);
    setSubtitleElement(text);
    return text;
  }
View Full Code Here

    setTextElement(TITLE, text, false);
  }

  public Text setTitle(String value) {
    FOMFactory factory = (FOMFactory)this.factory;
    Text text = factory.newTitle();
    text.setValue(value);
    setTitleElement(text);
    return text;
  }
View Full Code Here

    return setTitle(value, Text.Type.XHTML);
  }
 
  public Text setTitle(String value, Text.Type type) {
    FOMFactory factory = (FOMFactory)this.factory;
    Text text = factory.newTitle(type);
    text.setValue(value);
    setTitleElement(text);
    return text;
  }
View Full Code Here

    return text;
  }
 
  public Text setTitle(Div value) {
    FOMFactory factory = (FOMFactory)this.factory;
    Text text = factory.newTitle(value);
    setTitleElement(text);
    return text;
  }
View Full Code Here

    Link link = getAlternateLink();
    return (link != null) ? link.getResolvedHref() : null;
  }
 
  public Text.Type getRightsType() {
    Text text = getRightsElement();
    return (text != null) ? text.getTextType() : null;
  }
View Full Code Here

    Text text = getRightsElement();
    return (text != null) ? text.getTextType() : null;
  }

  public Text.Type getSubtitleType() {
    Text text = getSubtitleElement();
    return (text != null) ? text.getTextType() : null;
  }
View Full Code Here

    Text text = getSubtitleElement();
    return (text != null) ? text.getTextType() : null;
  }

  public Text.Type getTitleType() {
    Text text = getTitleElement();
    return (text != null) ? text.getTextType() : null;
  }
View Full Code Here

    OMXMLParserWrapper builder) {
      super(COLLECTION, parent, factory, builder);
  }
 
  public String getTitle() {
    Text title = this.getFirstChild(TITLE);
    return (title != null) ? title.getValue() : null;
  }
View Full Code Here

TOP

Related Classes of org.apache.abdera.model.Text

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.