Class ElementDeclaration
java.lang.Object
org.eclipse.lemminx.extensions.generators.ContainerDeclaration
org.eclipse.lemminx.extensions.generators.ElementDeclaration
Element information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildHierarchy(List<String> tags) voidaddElement(ElementDeclaration element) getAttribute(String name) Returns the attribute information for the given name and create it if not found.getName()Returns the element name.intReturns the occurrences of DOM element.booleanReturns true if the element have an attribute ID and false otherwise.booleanReturns true if element has character content and false otherwise.voidIncrement the DOM element occurrence.Methods inherited from class org.eclipse.lemminx.extensions.generators.ContainerDeclaration
getElement, getElements
-
Constructor Details
-
ElementDeclaration
-
-
Method Details
-
getName
Returns the element name.- Returns:
- the element name.
-
getAttribute
Returns the attribute information for the given name and create it if not found.- Parameters:
name- the attribute name- Returns:
- the attribute information for the given name and create it if not found.
-
getAttributes
-
hasCharacterContent
public boolean hasCharacterContent()Returns true if element has character content and false otherwise.- Returns:
- true if element has character content and false otherwise.
-
addElement
- Overrides:
addElementin classContainerDeclaration
-
getParent
-
addChildHierarchy
-
getChildrenProperties
-
incrementOccurrences
public void incrementOccurrences()Increment the DOM element occurrence. -
getOccurrences
public int getOccurrences()Returns the occurrences of DOM element.- Returns:
- the occurrences of DOM element.
-
hasAttributeId
public boolean hasAttributeId()Returns true if the element have an attribute ID and false otherwise.- Returns:
- true if the element have an attribute ID and false otherwise.
-