|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--util.XMLTools.Tag
Represents an XML tag which must be found in XML data written. This tag can contain only its name or tag name and attribute name, or attribute value additionally.
Constructor Summary | |
XMLTools.Tag(String tagName)
Creates tag which has only a name. |
|
XMLTools.Tag(String tagName,
String attrName)
Creates a tag with the name specified, which must have an attribute with name specified. |
|
XMLTools.Tag(String tagName,
String[] attrNames)
Creates a tag with the name specified, which must have attributes specified. |
|
XMLTools.Tag(String tagName,
String[][] attrValues)
Creates a tag with the name specified, which must have an attributes with their values specified. |
|
XMLTools.Tag(String tagName,
String attrName,
String attrValue)
Creates a tag with the name specified, which must have an attribute with the value specified. |
Method Summary | |
protected boolean |
checkAttr(int attrListIdx,
com.sun.star.xml.sax.XAttributeList list)
|
boolean |
isMatchTo(String tagName,
com.sun.star.xml.sax.XAttributeList list)
Checks if this tag matches tag passed in parameters. |
String |
toString()
Gets tag String description. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XMLTools.Tag(String tagName)
tagName
- The name of the tag.public XMLTools.Tag(String tagName, String attrName)
tagName
- The name of the tag.attrName
- The name of attribute which must be contained
in the tag.public XMLTools.Tag(String tagName, String attrName, String attrValue)
tagName
- The name of the tag.attrName
- The name of attribute which must be contained
in the tag.attrValue
- Attribute value.public XMLTools.Tag(String tagName, String[] attrNames)
tagName
- The name of the tag.attrNames
- Array with names of attributes which must
be contained in the tag.public XMLTools.Tag(String tagName, String[][] attrValues)
tagName
- The name of the tag.attrValues
- An array with attribute names and their values.
attrValues[N][0]
element contains the name of Nth
attribute, and attrValues[N][1]
element contains
value of Nth attribute, if value is null
then the
attribute value can be any.Method Detail |
public String toString()
toString
in class Object
protected boolean checkAttr(int attrListIdx, com.sun.star.xml.sax.XAttributeList list)
public boolean isMatchTo(String tagName, com.sun.star.xml.sax.XAttributeList list)
list
(attributes' values don't make sense). If attributes specified
with values method checks if these attributes exist and
have appropriate values.
|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |