Package org.concordion.api
Class Element
java.lang.Object
org.concordion.api.Element
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(String localName, String value) addStyleClass
(String styleClass) void
appendChild
(Element element) void
appendSister
(Element element) appendText
(String text) boolean
getAttributeValue
(String name) getAttributeValue
(String localName, String namespaceURI) Element[]
Element[]
getChildElements
(String name) Element[]
getDescendantElements
(String name) getElementById
(String id) Returns the first child Element with the specified "id" attribute, or null, if no matching element is found.getFirstChildElement
(String name) Returns the element that contains this element, or null if this element is the root element or is orphaned.getText()
boolean
int
hashCode()
boolean
void
moveAttributesTo
(Element element) void
moveChildrenTo
(Element element) prependChild
(Element element) prependText
(String text) void
removeAttribute
(String name) void
removeAttribute
(String localName, String namespaceURI) void
removeChild
(Element element) toXML()
-
Field Details
-
XHTML_PREFIX
- See Also:
-
XHTML_URI
- See Also:
-
-
Constructor Details
-
Element
-
Element
public Element(nu.xom.Element xomElement) For internal use only.- Parameters:
xomElement
- the xom element to initialise
-
-
Method Details
-
getText
-
addStyleClass
-
appendNonBreakingSpace
-
appendText
-
appendNonBreakingSpaceIfBlank
-
prependText
-
prependChild
-
appendChild
-
removeChild
-
moveChildrenTo
-
setId
-
addAttribute
-
getAttributeValue
-
getAttributeValue
-
removeAttribute
-
removeAttribute
-
moveAttributesTo
-
toXML
-
getRootElement
-
getFirstChildElement
-
hasChildren
public boolean hasChildren() -
hashCode
public int hashCode() -
equals
-
getLocalName
-
isNamed
-
getDescendantElements
-
getChildElements
-
getChildElements
-
getFirstDescendantNamed
-
appendSister
-
getElementById
Returns the first child Element with the specified "id" attribute, or null, if no matching element is found.- Parameters:
id
- the id of the element to get- Returns:
- the element - or null if not found
-
getParentElement
Returns the element that contains this element, or null if this element is the root element or is orphaned.- Returns:
- Element
-
deepClone
-