| 
 | 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. | 
|  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 | 
| Method Detail | 
|---|
String getName()
String getFQName()
getFQName(String) with the string "."
String getFQName(String delimiter)
delimiter string
delimiter - 
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 - | 
 | ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||