public class ElementDeclaration extends ContainerDeclaration
| Constructor and Description |
|---|
ElementDeclaration(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildHierarchy(List<String> tags) |
void |
addElement(ElementDeclaration element) |
AttributeDeclaration |
getAttribute(String name)
Returns the attribute information for the given name and create it if not
found.
|
Collection<AttributeDeclaration> |
getAttributes() |
ChildrenProperties |
getChildrenProperties() |
String |
getName()
Returns the element name.
|
int |
getOccurrences()
Returns the occurrences of DOM element.
|
ElementDeclaration |
getParent() |
boolean |
hasAttributeId()
Returns true if the element have an attribute ID and false otherwise.
|
boolean |
hasCharacterContent()
Returns true if element has character content and false otherwise.
|
void |
incrementOccurrences()
Increment the DOM element occurrence.
|
getElement, getElementspublic ElementDeclaration(String name)
public String getName()
public AttributeDeclaration getAttribute(String name)
name - the attribute namepublic Collection<AttributeDeclaration> getAttributes()
public boolean hasCharacterContent()
public void addElement(ElementDeclaration element)
addElement in class ContainerDeclarationpublic ElementDeclaration getParent()
public ChildrenProperties getChildrenProperties()
public void incrementOccurrences()
public int getOccurrences()
public boolean hasAttributeId()
Copyright © 2024. All rights reserved.