public interface NodeElement
NodeAttribute
's, a parent element and child elementsModifier and Type | Method and Description |
---|---|
void |
accept(NodeElementVisitor visitor)
Accepts an
NodeElementVisitor |
void |
addAttribute(NodeAttribute attribute)
Add an attribute
|
void |
addChildElement(NodeElement childElement)
Adds a child element.
|
List<NodeAttribute> |
getAttributes()
List of attributes of this element
|
List<NodeElement> |
getChildElements()
Returns the list of child elements.
|
String |
getFQName()
Same as calling
getFQName(String) with the string "." |
String |
getFQName(String delimiter)
The fully qualified name of the element.
|
String |
getInnerContent()
The inner content of this element as string.
|
String |
getName()
The name of the element
|
NodeElement |
getParent()
Returns the parent of this element.
|
boolean |
hasChildren()
Returns true if there is at least one child
|
boolean |
isOptional()
Returns true if this element is optional
|
void |
setInnerContent(String content)
Sets the inner content of this element
|
void |
setOptional(boolean optional)
Sets optional or not
|
String getName()
String getFQName()
getFQName(String)
with the string "."String getFQName(String delimiter)
delimiter
stringdelimiter
- List<NodeAttribute> getAttributes()
NodeElement getParent()
List<NodeElement> getChildElements()
boolean hasChildren()
String getInnerContent()
void addAttribute(NodeAttribute attribute)
attribute
- add an attributevoid addChildElement(NodeElement childElement)
childElement
- adds a child elementvoid accept(NodeElementVisitor visitor)
NodeElementVisitor
visitor
- the visitor whose visit methods will be calledboolean isOptional()
void setOptional(boolean optional)
optional
- void setInnerContent(String content)
content
- Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.