public class ExtElement extends DataWithExtAttributes implements IExtChild
| Constructor and Description |
|---|
ExtElement(ExtElement original)
Copy constructor.
|
ExtElement(javax.xml.namespace.QName qName)
Creates a new
ExtElement object. |
| Modifier and Type | Method and Description |
|---|---|
IExtChild |
addChild(IExtChild child)
Adds a
IExtChild object to this element. |
ExtContent |
addContent(java.lang.String text)
Adds a text content to this element.
|
ExtElement |
addElement(java.lang.String localPart)
Adds a child element to this element, both of the same namespace.
|
ExtElement |
addElement(java.lang.String namespaceURI,
java.lang.String localPart,
java.lang.String prefix)
Adds a child element to this element.
|
ExtAttributes |
getAttributes()
Deprecated.
|
java.util.List<IExtChild> |
getChildren()
Gets the list of the children of this element.
|
ExtContent |
getFirstContent()
Gets the first child content of this element.
|
ExtElement |
getFirstElement()
Gets the first child element of this element.
|
ExtElement |
getFirstElement(java.lang.String namespaceURI,
java.lang.String localName)
Gets the first element child for a given namespace and name of this element.
|
javax.xml.namespace.QName |
getQName()
Gets the QName of this element.
|
ExtChildType |
getType()
Gets the type of child this object is (one of the
ExtChildType values). |
boolean |
hasChild()
Indicates if this element has at least one child.
|
boolean |
isModule()
Indicates if this extension element is part of a module or not.
|
getExtAttributes, getExtAttributeValue, hasExtAttribute, setExtAttributespublic ExtElement(ExtElement original)
original - the original object to duplicate.public ExtElement(javax.xml.namespace.QName qName)
ExtElement object.qName - the qualified name of the element.public javax.xml.namespace.QName getQName()
@Deprecated public ExtAttributes getAttributes()
ExtAttributes object for this element.
This is kept for backward compatibility, use DataWithExtAttributes.getExtAttributes() instead.ExtAttributes object for this element.public ExtChildType getType()
IExtChildExtChildType values).public boolean hasChild()
public java.util.List<IExtChild> getChildren()
hasChild()public ExtElement getFirstElement(java.lang.String namespaceURI, java.lang.String localName)
namespaceURI - the namespace URI of the element to retrieve.localName - the name of the element to retrieve.public ExtElement getFirstElement()
public ExtContent getFirstContent()
public IExtChild addChild(IExtChild child)
IExtChild object to this element.child - the object to add.public ExtElement addElement(java.lang.String namespaceURI, java.lang.String localPart, java.lang.String prefix)
namespaceURI - the namespace URI of the element to add.localPart - the local part of the name of the element to add.prefix - the prefix of the name of the element to add.public ExtElement addElement(java.lang.String localPart)
localPart - the local part of the name of the element to add.public ExtContent addContent(java.lang.String text)
text - the text to add.ExtContent object.public boolean isModule()