Package com.articulate.sigma
Class SimpleElement
java.lang.Object
com.articulate.sigma.SimpleElement
SimpleElement is the only node type for
simplified DOM model. Note that all CDATA values are stored with
reserved characters > and < converted to entity types
respectively.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildElement(SimpleElement element) getAttribute(String name) getChildByFirstTag(String tag) Retrieves the first child element by namegetText()voidsetAttribute(String name, String value) voidsetTagName(String tagName) voidtoFileString(int indent) toString()toString(int indent, boolean forFile)
-
Constructor Details
-
SimpleElement
-
-
Method Details
-
getTagName
-
setTagName
-
getText
-
setText
-
getAttribute
-
getAttributeNames
-
setAttribute
-
addChildElement
-
getChildElements
-
getChildByFirstTag
Retrieves the first child element by name- Parameters:
tag- an element name to search for- Returns:
- the first child with the given tag name, null if none
-
toString
-
toString
-
toFileString
-
toFileString
-