|
||||||||||
| 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.DomDocumentImpl
public class DomDocumentImpl
| Field Summary | |
|---|---|
static String |
GENERIC_NS_PREFIX
|
| Constructor Summary | |
|---|---|
DomDocumentImpl(Document document)
|
|
| Method Summary | |
|---|---|
DomDocument |
clone()
Clones the DOM document. |
DomElement |
createElement(String namespaceUri,
String localName)
Creates a new element in the dom document. |
boolean |
equals(Object o)
|
DOMSource |
getDomSource()
Returns a new DOMSource of the document. |
DomElement |
getElementById(String id)
Gets an element by its id. |
List<DomElement> |
getElementsByNameNs(String namespaceUri,
String localName)
Gets all elements with the namespace and name. |
DomElement |
getRootElement()
Returns the root element of the document. |
protected String |
getUnusedGenericNsPrefix()
|
int |
hashCode()
|
String |
registerNamespace(String namespaceUri)
Registers a new namespace with a generic prefix. |
void |
registerNamespace(String prefix,
String namespaceUri)
Registers a new namespace for the prefix. |
void |
setRootElement(DomElement rootElement)
Sets the root element of the DOM document. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GENERIC_NS_PREFIX
| Constructor Detail |
|---|
public DomDocumentImpl(Document document)
| Method Detail |
|---|
public DomElement getRootElement()
DomDocument
getRootElement in interface DomDocumentpublic void setRootElement(DomElement rootElement)
DomDocument
setRootElement in interface DomDocumentrootElement - the new root element
public DomElement createElement(String namespaceUri,
String localName)
DomDocument
createElement in interface DomDocumentnamespaceUri - the namespaceUri of the new elementlocalName - the localName of the new element
public DomElement getElementById(String id)
DomDocument
getElementById in interface DomDocumentid - the id to search for
public List<DomElement> getElementsByNameNs(String namespaceUri,
String localName)
DomDocument
getElementsByNameNs in interface DomDocumentnamespaceUri - the element namespaceURI to search forlocalName - the element name to search for
public DOMSource getDomSource()
DomDocumentDOMSource of the document.
getDomSource in interface DomDocumentDOMSourcepublic String registerNamespace(String namespaceUri)
DomDocument
registerNamespace in interface DomDocumentnamespaceUri - the namespaceUri of the new namespace
public void registerNamespace(String prefix,
String namespaceUri)
DomDocument
registerNamespace in interface DomDocumentprefix - the prefix of the new namespacenamespaceUri - the namespaceUri of the new namespaceprotected String getUnusedGenericNsPrefix()
public DomDocument clone()
DomDocument
clone in interface DomDocumentclone in class Objectpublic 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 | |||||||||