public class CMRelaxNGAttributeDeclaration extends Object implements CMAttributeDeclaration
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.
| Constructor and Description |
|---|
CMRelaxNGAttributeDeclaration(CMRelaxNGElementDeclaration element,
com.thaiopensource.relaxng.pattern.AttributePattern pattern) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeNameDocumentation(ISharedSettingsRequest request)
Returns formatted documentation of the declared attribute according to
settings defined in
request |
String |
getAttributeValueDocumentation(String value,
ISharedSettingsRequest request)
Returns formatted documentation about
value, according to
settings defined in request |
String |
getDefaultValue()
Returns the default value of the declared attribute and null otherwise.
|
Collection<String> |
getEnumerationValues()
Returns enumeration values of the declared attribute and empty collection
otherwise.
|
String |
getLocalName()
Returns the declared attribute local name.
|
String |
getNamespace()
Returns the target namespace and null otherwise.
|
CMElementDeclaration |
getOwnerElementDeclaration()
Returns the owner element declaration.
|
com.thaiopensource.relaxng.pattern.AttributePattern |
getPattern() |
boolean |
isRequired()
Returns true if the attribute is required and false otherwise.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getNamepublic CMRelaxNGAttributeDeclaration(CMRelaxNGElementDeclaration element, com.thaiopensource.relaxng.pattern.AttributePattern pattern)
public String getLocalName()
CMAttributeDeclarationgetLocalName in interface CMAttributeDeclarationpublic String getNamespace()
CMAttributeDeclarationgetNamespace in interface CMAttributeDeclarationpublic CMElementDeclaration getOwnerElementDeclaration()
CMAttributeDeclarationgetOwnerElementDeclaration in interface CMAttributeDeclarationpublic String getDefaultValue()
CMAttributeDeclarationgetDefaultValue in interface CMAttributeDeclarationpublic Collection<String> getEnumerationValues()
CMAttributeDeclarationgetEnumerationValues in interface CMAttributeDeclarationpublic String getAttributeNameDocumentation(ISharedSettingsRequest request)
CMAttributeDeclarationrequestgetAttributeNameDocumentation in interface CMAttributeDeclarationrequest - the request that contains settingsrequestpublic String getAttributeValueDocumentation(String value, ISharedSettingsRequest request)
CMAttributeDeclarationvalue, according to
settings defined in requestgetAttributeValueDocumentation in interface CMAttributeDeclarationvalue - the attribute value to find documentation forrequest - the request containing settingsvalue, according to
settings defined in requestpublic boolean isRequired()
CMAttributeDeclarationisRequired in interface CMAttributeDeclarationpublic com.thaiopensource.relaxng.pattern.AttributePattern getPattern()
Copyright © 2022. All rights reserved.