public interface CMElementDeclaration
Modifier and Type | Field and Description |
---|---|
static Collection<CMElementDeclaration> |
ANY_ELEMENT_DECLARATIONS |
Modifier and Type | Method and Description |
---|---|
CMAttributeDeclaration |
findCMAttribute(String attributeName)
Returns the declared attribute which match the given name and null otherwise.
|
CMElementDeclaration |
findCMElement(String tag,
String namespace)
Returns the declared element which matches the given XML tag name / namespace
and null otherwise.
|
Collection<CMAttributeDeclaration> |
getAttributes()
Returns the attributes of this declared element.
|
String |
getDocumentation(ISharedSettingsRequest request)
Returns formatted documentation of the declared element,
according to settings defined in
request . |
String |
getDocumentURI()
Returns the owner document URI where the element is declared.
|
Collection<CMElementDeclaration> |
getElements()
Returns the children declared element of this declared element.
|
Collection<String> |
getEnumerationValues()
Return the enumeration values.
|
String |
getName()
Returns the declared element name.
|
default String |
getName(String prefix)
Returns the declared element name with the given prefix.
|
String |
getNamespace()
Returns the target namespace and null otherwise.
|
Collection<CMElementDeclaration> |
getPossibleElements(DOMElement parentElement,
int offset)
Returns the possible declared elements at the given offset of the given
parent element.
|
String |
getValueDocumentation(String value)
Returns the documentation for the given enumeration value and null otherwise.
|
boolean |
isEmpty()
Returns true if the element cannot contains element children or text content
and false otherwise.
|
static final Collection<CMElementDeclaration> ANY_ELEMENT_DECLARATIONS
String getName()
String getNamespace()
default String getName(String prefix)
Collection<CMAttributeDeclaration> getAttributes()
Collection<CMElementDeclaration> getElements()
Collection<CMElementDeclaration> getPossibleElements(DOMElement parentElement, int offset)
parentElement
- the parent elementoffset
- the offsetCMElementDeclaration findCMElement(String tag, String namespace)
tag
- namespace
- CMAttributeDeclaration findCMAttribute(String attributeName)
attributeName
- String getDocumentation(ISharedSettingsRequest request)
request
.request
- the request containing settingsrequest
.boolean isEmpty()
Collection<String> getEnumerationValues()
String getValueDocumentation(String value)
value
- the enumeration value.String getDocumentURI()
Copyright © 2020. All rights reserved.