public class ExtElement extends DataWithExtAttributes implements IExtChild
| Constructor and Description |
|---|
ExtElement(ExtElement original)
Copy constructor.
|
ExtElement(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(String text)
Adds a text content to this element.
|
ExtElement |
addElement(String localPart)
Adds a child element to this element, both of the same namespace.
|
ExtElement |
addElement(String namespaceURI,
String localPart,
String prefix)
Adds a child element to this element.
|
boolean |
equals(Object obj)
Indicates if this object is equals to a given one.
|
ExtAttributes |
getAttributes()
Deprecated.
|
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(String namespaceURI,
String localName)
Gets the first element child for a given namespace and name of this element.
|
QName |
getQName()
Gets the QName of this element.
|
ExtChildType |
getType()
Gets the
ExtChildType type for this element. |
boolean |
hasChild()
Indicates if this element has at least one child.
|
int |
hashCode() |
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(QName qName)
ExtElement object.qName - the qualified name of the element.public 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()
ExtChildType type for this element.getType in interface IExtChildExtChildType type for this element.public boolean hasChild()
public List<IExtChild> getChildren()
hasChild()public ExtElement getFirstElement(String namespaceURI, 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(String namespaceURI, String localPart, 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(String localPart)
localPart - the local part of the name of the element to add.public ExtContent addContent(String text)
text - the text to add.ExtContent object.public boolean isModule()
public int hashCode()
hashCode in class DataWithExtAttributespublic boolean equals(Object obj)
DataWithExtAttributesequals in class DataWithExtAttributesobj - the other object to compare.Copyright © 2020. All rights reserved.