Element.ElementContentType, Element.Property
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
ANY_HTML |
protected static Pattern |
HTML_MEDIA_TYPE |
protected String |
m_type |
protected static Pattern |
TEXT_MEDIA_TYPE |
protected static Pattern |
XHTML_DIV |
protected static Pattern |
XHTML_MEDIA_TYPE |
protected static Pattern |
XML_MEDIA_TYPE |
m_attributes, m_base, m_baseURI, m_children, m_content, m_lang, m_name, m_parent, STRIP_FROM_NORMAL_NAME
Modifier and Type | Method and Description |
---|---|
void |
enforceConformance()
Execute any additional logic needed to make this element
conform to the atom (or other) spec.
|
String |
getType() |
protected void |
printStartTag(PrintWriter out,
int tabs)
Prints the start tag for this element.
|
protected void |
printTextualContent(PrintWriter out,
String content)
Prints the specified textual content for this element, escaping as necessary.
|
protected void |
setProperties(IContentProvider provider,
Collection<?> keys)
Set the normalized properties of this element.
|
void |
setType(String type) |
enforceChildrenConformance, enforceChildrenConformance, escapeXMLContent, escapeXMLName, firstValue, getAttributes, getBase, getBaseUri, getBaseURI, getChildren, getContent, getLang, getName, getParent, initialize, multipleValues, printAttribute, printChildren, printChildren, printChildren, printContent, printEndTag, serialize, setAttributes, setBase, setChildren, setContent, setLang, setName, setParent, toString
protected static final Pattern ANY_HTML
protected static final Pattern XHTML_DIV
protected static final Pattern TEXT_MEDIA_TYPE
protected static final Pattern HTML_MEDIA_TYPE
protected static final Pattern XHTML_MEDIA_TYPE
protected static final Pattern XML_MEDIA_TYPE
protected String m_type
public Text()
public Text(Object o)
public void enforceConformance()
Element
enforceConformance
in class Element
protected void setProperties(IContentProvider provider, Collection<?> keys)
Element
setProperties
in class Element
protected void printStartTag(PrintWriter out, int tabs)
Element
printStartTag
in class Element
protected void printTextualContent(PrintWriter out, String content)
Element
printTextualContent
in class Element
public String getType()
public void setType(String type)