public interface Element
Modifier and Type | Interface and Description |
---|---|
static class |
Element.ElementType
The ElementTypes which are possible.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Element element)
Adds an Elment as child of this element.
|
void |
doCharacters(String body)
Sets the body texts on an event based system.
|
void |
doComment(String comment)
Sets the comment texts on an event based system.
|
void |
doElementEnd()
This method is fired when the end xml tag is parsed.
|
void |
doElementRun()
This method is fired only once in the run phase.
|
void |
doElementStart()
This method is fired when the start of xml tag is parsed.
|
void |
doIgnorableWhitespace(String space)
Is called when there is whitespace in xml.
|
List<Element> |
getAllChilderen()
Gets the childeren elements including those which are comment and white space.
|
Map<String,String> |
getAttributes()
Gets the xml attributes.
|
List<Element> |
getChilderen()
Gets the childeren elements.
|
ElementClass |
getElementClass()
Gets the ElementClass.
|
ElementLanguage |
getElementLanguage()
Gets the ElementLanguage.
|
Object |
getElementObject()
Gives back the object this Element has made and configed.
So other elements can do stuff to that object. |
Element.ElementType |
getElementType()
Gets the Element type.
|
Element |
getParent()
Returns the parent Element.
Or null when there is no parent Element. |
boolean |
isTransformingTree()
Returns if this elements transforms the tree.
|
void |
release()
This method get called when this Element object is not needed anymore.
Can be used to close resources. |
void |
removeChild(Element element)
Removes an Elment as child of this element.
|
void |
setAttribute(String name,
String value)
Sets the xml attributes.
|
void |
setElementClass(ElementClass elementClass)
Sets the ElementClass.
|
void |
setElementLanguage(ElementLanguage elementLanguage)
Sets the ElementLanguage.
|
void |
setElementObject(Object object)
Sets the object which we control.
|
void |
setParent(Element element)
Set the parent Element.
|
void doElementEnd() throws ElementException
ElementException
void doElementStart() throws ElementException
ElementException
void doElementRun() throws ElementException
ElementException
void setParent(Element element)
element
- The paraent Element to set.Element getParent()
void release() throws ElementException
ElementException
Object getElementObject()
void setElementObject(Object object)
object
- The object to configed by this element.void setElementLanguage(ElementLanguage elementLanguage)
elementLanguage
- The ElementLanguage to set.ElementLanguage getElementLanguage()
void doCharacters(String body) throws ElementException
body
- The body text.ElementException
void doComment(String comment) throws ElementException
comment
- The comment text.ElementException
void doIgnorableWhitespace(String space) throws ElementException
space
- The space.ElementException
void setElementClass(ElementClass elementClass)
elementClass
- The ElementClass to set.ElementClass getElementClass()
void setAttribute(String name, String value)
name
- The name to set.value
- The value to set.Map<String,String> getAttributes()
List<Element> getChilderen()
List<Element> getAllChilderen()
void addChild(Element element)
element
- The child to add.void removeChild(Element element)
element
- The child to remove.Element.ElementType getElementType()
boolean isTransformingTree()
Copyright © 2004-2012 X4O. All Rights Reserved.