| Constructor and Description |
|---|
StandardElement(StandardDocument document,
StandardElement parent,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
asXML()
This
IElement serialized as an XML string. |
IAttribute |
attribute(String name)
The
IAttribute named "name" within this element or null if it
does not exist. |
Iterator<String> |
attributeNames()
An
Iterator providing all attribute names attached to this
element. |
String |
attributeTemplate(String name)
If this implementation supports template expansion, return the template
(unexpanded) value of the
IAttribute named "name" in this element
or null if it does not exist. |
String |
attributeValue(String name,
String defaultValue)
The value of the
IAttribute named "name" in this element or
"defaultValue" if it does not exist. |
IElement |
element(String name)
The (first)
IElement named "name" within this element or null if
it does not exist. |
Iterator<IElement> |
elementIterator()
|
Iterator<IElement> |
elementIterator(String name)
|
void |
elementRemove(IElement pElement)
Remove targeElement from this.
|
void |
elementsClear()
Remove all child
IElement instances . |
String |
elementText(String name)
The text content of the
IElement named "name" within this element
or null if the child does not exist. |
StandardDocument |
getDocument() |
String |
getName()
The name of this
IElement. |
StandardElement |
getParent() |
String |
getText()
The text content of this element.
|
boolean |
hasAttribute(String name)
true if this
IElement has IAttribute instances with name |
boolean |
hasAttributes()
true if this
IElement has IAttribute instances. |
boolean |
hasElements()
|
boolean |
hasElements(String name)
|
IElement |
newElement(String name)
Create and attach a new
IElement |
void |
setAttributeTemplate(String name,
String template)
If this implementation supports template expansion, set the template
(unexpanded) value for an attribute.
|
void |
setAttributeValue(String name,
String value)
Set the value for an attribute.
|
void |
setDocument(StandardDocument document) |
void |
setName(String name)
Set the element name to "name".
|
void |
setParent(StandardElement parent) |
void |
setText(String value)
Set the element text content to "value".
|
String |
toString() |
public StandardElement(StandardDocument document, StandardElement parent, String name)
public String asXML()
IElementIElement serialized as an XML string.public IAttribute attribute(String name)
IElementIAttribute named "name" within this element or null if it
does not exist.public Iterator<String> attributeNames()
IElementIterator providing all attribute names attached to this
element. There's no guarantee on the order of the names.attributeNames in interface IElementpublic String attributeTemplate(String name)
IElementIAttribute named "name" in this element
or null if it does not exist.attributeTemplate in interface IElementpublic String attributeValue(String name, String defaultValue)
IElementIAttribute named "name" in this element or
"defaultValue" if it does not exist.attributeValue in interface IElementpublic IElement element(String name)
IElementIElement named "name" within this element or null if
it does not exist.public Iterator<IElement> elementIterator()
IElementelementIterator in interface IElementpublic Iterator<IElement> elementIterator(String name)
IElementelementIterator in interface IElementpublic void elementRemove(IElement pElement)
IElementelementRemove in interface IElementpublic void elementsClear()
IElementIElement instances .elementsClear in interface IElementpublic String elementText(String name)
IElementIElement named "name" within this element
or null if the child does not exist.elementText in interface IElementpublic StandardDocument getDocument()
public String getName()
IElementIElement.public StandardElement getParent()
public String getText()
IElementpublic boolean hasAttribute(String name)
IElementIElement has IAttribute instances with namehasAttribute in interface IElementpublic boolean hasAttributes()
IElementIElement has IAttribute instances.hasAttributes in interface IElementpublic boolean hasElements()
IElementhasElements in interface IElementpublic boolean hasElements(String name)
IElementhasElements in interface IElementpublic IElement newElement(String name)
IElementIElementnewElement in interface IElementpublic void setAttributeTemplate(String name, String template)
IElementsetAttributeTemplate in interface IElementpublic void setAttributeValue(String name, String value)
IElementsetAttributeValue in interface IElementpublic void setDocument(StandardDocument document)
public void setName(String name)
IElementpublic void setParent(StandardElement parent)
public void setText(String value)
IElementCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.