Class AttributeDeclaration
java.lang.Object
org.eclipse.lemminx.extensions.generators.AttributeDeclaration
Attribute declaration.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the attribute data type.getName()Returns the attribute name.intReturns the occurrences of DOM attribute.Returns the all distinct attribute values.voidIncrement the DOM attributes occurrence.booleanbooleanbooleanisEnums(FileContentGeneratorSettings settings) Returns true if attributes have values enumeration and false otherwise.booleanisFixedValue(FileContentGeneratorSettings settings) Returns true if all values of the attribute are fixed with a given value and false otherwise.booleanisID(FileContentGeneratorSettings settings) Returns true if the attribute is an ID and false otherwise.booleanReturns true if the attribute declaration is required and false otherwise.booleanisUnique()
-
Constructor Details
-
AttributeDeclaration
-
-
Method Details
-
getName
Returns the attribute name.- Returns:
- the attribute name.
-
incrementOccurrences
public void incrementOccurrences()Increment the DOM attributes occurrence. -
addValue
-
getOccurrences
public int getOccurrences()Returns the occurrences of DOM attribute.- Returns:
- the occurrences of DOM attribute.
-
isID
Returns true if the attribute is an ID and false otherwise.- Parameters:
settings- the generator settings.- Returns:
- true if the attribute is an ID and false otherwise.
-
isRequired
public boolean isRequired()Returns true if the attribute declaration is required and false otherwise.- Returns:
- true if the attribute declaration is required and false otherwise.
-
isUnique
public boolean isUnique() -
isAllNames
public boolean isAllNames() -
isAllNMTOKENs
public boolean isAllNMTOKENs() -
getValues
Returns the all distinct attribute values.- Returns:
- the all distinct attribute values.
-
isFixedValue
Returns true if all values of the attribute are fixed with a given value and false otherwise.- Parameters:
settings- the generator settings.- Returns:
- true if all values of the attribute are fixed with a given value and false otherwise.
-
isEnums
Returns true if attributes have values enumeration and false otherwise.- Parameters:
settings- the generator settings.- Returns:
- true if attributes have values enumeration and false otherwise.
-
getDataType
Returns the attribute data type.- Returns:
- the attribute data type.
-