|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractBranch
org.dom4j.tree.AbstractElement
org.dom4j.tree.DefaultElement
smacs.xngr.browser.exchanger.XngrElement
The default implementation of the XElement interface.
| Field Summary |
| Fields inherited from class org.dom4j.tree.AbstractElement |
EMPTY_ITERATOR, EMPTY_LIST, USE_STRINGVALUE_SEPARATOR, VERBOSE_TOSTRING |
| Fields inherited from class org.dom4j.tree.AbstractBranch |
DEFAULT_CONTENT_LIST_SIZE, outputFormat |
| Fields inherited from class org.dom4j.tree.AbstractNode |
NODE_TYPE_NAMES |
| Fields inherited from interface org.dom4j.Node |
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE |
| Constructor Summary | |
XngrElement(QName name)
Constructs a default element with a dom4j element. |
|
XngrElement(String name)
Constructs a default element with an initial name. |
|
XngrElement(XElementType type)
Constructs a default element with an initial type. |
|
| Method Summary | |
void |
add(XElement child)
Adds a child element to this element. |
String |
asXML()
|
XDocument |
document()
Returns the document for this element. |
void |
document(XDocument document)
Sets the document for this element. |
String |
getAttribute(String name)
Returns the value of the attribute with the name. |
String[][] |
getAttributes()
Returns a 2 dimensional array of attributes. |
XElement |
getElement(String name)
Returns the first element for the given name. |
XElement[] |
getElements()
Returns all the child elements of this element. |
XElement[] |
getElements(String name)
Returns all the child elements with a given name for this element. |
String |
getName()
Returns the (local)name for this element. |
XElementType |
getType()
Returns the type of this element. |
String |
getUniversalName()
Returns the universal name for this element. |
String |
getValue()
Gets the text value of this element. |
XUrl |
getXUrl()
Returns the url of this element. |
boolean |
isRoot()
A check wether this element is the root element. |
String |
namespace()
Returns the namespace for this element. |
ExchangerElement |
newExchangerElement(QName name)
Constructs a default element with a dom4j element. |
ExchangerElement |
newExchangerElement(String name)
Constructs a default element with an initial name. |
ExchangerElement |
newExchangerElement(XElementType type)
Constructs a default element with an initial type. |
XElement |
parent()
Returns the parent of this element. |
String |
path()
Returns an XPath result, uniquely identifying this element. |
void |
putAttribute(String name,
String value)
Adds an attribute to the list of attributes or overwrites the attribute if the attribute name already exists. |
void |
remove(XElement child)
Removes a child element from this element. |
void |
setValue(String text)
Sets the text value of this element. |
String |
toString()
Returns the contents of this element as an XML formatted String. |
| Methods inherited from class org.dom4j.tree.AbstractBranch |
addElement, addElement, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getTextTrim, hasContent, invalidNodeTypeAddException, isReadOnly, setProcessingInstructions |
| Methods inherited from class org.dom4j.tree.AbstractNode |
asXPathResult, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.dom4j.Branch |
add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructions |
| Methods inherited from interface org.dom4j.Node |
accept, asXPathResult, clone, createXPath, detach, getDocument, getNodeType, getNodeTypeName, getParent, getPath, getPath, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write |
| Constructor Detail |
public XngrElement(String name)
name - the unmutable name.public XngrElement(XElementType type)
type - the unmutable name.public XngrElement(QName name)
| Method Detail |
public ExchangerElement newExchangerElement(String name)
ExchangerElement
newExchangerElement in interface ExchangerElementname - the unmutable name.public ExchangerElement newExchangerElement(XElementType type)
ExchangerElement
newExchangerElement in interface ExchangerElementtype - the unmutable name.public ExchangerElement newExchangerElement(QName name)
ExchangerElement
newExchangerElement in interface ExchangerElement
public void putAttribute(String name,
String value)
putAttribute in interface ExchangerElementname - the name of the attribute.value - the value of the attribute.public String[][] getAttributes()
getAttributes in interface ExchangerElementpublic String getAttribute(String name)
getAttribute in interface ExchangerElementname - the name of the attribute.
public XElement getElement(String name)
getElement in interface ExchangerElementname - the name of the element.
public XElement[] getElements()
getElements in interface ExchangerElementpublic XElement[] getElements(String name)
getElements in interface ExchangerElementname - the name of the element.
public String namespace()
namespace in interface ExchangerElementpublic String getUniversalName()
getUniversalName in interface ExchangerElementpublic String getName()
getName in interface ExchangerElementpublic boolean isRoot()
isRoot in interface ExchangerElementpublic XElement parent()
parent in interface ExchangerElementpublic String getValue()
getValue in interface ExchangerElementpublic void setValue(String text)
setValue in interface ExchangerElementpublic void add(XElement child)
add in interface ExchangerElementpublic void remove(XElement child)
remove in interface ExchangerElementpublic String path()
path in interface ExchangerElementpublic void document(XDocument document)
document in interface ExchangerElementpublic XDocument document()
document in interface ExchangerElementpublic XElementType getType()
getType in interface ExchangerElementpublic XUrl getXUrl()
getXUrl in interface ExchangerElementpublic String asXML()
asXML in interface ExchangerElementpublic String toString()
|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||