NodeElement. Overrides equals(Object) and hashCode() methods by comparing the fully
qualified name of this element -- getFQName()
| Modifier and Type | Field and Description |
|---|---|
| protected final List | attributes
List of attributes |
| protected final List | children
List of child elements |
| protected String | innerContent
the inner string content |
| protected boolean | optional
Whether this element is optional |
| protected NodeElement | parent
The parent |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(NodeElementVisitor
the visitor whose visit methods will be called visitor)Implements net. NodeElementVisitor
|
| public static void | addAllFactoryConfigsAsChildElements(NodeElement
the element in which the child elements will be added element, String name to be used for the child element(s) name, Collection<? extends FactoryConfiguration<T extends FactoryConfiguration>> the factoryConfigurations)FactoryConfiguration'sHelper method that adds all the |
| public void | addAttribute(NodeAttribute
add an attribute attribute)Implements net. |
| public void | addChildElement(NodeElement
adds a child element childElement)Implements net. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public static List | Returns: list ofFactoryConfigurationElementthe parent for each of the create parent, String FactoryConfigurationElementname of the element(s) name, Collection<E> the factoryConfigurations1)FactoryConfiguration'sHelper method that creates |
| public List | getAttributes()
Implements net. |
| public List | getChildElements()
Implements net. |
| public String | getFQName()
Implements net. getFQName(String) with the string "."
|
| public String | getFQName(String delimiter)
Implements net. |
| private static String | |
| public String | getInnerContent()
Implements net. |
| public abstract String | getName()
Redeclares net. |
| public NodeElement | getParent()
Implements net. |
| public boolean | hasChildren()
Implements net. |
| public int | |
| public boolean | isOptional()
Implements net. |
| public void | setInnerContent(String content)
Implements net. |
| public void | setOptional(boolean optional)
Implements net. |
| public String |
| attributes | back to summary |
|---|---|
| protected final List<NodeAttribute> attributes List of attributes | |
| children | back to summary |
|---|---|
| protected final List<NodeElement> children List of child elements | |
| innerContent | back to summary |
|---|---|
| protected String innerContent the inner string content | |
| optional | back to summary |
|---|---|
| protected boolean optional Whether this element is optional | |
| parent | back to summary |
|---|---|
| protected NodeElement parent The parent | |
| AbstractNodeElement | back to summary |
|---|---|
| public AbstractNodeElement(NodeElement parent) Constructor accepting the parent of this element | |
| accept | back to summary |
|---|---|
| public void accept(NodeElementVisitor visitor) Implements net. Doc from net. Accepts an
| |
| addAllFactoryConfigsAsChildElements | back to summary |
|---|---|
| public static void addAllFactoryConfigsAsChildElements(NodeElement element, String name, Collection<? extends FactoryConfiguration<T extends FactoryConfiguration>> factoryConfigurations) Helper method that adds all the
| |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(NodeAttribute attribute) Implements net. Doc from net. Add an attribute
| |
| addChildElement | back to summary |
|---|---|
| public void addChildElement(NodeElement childElement) Implements net. Doc from net. Adds a child element.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAllFactoryElements | back to summary |
|---|---|
| public static List Helper method that creates
| |
| getAttributes | back to summary |
|---|---|
| public List Implements net. Doc from net. List of attributes of this element
| |
| getChildElements | back to summary |
|---|---|
| public List Implements net. Doc from net. Returns the list of child elements.
| |
| getFQName | back to summary |
|---|---|
| public String getFQName() Implements net. Doc from net. Same as calling
| |
| getFQName | back to summary |
|---|---|
| public String getFQName(String delimiter) Implements net. Doc from net. The fully qualified name of the element. The fully qualified name of the name is the name from the root element till this element
separated by the
| |
| getFQName | back to summary |
|---|---|
| private static String getFQName(NodeElement element, String delimiter) | |
| getInnerContent | back to summary |
|---|---|
| public String getInnerContent() Implements net. Doc from net. The inner content of this element as string. Does not include the child elements
| |
| getName | back to summary |
|---|---|
| public abstract String getName() Redeclares net. Doc from net. The name of the element
| |
| getParent | back to summary |
|---|---|
| public NodeElement getParent() Implements net. Doc from net. Returns the parent of this element. May be null.
| |
| hasChildren | back to summary |
|---|---|
| public boolean hasChildren() Implements net. Doc from net. Returns true if there is at least one child
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isOptional | back to summary |
|---|---|
| public boolean isOptional() Implements net. Doc from net. Returns true if this element is optional
| |
| setInnerContent | back to summary |
|---|---|
| public void setInnerContent(String content) Implements net. Doc from net. Sets the inner content of this element | |
| setOptional | back to summary |
|---|---|
| public void setOptional(boolean optional) Implements net. Doc from net. Sets optional or not | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |