public interface CMAttributeDeclaration
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.
|
default String |
getName(Map<String,String> prefixes)
Returns the declared attribute name with the proper prefix mapped with the
attribute namespace and the local name otherwise.
|
default String |
getName(String prefix)
Returns the declared attribute name with the given prefix.
|
String |
getNamespace()
Returns the target namespace and null otherwise.
|
CMElementDeclaration |
getOwnerElementDeclaration()
Returns the owner element declaration.
|
boolean |
isRequired()
Returns true if the attribute is required and false otherwise.
|
String getLocalName()
String getNamespace()
CMElementDeclaration getOwnerElementDeclaration()
default String getName(String prefix)
default String getName(Map<String,String> prefixes)
prefixes
- map which contains namespace as key and prefix as value.String getDefaultValue()
Collection<String> getEnumerationValues()
String getAttributeNameDocumentation(ISharedSettingsRequest request)
request
request
- the request that contains settingsrequest
String getAttributeValueDocumentation(String value, ISharedSettingsRequest request)
value
, according to
settings defined in request
value
- the attribute value to find documentation forrequest
- the request containing settingsvalue
, according to
settings defined in request
boolean isRequired()
Copyright © 2022. All rights reserved.