public class CMXSDElementDeclaration extends Object implements CMElementDeclaration
ANY_ELEMENT_DECLARATIONS| Constructor and Description |
|---|
CMXSDElementDeclaration(CMXSDDocument document,
org.apache.xerces.xs.XSElementDeclaration elementDeclaration) |
| 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()
Returns the documentation of the declared element.
|
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.
|
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.
|
boolean |
isEmpty()
Returns true if the element cannot contains element children or text content
and false otherwise.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamepublic CMXSDElementDeclaration(CMXSDDocument document, org.apache.xerces.xs.XSElementDeclaration elementDeclaration)
public String getName()
CMElementDeclarationgetName in interface CMElementDeclarationpublic String getNamespace()
CMElementDeclarationgetNamespace in interface CMElementDeclarationpublic Collection<CMAttributeDeclaration> getAttributes()
CMElementDeclarationgetAttributes in interface CMElementDeclarationpublic Collection<CMElementDeclaration> getElements()
CMElementDeclarationgetElements in interface CMElementDeclarationpublic Collection<CMElementDeclaration> getPossibleElements(DOMElement parentElement, int offset)
CMElementDeclarationgetPossibleElements in interface CMElementDeclarationparentElement - the parent elementoffset - the offsetpublic String getDocumentation()
CMElementDeclarationgetDocumentation in interface CMElementDeclarationpublic CMElementDeclaration findCMElement(String tag, String namespace)
CMElementDeclarationfindCMElement in interface CMElementDeclarationpublic CMAttributeDeclaration findCMAttribute(String attributeName)
CMElementDeclarationfindCMAttribute in interface CMElementDeclarationpublic boolean isEmpty()
CMElementDeclarationisEmpty in interface CMElementDeclarationpublic Collection<String> getEnumerationValues()
CMElementDeclarationgetEnumerationValues in interface CMElementDeclarationpublic String getDocumentURI()
CMElementDeclarationgetDocumentURI in interface CMElementDeclarationCopyright © 2020. All rights reserved.