public class CMXSDAttributeDeclaration extends Object implements CMAttributeDeclaration
Constructor and Description |
---|
CMXSDAttributeDeclaration(org.apache.xerces.xs.XSAttributeUse attributeUse) |
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() |
Collection<String> |
getEnumerationValues() |
String |
getName()
Returns the declared element name.
|
boolean |
isRequired()
Returns true if the attribute is required and false otherwise.
|
public CMXSDAttributeDeclaration(org.apache.xerces.xs.XSAttributeUse attributeUse)
public String getName()
CMAttributeDeclaration
getName
in interface CMAttributeDeclaration
public String getDefaultValue()
getDefaultValue
in interface CMAttributeDeclaration
public String getAttributeNameDocumentation(ISharedSettingsRequest request)
CMAttributeDeclaration
request
getAttributeNameDocumentation
in interface CMAttributeDeclaration
request
- the request that contains settingsrequest
public String getAttributeValueDocumentation(String value, ISharedSettingsRequest request)
CMAttributeDeclaration
value
,
according to settings defined in request
getAttributeValueDocumentation
in interface CMAttributeDeclaration
value
- the attribute value to find documentation forrequest
- the request containing settingsvalue
,
according to settings defined in request
public boolean isRequired()
CMAttributeDeclaration
isRequired
in interface CMAttributeDeclaration
public Collection<String> getEnumerationValues()
getEnumerationValues
in interface CMAttributeDeclaration
Copyright © 2021. All rights reserved.