AbstractNamespace is an abstract base class for tree
implementors to use for implementation inheritence.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Visitor
is the visitor in the Visitor Pattern visitor)Implements org.
|
| public String | |
| protected Node | |
| public Object | getData()
Implements org. XML Schema or Java Bean
bindings or will return the same value as Node#getText().
|
| public String | getName()
Overrides org. Implements org.
|
| public Namespace | getNamespace()
Implements org. Namespace of this element if one exists
otherwise null is returned returned.
|
| public String | getNamespacePrefix()
Implements org. String is returned.
|
| public String | getNamespaceURI()
Implements org. String is returned.
|
| public short | getNodeType()
Overrides org. Implements org. |
| public String | getPath(Element
is the parent context from which the relative path should
start. If the context is null or the context is not an
ancestor of this node then the path will be absolute and start
from the document and so begin with the '/' character. context)Implements org. |
| public String | getQualifiedName()
Implements org. |
| public String | getText()
Overrides org. Implements org. Returns the text of this node. |
| public String | getUniquePath(Element
is the parent context from which the path should start. If the
context is null or the context is not an ancestor of this node
then the path will start from the document and so begin with
the '/' character. context)Implements org. Returns the relative unique XPath expression from the given context which will return a nodeset of one node which is the current node. |
| public void | setData(Object
the attribute data data)Implements org. Node#setText(String)if it doesn't.
|
| public void | setNamespace(Namespace
is the namespace)Namespace to associate with this elementImplements org. Namespace of this element or if this element is
read only then an UnsupportedOperationException is thrown.
|
| public void | setText(String
is the new textual value of this node text)Overrides org. Implements org.
Sets the text data of this node or this method will throw an
|
| public void | setValue(String
is the new value of this attribute value)Implements org. UnsupportedOperationException if it is read-only.
|
| public String | |
| public void | write(Writer
is the writer)Writer to output the XML toOverrides org. Implements org.
|
| AbstractAttribute | back to summary |
|---|---|
| public AbstractAttribute() | |
| accept | back to summary |
|---|---|
| public void accept(Visitor visitor) Implements org. Doc from org.
| |
| asXML | back to summary |
|---|---|
| public String asXML() Implements org. Doc from org.
| |
| createXPathResult | back to summary |
|---|---|
| protected Node createXPathResult(Element parent) | |
| getData | back to summary |
|---|---|
| public Object getData() Implements org. Doc from org. Accesses the data of this attribute which may implement data typing
bindings such as
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides org. Implements org. Doc from org.
| |
| getNamespace | back to summary |
|---|---|
| public Namespace getNamespace() Implements org. Doc from org. Returns the
| |
| getNamespacePrefix | back to summary |
|---|---|
| public String getNamespacePrefix() Implements org. Doc from org. Returns the namespace prefix of this element if one exists otherwise an
empty
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() Implements org. Doc from org. Returns the URI mapped to the namespace of this element if one exists
otherwise an empty
| |
| getNodeType | back to summary |
|---|---|
| public short getNodeType() Overrides org. Implements org. Doc from org. Returns the code according to the type of node. This makes processing nodes polymorphically much easier as the switch statement can be used instead of multiple if (instanceof) statements.
| |
| getPath | back to summary |
|---|---|
| public String getPath(Element context) Implements org. Doc from org. Returns the relative XPath expression which will return a node set containing the given node such as a/b/@c. No indexing will be used to restrict the path if multiple elements with the same name occur on the path.
| |
| getQualifiedName | back to summary |
|---|---|
| public String getQualifiedName() Implements org. Doc from org. Returns the fully qualified name of this element.
This will be the same as the value returned from getNamespacePrefix() + ":" + getName()will be returned.
| |
| getText | back to summary |
|---|---|
| public String getText() Overrides org. Implements org. Doc from org. Returns the text of this node.
| |
| getUniquePath | back to summary |
|---|---|
| public String getUniquePath(Element context) Implements org. Doc from org. Returns the relative unique XPath expression from the given context which will return a nodeset of one node which is the current node. This method will use the XPath index operator to restrict the path if multiple elements with the same name occur on the path.
| |
| setData | back to summary |
|---|---|
| public void setData(Object data) Implements org. Doc from org. Sets the data value of this attribute if this element supports data
binding or calls
| |
| setNamespace | back to summary |
|---|---|
| public void setNamespace(Namespace namespace) Implements org. Doc from org. Sets the
| |
| setText | back to summary |
|---|---|
| public void setText(String text) Overrides org. Implements org. Doc from org.
Sets the text data of this node or this method will throw an
| |
| setValue | back to summary |
|---|---|
| public void setValue(String value) Implements org. Doc from org. Sets the value of this attribute or this method will throw an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| write | back to summary |
|---|---|
| public void write(Writer writer) throws IOException Overrides org. Implements org. Doc from org.
| |