|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.model.xml.impl.instance.DomElementImpl
public class DomElementImpl
| Constructor Summary | |
|---|---|
DomElementImpl(Element element)
|
|
| Method Summary | |
|---|---|
void |
addCDataSection(String data)
Adds a CDATA section to this element. |
void |
appendChild(DomElement childDomElement)
Appends the element to the child elements of this element. |
boolean |
equals(Object o)
|
String |
getAttribute(String attributeName)
Returns the attribute value for the namespace of this element. |
String |
getAttribute(String namespaceUri,
String localName)
Returns the attribute value for the given namespace. |
List<DomElement> |
getChildElements()
Returns all child elements of this element. |
List<DomElement> |
getChildElementsByNameNs(Set<String> namespaceUris,
String elementName)
Returns all child elements of this element with specific namespaces + name. |
List<DomElement> |
getChildElementsByNameNs(String namespaceUri,
String elementName)
Returns all child elements of this element with a specific namespace + name |
List<DomElement> |
getChildElementsByType(ModelInstanceImpl modelInstance,
Class<? extends ModelElementInstance> elementType)
Returns all child elements of this element with a specific type. |
DomDocument |
getDocument()
Returns the DOM document which contains this element. |
protected Element |
getElement()
|
String |
getLocalName()
Returns the local name of this element. |
ModelElementInstance |
getModelElementInstance()
Returns the ModelElementInstance which is associated with this element. |
String |
getNamespaceURI()
Returns the namespace URI for this element. |
DomElement |
getParentElement()
Returns the parent element of this element. |
String |
getPrefix()
Returns the prefix of this element. |
DomElement |
getRootElement()
Returns the root element of the document which contains this element. |
String |
getTextContent()
Gets the text content of this element all its descendants. |
boolean |
hasAttribute(String localName)
Checks if this element has a attribute under the namespace of this element. |
boolean |
hasAttribute(String namespaceUri,
String localName)
Checks if this element has a attribute with the given namespace. |
int |
hashCode()
|
void |
insertChildElementAfter(DomElement elementToInsert,
DomElement insertAfter)
Inserts the new child element after another child element. |
String |
lookupPrefix(String namespaceUri)
Returns the prefix of the namespace starting from this node upwards. |
String |
registerNamespace(String namespaceUri)
Adds a new namespace with a generated prefix to this element. |
void |
registerNamespace(String prefix,
String namespaceUri)
Adds a new namespace with prefix to this element. |
void |
removeAttribute(String localName)
Removes the attribute for the namespace of this element. |
void |
removeAttribute(String namespaceUri,
String localName)
Removes the attribute for the given namespace. |
boolean |
removeChild(DomElement childDomElement)
Removes a child element of this element. |
void |
replaceChild(DomElement newChildDomElement,
DomElement existingChildDomElement)
Replaces a child element with a new element. |
void |
setAttribute(String localName,
String value)
Sets the attribute value for the namespace of this element. |
void |
setAttribute(String namespaceUri,
String localName,
String value)
Sets the attribute value for the given namespace. |
void |
setIdAttribute(String localName,
String value)
Sets the value of a id attribute for the namespace of this element. |
void |
setIdAttribute(String namespaceUri,
String localName,
String value)
Sets the value of a id attribute for the given namespace. |
void |
setModelElementInstance(ModelElementInstance modelElementInstance)
Sets the ModelElementInstance which should be associated with this element. |
void |
setTextContent(String textContent)
Sets the text content of this element. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomElementImpl(Element element)
| Method Detail |
|---|
protected Element getElement()
public String getNamespaceURI()
DomElement
getNamespaceURI in interface DomElementpublic String getLocalName()
DomElement
getLocalName in interface DomElementpublic String getPrefix()
DomElement
getPrefix in interface DomElementpublic DomDocument getDocument()
DomElement
getDocument in interface DomElementpublic DomElement getRootElement()
DomElement
getRootElement in interface DomElementpublic DomElement getParentElement()
DomElement
getParentElement in interface DomElementpublic List<DomElement> getChildElements()
DomElement
getChildElements in interface DomElement
public List<DomElement> getChildElementsByNameNs(String namespaceUri,
String elementName)
DomElement
getChildElementsByNameNs in interface DomElement
public List<DomElement> getChildElementsByNameNs(Set<String> namespaceUris,
String elementName)
DomElement
getChildElementsByNameNs in interface DomElement
public List<DomElement> getChildElementsByType(ModelInstanceImpl modelInstance,
Class<? extends ModelElementInstance> elementType)
DomElement
getChildElementsByType in interface DomElement
public void replaceChild(DomElement newChildDomElement,
DomElement existingChildDomElement)
DomElement
replaceChild in interface DomElementnewChildDomElement - the new child elementexistingChildDomElement - the existing child elementpublic boolean removeChild(DomElement childDomElement)
DomElement
removeChild in interface DomElementchildDomElement - the child element to remove
public void appendChild(DomElement childDomElement)
DomElement
appendChild in interface DomElementchildDomElement - the element to append
public void insertChildElementAfter(DomElement elementToInsert,
DomElement insertAfter)
DomElement
insertChildElementAfter in interface DomElementelementToInsert - the new element to insertinsertAfter - the existing child element to insert after or nullpublic boolean hasAttribute(String localName)
DomElement
hasAttribute in interface DomElementlocalName - the name of the attribute
public boolean hasAttribute(String namespaceUri,
String localName)
DomElement
hasAttribute in interface DomElementnamespaceUri - the namespaceUri of the namespacelocalName - the name of the attribute
public String getAttribute(String attributeName)
DomElement
getAttribute in interface DomElementattributeName - the name of the attribute
public String getAttribute(String namespaceUri,
String localName)
DomElement
getAttribute in interface DomElementnamespaceUri - the namespaceUri of the namespacelocalName - the name of the attribute
public void setAttribute(String localName,
String value)
DomElement
setAttribute in interface DomElementlocalName - the name of the attributevalue - the value to set
public void setAttribute(String namespaceUri,
String localName,
String value)
DomElement
setAttribute in interface DomElementnamespaceUri - the namespaceUri of the namespacelocalName - the name of the attributevalue - the value to set
public void setIdAttribute(String localName,
String value)
DomElement
setIdAttribute in interface DomElementlocalName - the name of the attributevalue - the value to set
public void setIdAttribute(String namespaceUri,
String localName,
String value)
DomElement
setIdAttribute in interface DomElementnamespaceUri - the namespaceUri of the namespacelocalName - the name of the attributevalue - the value to setpublic void removeAttribute(String localName)
DomElement
removeAttribute in interface DomElementlocalName - the name of the attribute
public void removeAttribute(String namespaceUri,
String localName)
DomElement
removeAttribute in interface DomElementnamespaceUri - the namespaceUri of the namespacelocalName - the name of the attributepublic String getTextContent()
DomElement
getTextContent in interface DomElementpublic void setTextContent(String textContent)
DomElement
setTextContent in interface DomElementtextContent - the text content to setpublic void addCDataSection(String data)
DomElement
addCDataSection in interface DomElementpublic ModelElementInstance getModelElementInstance()
DomElementModelElementInstance which is associated with this element.
getModelElementInstance in interface DomElementModelElementInstance or null if non is associatedpublic void setModelElementInstance(ModelElementInstance modelElementInstance)
DomElementModelElementInstance which should be associated with this element.
setModelElementInstance in interface DomElementmodelElementInstance - the ModelElementInstance to associatepublic String registerNamespace(String namespaceUri)
DomElement
registerNamespace in interface DomElementnamespaceUri - the namespaceUri of the namespace
public void registerNamespace(String prefix,
String namespaceUri)
DomElement
registerNamespace in interface DomElementprefix - the prefix of the namespacenamespaceUri - the namespaceUri of the namespacepublic String lookupPrefix(String namespaceUri)
DomElementnull.
lookupPrefix in interface DomElementnamespaceUri - the namespaceUri of the namespace
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||