Class CMRelaxNGAttributeDeclaration
java.lang.Object
com.thaiopensource.relaxng.pattern.CMRelaxNGAttributeDeclaration
- All Implemented Interfaces:
CMAttributeDeclaration
RelaxNG content attribute implementation.
NOTE : this class is hosted in 'com.thaiopensource.relaxng.pattern' because
Pattern implementation like ElementPattern are not public.
Once https://github.com/relaxng/jing-trang/issues/271 will be fixed we could
move this class in 'org.eclipse.lemminx.extensions.relaxng.contentmodel'
package.
- Author:
- Angelo ZERR
-
Constructor Summary
ConstructorsConstructorDescriptionCMRelaxNGAttributeDeclaration(CMRelaxNGElementDeclaration element, com.thaiopensource.relaxng.pattern.AttributePattern pattern) -
Method Summary
Modifier and TypeMethodDescriptionReturns formatted documentation of the declared attribute according to settings defined inrequestgetAttributeValueDocumentation(String value, ISharedSettingsRequest request) Returns formatted documentation aboutvalue, according to settings defined inrequestReturns the default value of the declared attribute and null otherwise.Returns enumeration values of the declared attribute and empty collection otherwise.Returns the declared attribute local name.Returns the target namespace and null otherwise.Returns the owner element declaration.com.thaiopensource.relaxng.pattern.AttributePatternbooleanReturns true if the attribute is required and false otherwise.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.lemminx.extensions.contentmodel.model.CMAttributeDeclaration
getName, getName
-
Constructor Details
-
CMRelaxNGAttributeDeclaration
public CMRelaxNGAttributeDeclaration(CMRelaxNGElementDeclaration element, com.thaiopensource.relaxng.pattern.AttributePattern pattern)
-
-
Method Details
-
getLocalName
Description copied from interface:CMAttributeDeclarationReturns the declared attribute local name.- Specified by:
getLocalNamein interfaceCMAttributeDeclaration- Returns:
- the declared attribute local name.
-
getNamespace
Description copied from interface:CMAttributeDeclarationReturns the target namespace and null otherwise.- Specified by:
getNamespacein interfaceCMAttributeDeclaration- Returns:
- the target namespace and null otherwise.
-
getOwnerElementDeclaration
Description copied from interface:CMAttributeDeclarationReturns the owner element declaration.- Specified by:
getOwnerElementDeclarationin interfaceCMAttributeDeclaration- Returns:
- the owner element declaration.
-
getDefaultValue
Description copied from interface:CMAttributeDeclarationReturns the default value of the declared attribute and null otherwise.- Specified by:
getDefaultValuein interfaceCMAttributeDeclaration- Returns:
- the default value of the declared attribute and null otherwise.
-
getEnumerationValues
Description copied from interface:CMAttributeDeclarationReturns enumeration values of the declared attribute and empty collection otherwise.- Specified by:
getEnumerationValuesin interfaceCMAttributeDeclaration- Returns:
- enumeration values of the declared attribute and empty collection otherwise.
-
isRequired
public boolean isRequired()Description copied from interface:CMAttributeDeclarationReturns true if the attribute is required and false otherwise.- Specified by:
isRequiredin interfaceCMAttributeDeclaration- Returns:
- true if the attribute is required and false otherwise.
-
getPattern
public com.thaiopensource.relaxng.pattern.AttributePattern getPattern() -
toString
-