A B C D E F G K O P R S T W X

A

addKid(XmlData) - Method in class com.myjavatools.xml.BasicXmlData
Adds a kid to the set of kids.
addKid(XmlData) - Method in interface com.myjavatools.xml.XmlData
Adds a kid to the set of kids.
addKids(Collection) - Method in class com.myjavatools.xml.BasicXmlData
Adds all XmlData elements from given Collection to the set of kids, skipping elements that are not XmlData.
addKids(Collection) - Method in interface com.myjavatools.xml.XmlData
Adds all XmlData elements from given Collection to the set of kids, skipping elements that are not XmlData.
assertEquals(String, char[], char[]) - Static method in class com.myjavatools.xml.TestXmlData
 
attrSize(Object) - Method in class com.myjavatools.xml.XmlWriter
Return the number of attrubutes in the attribute list which can be a string.
attributeToString(String, String) - Method in class com.myjavatools.xml.XmlWriter
Converts a name-value pair to a string of form name="value".
attributesToString(String[]) - Method in class com.myjavatools.xml.XmlWriter
Converts a list of attibutes to a string.

B

BasicXmlData - class com.myjavatools.xml.BasicXmlData.
 
BasicXmlData() - Constructor for class com.myjavatools.xml.BasicXmlData
Default constructor.
BasicXmlData(String) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of BasicXmlData of specified type.
BasicXmlData(String, String) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type and with the specified value.
BasicXmlData(String, String, Collection) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type, with the specified value and the kids that are listed in the provided collection.
BasicXmlData(String, String, BasicXmlData[]) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type, with the specified value and the kids that are listed in the provided array.
BasicXmlData(String, String, String[]) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type, with the specified value and the attributes that are listed in the provided array as name-value pairs.
BasicXmlData(String, String, String[], Collection) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type, with the specified value, attributes that are listed in the provided array as name-value pairs, and the kids that are listed in the provided collection.
BasicXmlData(String, String, String[], BasicXmlData[]) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of BasicXmlData of specified type, with the specified value, attributes that are listed in the provided array as name-value pairs, and the kids that are listed in the provided array of XmlData.
BasicXmlData(String, String, AttributeList) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type, with the specified value, attributes that are listed in the provided AttributeList.
BasicXmlData(String, String, AttributeList, Collection) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type, with the specified value, attributes that are listed in the provided AttributeList, and the kids that are listed in the provided collection.
BasicXmlData(String, String, AttributeList, BasicXmlData[]) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type, with the specified value, attributes that are listed in the provided AttributeList, and the kids that are listed in the provided array of XmlData.
BasicXmlData(String, String, Map, Collection) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type, with the specified value, attributes that are listed in the provided map (name -> value), and the kids that are listed in the provided collection.
BasicXmlData(String, String, Map, Map) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance of specified type, with the specified value, attributes that are listed in the provided Map (name -> value), and the kids that are listed in the provided Map, type->Collection.
BasicXmlData(XmlData) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance from another XmlData object (use clone() to get a real deep copy).
BasicXmlData(InputStream) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance from the data read from input stream.
BasicXmlData(File) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance from the data read from a file.
BasicXmlData(URL) - Constructor for class com.myjavatools.xml.BasicXmlData
Creates an instance from the data read from URL.
BasicXmlData.Expression - class com.myjavatools.xml.BasicXmlData.Expression.
An abstract class that stores an expression used in XmlData search/filtering.
BasicXmlData.Expression() - Constructor for class com.myjavatools.xml.BasicXmlData.Expression
 
BasicXmlData.Policy - class com.myjavatools.xml.BasicXmlData.Policy.
Class Policy defines three different casting policies.

C

cast(Map, BasicXmlData.Policy) - Method in class com.myjavatools.xml.BasicXmlData
Casts XmlData and its kids, recursively, to specified classes, according to the typemap.
cast(String, BasicXmlData.Policy) - Method in class com.myjavatools.xml.BasicXmlData
Casts XmlData and its kids, recursively, to classes in specified package.
castKids(String, Class) - Method in class com.myjavatools.xml.BasicXmlData
Casts kids of specified type to a specified class (actually replacing them with the new instances).
clone() - Method in class com.myjavatools.xml.BasicXmlData
Clones of XmlData, same thing as deepCopy.
clone() - Method in interface com.myjavatools.xml.XmlData
Clones XmlData, same thing as deepCopy.
close() - Method in class com.myjavatools.xml.XmlWriter
Closes the output of Xml, dumping end tags of all elements stored in the stack.
closeElement() - Method in class com.myjavatools.xml.XmlWriter
Closes an element in output.
com.myjavatools.xml - package com.myjavatools.xml
 

D

deepCopy() - Method in class com.myjavatools.xml.BasicXmlData
Deep copy of XmlData.

E

equals(Object) - Method in class com.myjavatools.xml.BasicXmlData
Compares the specified object with this XmlData for equality.
escapedChars - Static variable in class com.myjavatools.xml.XmlWriter
escapeChars - characters that ought to be escaped in output Xml file

F

flush() - Method in class com.myjavatools.xml.XmlWriter
Flushes the output.

G

getAllKids() - Method in class com.myjavatools.xml.BasicXmlData
Gets a collection of all kids of XmlData.
getAllKids() - Method in interface com.myjavatools.xml.XmlData
Gets a collection of all kids of XmlData.
getAttribute(String) - Method in class com.myjavatools.xml.BasicXmlData
Gets the value of a specified attribute.
getAttribute(String, String) - Method in class com.myjavatools.xml.BasicXmlData
Gets the value of a specified attribute; if there is none, returns default value.
getAttribute(String) - Method in interface com.myjavatools.xml.XmlData
Gets the value of a specified attribute.
getAttribute(String, String) - Method in interface com.myjavatools.xml.XmlData
Gets the value of a specified attribute; if there is none, returns default value.
getAttribute(Object, String) - Method in class com.myjavatools.xml.XmlWriter
Gets a value of an attribute from an attribute list hat can be a map or a name-value pair string array.
getAttributes() - Method in class com.myjavatools.xml.BasicXmlData
Gets a Map of attributes.
getAttributes() - Method in interface com.myjavatools.xml.XmlData
 
getId() - Method in class com.myjavatools.xml.BasicXmlData
Gets the id of XmlData, which is the value of attribute "id".
getId() - Method in interface com.myjavatools.xml.XmlData
Gets the id of XmlData, which is the value of attribute "id".
getKid(String) - Method in class com.myjavatools.xml.BasicXmlData
Gets a kid of specified type, if any.
getKid(String, String, String) - Method in class com.myjavatools.xml.BasicXmlData
Gets a kid of specified type that has an attribute with a specified value.
getKid(String, String) - Method in class com.myjavatools.xml.BasicXmlData
Gets a kid having specified type and specified id.
getKid(String) - Method in interface com.myjavatools.xml.XmlData
Gets a kid of specified type, if any.
getKid(String, String, String) - Method in interface com.myjavatools.xml.XmlData
Gets a kid of specified type that has an attribute with a specified value.
getKid(String, String) - Method in interface com.myjavatools.xml.XmlData
Gets a kid having specified type and specified id.
getKidCount(String) - Method in class com.myjavatools.xml.BasicXmlData
Gets the number of kids of specified type.
getKidCount(String) - Method in interface com.myjavatools.xml.XmlData
Gets the number of kids of specified type.
getKidValue(String) - Method in class com.myjavatools.xml.BasicXmlData
Gets the value of a kid of specified type, if any.
getKidValue(String) - Method in interface com.myjavatools.xml.XmlData
Gets the value of a kid of specified type, if any.
getKids(String) - Method in class com.myjavatools.xml.BasicXmlData
Gets a Collection of kids of specified type.
getKids(String) - Method in interface com.myjavatools.xml.XmlData
Gets a Collection of kids of specified type.
getName() - Method in class com.myjavatools.xml.BasicXmlData
Gets the name of XmlData, which is the value of attribute "name".
getName() - Method in interface com.myjavatools.xml.XmlData
Gets the name of XmlData, which is the value of attribute "name".
getType() - Method in class com.myjavatools.xml.BasicXmlData
Gets XmlData type, which is just a String.
getType() - Method in interface com.myjavatools.xml.XmlData
Gets XmlData type, which is just a String.
getValue() - Method in class com.myjavatools.xml.BasicXmlData
Gets a value of XmlData, which is just a String.
getValue() - Method in interface com.myjavatools.xml.XmlData
Gets a value of XmlData, which is just a String.
getXmlContent() - Method in class com.myjavatools.xml.BasicXmlData
Gets the contents of this XmlData (that is, itself).
getXmlContent() - Method in interface com.myjavatools.xml.XmlData
Gets the contents of this XmlData (probably, itself).

K

KEEP_ON_ERROR - Static variable in class com.myjavatools.xml.BasicXmlData.Policy
Policy KEEP_ON_ERROR causes casting to keep intact nodes that failed to cast.

O

okChars - Static variable in class com.myjavatools.xml.XmlWriter
okChars - characters that are okay to be kept intact in output Xml file
openElement(String, Object) - Method in class com.myjavatools.xml.XmlWriter
Starts outputting an element of Xml.

P

parse(String) - Static method in class com.myjavatools.xml.BasicXmlData.Expression
Parses a string containing search/selection condition.

R

read() - Method in class com.myjavatools.xml.XmlReader
Reads the whole XML contents into XmlData
read(InputStream) - Static method in class com.myjavatools.xml.XmlReader
Reads the whole XML contents into XmlData
read(File) - Static method in class com.myjavatools.xml.XmlReader
Reads the whole XML contents into XmlData
read(Reader) - Static method in class com.myjavatools.xml.XmlReader
Reads the whole XML contents into XmlData
readFromString(String) - Static method in class com.myjavatools.xml.XmlReader
Reads the whole XML contents into XmlData
ready() - Method in class com.myjavatools.xml.XmlReader
Tells whether input is ready to be read.
removeKid(XmlData) - Method in class com.myjavatools.xml.BasicXmlData
Removes a kid from the set of kids.
removeKid(XmlData) - Method in interface com.myjavatools.xml.XmlData
Removes a kid from the set of kids.
removeKids(String) - Method in class com.myjavatools.xml.BasicXmlData
Removes all kids of given type.
removeKids(String) - Method in interface com.myjavatools.xml.XmlData
Removes all kids of given type.

S

SKIP_ON_ERROR - Static variable in class com.myjavatools.xml.BasicXmlData.Policy
Policy SKIP_ON_ERROR causes casting to ignore nodes that failed to cast.
satisfies(XmlData) - Method in class com.myjavatools.xml.BasicXmlData.Expression
 
satisfies(XmlData.Condition) - Method in class com.myjavatools.xml.BasicXmlData
Checks whether this XmlData node satisfies given condition.
satisfies(String) - Method in class com.myjavatools.xml.BasicXmlData
Checks whether this XmlData node satisfies given expression (presented as string).
satisfies(XmlData) - Method in interface com.myjavatools.xml.XmlData.Condition
Checks whether XmlData satisfies a condition.
save(String) - Method in class com.myjavatools.xml.BasicXmlData
Saves XmlData to a file.
save(File) - Method in class com.myjavatools.xml.BasicXmlData
Saves XmlData to a file.
save(OutputStream) - Method in class com.myjavatools.xml.BasicXmlData
Saves XmlData to an output stream.
selectTree(XmlData.Condition) - Method in class com.myjavatools.xml.BasicXmlData
Selects a subtree from XmlData, that is, the tree of those nodes that satisfy a condition.
selectTree(String) - Method in class com.myjavatools.xml.BasicXmlData
Selects a subtree from XmlData, that is, the tree of those nodes that satisfy a condition.
selectTree(XmlData.Condition) - Method in interface com.myjavatools.xml.XmlData
 
setAttribute(String, String) - Method in class com.myjavatools.xml.BasicXmlData
Sets an attribute value.
setAttribute(String, String) - Method in interface com.myjavatools.xml.XmlData
 
setAttributes(String[]) - Method in class com.myjavatools.xml.BasicXmlData
Sets attributes from an array of name-value pairs.
setAttributes(Map) - Method in class com.myjavatools.xml.BasicXmlData
Sets attributes from a Map.
setAttributes(AttributeList) - Method in class com.myjavatools.xml.BasicXmlData
Sets attributes from an AttributeList.
setAttributes(String[]) - Method in interface com.myjavatools.xml.XmlData
Sets attributes from an array of name-value pairs.
setAttributes(AttributeList) - Method in interface com.myjavatools.xml.XmlData
Sets attributes from an AttributeList.
setAttributes(Map) - Method in interface com.myjavatools.xml.XmlData
Sets attributes from a Map, name -> value.
setValue(String) - Method in class com.myjavatools.xml.BasicXmlData
Sets the value of XmlData.
setValue(String) - Method in interface com.myjavatools.xml.XmlData
Sets the value of XmlData.
setXmlContent(XmlData) - Method in class com.myjavatools.xml.BasicXmlData
Sets the contents from another XmlData.
setXmlContent(XmlData) - Method in interface com.myjavatools.xml.XmlData
Sets the contents from another XmlData.
sgmlEntity(char) - Static method in class com.myjavatools.xml.XmlWriter
Encodes a character by SGML rules It can be a hex representation

T

THROW_ON_ERROR - Static variable in class com.myjavatools.xml.BasicXmlData.Policy
Policy THROW_ON_ERROR causes casting to throw any exception that happens while casting a node.
TestXmlData - class com.myjavatools.xml.TestXmlData.
 
TestXmlData(String) - Constructor for class com.myjavatools.xml.TestXmlData
 
testAddKid() - Method in class com.myjavatools.xml.TestXmlData
 
testAddKids() - Method in class com.myjavatools.xml.TestXmlData
 
testCast() - Method in class com.myjavatools.xml.TestXmlData
 
testCast1() - Method in class com.myjavatools.xml.TestXmlData
 
testCastKids() - Method in class com.myjavatools.xml.TestXmlData
 
testClone() - Method in class com.myjavatools.xml.TestXmlData
 
testEquals() - Method in class com.myjavatools.xml.TestXmlData
 
testGetAllKids() - Method in class com.myjavatools.xml.TestXmlData
 
testGetAttribute() - Method in class com.myjavatools.xml.TestXmlData
 
testGetAttribute1() - Method in class com.myjavatools.xml.TestXmlData
 
testGetAttributes() - Method in class com.myjavatools.xml.TestXmlData
 
testGetId() - Method in class com.myjavatools.xml.TestXmlData
 
testGetKid() - Method in class com.myjavatools.xml.TestXmlData
 
testGetKid2() - Method in class com.myjavatools.xml.TestXmlData
 
testGetKid3() - Method in class com.myjavatools.xml.TestXmlData
 
testGetKidCount() - Method in class com.myjavatools.xml.TestXmlData
 
testGetKidValue() - Method in class com.myjavatools.xml.TestXmlData
 
testGetKids() - Method in class com.myjavatools.xml.TestXmlData
 
testGetName() - Method in class com.myjavatools.xml.TestXmlData
 
testGetType() - Method in class com.myjavatools.xml.TestXmlData
 
testGetValue() - Method in class com.myjavatools.xml.TestXmlData
 
testGetXmlContent() - Method in class com.myjavatools.xml.TestXmlData
 
testRemoveKid() - Method in class com.myjavatools.xml.TestXmlData
 
testRemoveKids() - Method in class com.myjavatools.xml.TestXmlData
 
testSatisfies() - Method in class com.myjavatools.xml.TestXmlData
 
testSatisfies1() - Method in class com.myjavatools.xml.TestXmlData
 
testSave() - Method in class com.myjavatools.xml.TestXmlData
 
testSelectTree() - Method in class com.myjavatools.xml.TestXmlData
 
testSelectTree1() - Method in class com.myjavatools.xml.TestXmlData
 
testSetAttribute() - Method in class com.myjavatools.xml.TestXmlData
 
testSetAttributes() - Method in class com.myjavatools.xml.TestXmlData
 
testSetValue() - Method in class com.myjavatools.xml.TestXmlData
 
testSetXmlContent() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData1() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData13() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData14() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData15() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData2() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData3() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData4() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData5() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData6() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData7() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData8() - Method in class com.myjavatools.xml.TestXmlData
 
testXmlData9() - Method in class com.myjavatools.xml.TestXmlData
 
toSgmlEncoding(char) - Static method in class com.myjavatools.xml.XmlWriter
Converts a character to its SGML numeric encoding
trim() - Method in class com.myjavatools.xml.BasicXmlData
Tries to trim the set of kids, so that there are no spare slots left.

W

write(char[], int, int) - Method in class com.myjavatools.xml.XmlWriter
Writes characters to output stream.
write(String) - Method in class com.myjavatools.xml.XmlWriter
Writes a string to output.
write(Object) - Method in class com.myjavatools.xml.XmlWriter
Writes an object as Xml content to the output.
write(OutputStream, Object) - Static method in class com.myjavatools.xml.XmlWriter
Writes an object as Xml content to the output.
write(File, Object) - Static method in class com.myjavatools.xml.XmlWriter
Write the contents of object as an Xml file
write(String, Object) - Static method in class com.myjavatools.xml.XmlWriter
Write the contents of object as an Xml file.
writeAttribute(String, String) - Method in class com.myjavatools.xml.XmlWriter
Writes an attribute name-value pair to the output.
writeAttributes(String[]) - Method in class com.myjavatools.xml.XmlWriter
Writes attributes, name-value pairs, to the output.
writeAttributes(Map) - Method in class com.myjavatools.xml.XmlWriter
Write attributes, name-value pairs, to the output.
writeAttributes(Object) - Method in class com.myjavatools.xml.XmlWriter
Write attributes, name-value pairs, to the output.
writeElement(String, String) - Method in class com.myjavatools.xml.XmlWriter
Writes an element that does not have any attributes or kids.
writeElement(String, String, Object) - Method in class com.myjavatools.xml.XmlWriter
Writes an element that does not have any kids.

X

XmlData - interface com.myjavatools.xml.XmlData.
 
XmlData.Condition - interface com.myjavatools.xml.XmlData.Condition.
XmlData.Condition has just one method that checks whether XmlData satisfies a condition.
XmlDataClass - Static variable in class com.myjavatools.xml.BasicXmlData
 
XmlReader - class com.myjavatools.xml.XmlReader.
 
XmlReader(Reader) - Constructor for class com.myjavatools.xml.XmlReader
Creates an XmlReader from a Reader
XmlReader(InputStream) - Constructor for class com.myjavatools.xml.XmlReader
Creates an XmlReader from an input stream.
XmlReader(File) - Constructor for class com.myjavatools.xml.XmlReader
Creates an XmlReader to read from a file.
XmlReader(String) - Constructor for class com.myjavatools.xml.XmlReader
Creates an XmlReader to read from a file.
XmlWriter - class com.myjavatools.xml.XmlWriter.
 
XmlWriter(Writer, String) - Constructor for class com.myjavatools.xml.XmlWriter
Creates an XmlWriter from a Writer, using specified encoding.
XmlWriter(Writer) - Constructor for class com.myjavatools.xml.XmlWriter
Creates an XmlWriter from a Writer, using default UTF8 encoding.
XmlWriter(OutputStreamWriter) - Constructor for class com.myjavatools.xml.XmlWriter
Creates an XmlWriter from an OutputStreamWriter, using its encoding.
XmlWriter(OutputStream, String) - Constructor for class com.myjavatools.xml.XmlWriter
Creates an XmlWriter from an OutputStream, using apwxidiws encoding.
XmlWriter(OutputStream) - Constructor for class com.myjavatools.xml.XmlWriter
Creates an XmlWriter from an OutputStream, using default UTF8 encoding.
xmlEscape(String) - Static method in class com.myjavatools.xml.XmlWriter
Converts a string to the form that is acceptable inside Xml files, escaping special characters.

A B C D E F G K O P R S T W X