|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.io.XMLTag
public abstract class XMLTag
Defines an xml tag that is readable using a XMLReader and TagFactory.
| Field Summary | |
|---|---|
protected XMLTag |
parent
|
| Method Summary | |
|---|---|
void |
addChild(XMLTag child)
Add a child tag |
boolean |
allow(XMLTag... tags)
Adds one or more xml tags that are allowed as child tags. |
Iterator<XMLTag> |
allowed()
|
String |
asString()
|
String |
attributes()
Override this method to create an attribute string |
protected String |
build(Object... a)
Simplifies building of attribute strings |
Iterator<XMLTag> |
children()
|
boolean |
matchAttribute(javax.xml.stream.XMLStreamReader parser,
String name,
String value)
Matches an attribute with the specified name and value. |
abstract boolean |
matchEnd(javax.xml.stream.XMLStreamReader parser,
XMLTag parent)
Implement this method to match a specific end tag. |
boolean |
matchEndTag(javax.xml.stream.XMLStreamReader parser,
String name)
This method returns true if the class name matches the end tagname. |
abstract boolean |
matchStart(javax.xml.stream.XMLStreamReader parser,
XMLTag parent)
Implement this method to match a specific tag. |
boolean |
matchStartTag(javax.xml.stream.XMLStreamReader parser,
String name)
This method returns true if the class name matches the start tagname. |
void |
setChildren(List<XMLTag> children)
Overwrites the current list of children with a new list. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected XMLTag parent
| Method Detail |
|---|
public void addChild(XMLTag child)
child - public boolean allow(XMLTag... tags)
tags -
public Iterator<XMLTag> allowed()
public void setChildren(List<XMLTag> children)
children - the list of child tags to setpublic Iterator<XMLTag> children()
public boolean matchStartTag(javax.xml.stream.XMLStreamReader parser,
String name)
parser - used to read an xml streamname - tag name to match
public boolean matchEndTag(javax.xml.stream.XMLStreamReader parser,
String name)
parser - used to read an xml streamname - tag name to match
public boolean matchAttribute(javax.xml.stream.XMLStreamReader parser,
String name,
String value)
parser - used to read an xml streamname - of the attribute to matchvalue - of the attribute to match
public String toString()
toString in class ObjectObject.toString()public String asString()
public String attributes()
protected String build(Object... a)
a - list of label, value, label, value,...
public abstract boolean matchStart(javax.xml.stream.XMLStreamReader parser,
XMLTag parent)
Tag class.
parser - that reads an xml streamparent - the current parent xml tag
public abstract boolean matchEnd(javax.xml.stream.XMLStreamReader parser,
XMLTag parent)
Tag class..
parser - that reads an xml streamparent - the current parent xml tag
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||