|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeElement
Interface that abstracts the idea of an element. An element has a name, list of NodeAttribute
's, a parent element and child elements
Method Summary | |
---|---|
void |
accept(NodeElementVisitor visitor)
Accepts an NodeElementVisitor |
void |
addAttribute(NodeAttribute attribute)
Add an attribute |
void |
addChildElement(NodeElement childElement)
Adds a child element. |
java.util.List<NodeAttribute> |
getAttributes()
List of attributes of this element |
java.util.List<NodeElement> |
getChildElements()
Returns the list of child elements. |
java.lang.String |
getFQName()
Same as calling getFQName(String) with the string "." |
java.lang.String |
getFQName(java.lang.String delimiter)
The fully qualified name of the element. |
java.lang.String |
getInnerContent()
The inner content of this element as string. |
java.lang.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(java.lang.String content)
Sets the inner content of this element |
void |
setOptional(boolean optional)
Sets optional or not |
Method Detail |
---|
java.lang.String getName()
java.lang.String getFQName()
getFQName(String)
with the string "."
java.lang.String getFQName(java.lang.String delimiter)
delimiter
string
delimiter
-
java.util.List<NodeAttribute> getAttributes()
NodeElement getParent()
java.util.List<NodeElement> getChildElements()
boolean hasChildren()
java.lang.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(java.lang.String content)
content
-
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |