Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addAttribute(String, String) - Method in class tigase.xml.ElementMatcher
-
Method add attribute to the matcher
- addCData(String) - Method in class tigase.xml.Element
-
Add CData node with passed value
- addChild(Element) - Method in class tigase.xml.Element
-
Add element as a child.
- addChildren(List<Element>) - Method in class tigase.xml.Element
-
Add children
- addNode1(String) - Method in class tigase.xml.db.XMLDB
-
Adds new node
- assignedTo() - Element in annotation interface tigase.xml.annotations.TODO
-
assignedToproperty allows you to assign developer for the code change described by this annotation. - ATTRIB_NAME - Enum constant in enum class tigase.xml.SimpleParser.State
- ATTRIB_VALUE_D - Enum constant in enum class tigase.xml.SimpleParser.State
- ATTRIB_VALUE_S - Enum constant in enum class tigase.xml.SimpleParser.State
- attribute(String, String) - Static method in class tigase.xml.ElementFilters
-
Method returns predicate testing
Elementattribute name and value - Attribute(String, String) - Constructor for record class tigase.xml.ElementMatcher.Attribute
-
Creates an instance of a
Attributerecord class. - ATTRIBUTES_NUMBER_LIMIT - Variable in class tigase.xml.SimpleParser
- ATTRIBUTES_NUMBER_LIMIT_PROP_KEY - Static variable in class tigase.xml.SimpleParser
- attributesDeduplicationFn - Static variable in class tigase.xml.Element
B
- BOOLEAN - Enum constant in enum class tigase.xml.db.Types.DataType
- BOOLEAN_ARR - Enum constant in enum class tigase.xml.db.Types.DataType
- buildNodesTree(String) - Method in class tigase.xml.db.DBElement
C
- CData - Class in tigase.xml
-
Created: Feb 9, 2009 12:21:43 PM
- CData(String) - Constructor for class tigase.xml.CData
- cdataToString() - Method in class tigase.xml.Element
-
Method returns joined CData values
- checkIsCharValidInXML(SimpleParser.ParserState, char) - Method in class tigase.xml.SimpleParser
- checkIsCharValidNameChar(char, boolean) - Method in class tigase.xml.SimpleParser
- childrenFormatedString(int, int) - Method in class tigase.xml.db.DBElement
- clone() - Method in class tigase.xml.CData
- clone() - Method in class tigase.xml.Element
- clone() - Method in interface tigase.xml.XMLNodeIfc
- CLOSE_ELEMENT - Enum constant in enum class tigase.xml.SimpleParser.State
- CODEPOINT - Enum constant in enum class tigase.xml.SimpleParser.EntityType
- CODEPOINT_DEC - Enum constant in enum class tigase.xml.SimpleParser.EntityType
- CODEPOINT_HEX - Enum constant in enum class tigase.xml.SimpleParser.EntityType
- compactMapChildren(Function<Element, ? extends R>) - Method in class tigase.xml.Element
-
Method applies function against each child of the element and returns list of non-null return values
- compactMapChildren(Predicate<Element>, Function<Element, ? extends R>) - Method in class tigase.xml.Element
-
Method applies function against each child of the element and returns list of non-null return values
- createDB(String, String, String) - Static method in class tigase.xml.db.XMLDB
-
Factory method creating and setting up XMLDB
- CRITICAL - Enum constant in enum class tigase.xml.annotations.TODO.Severity
-
If change severity is set to
CRITICALit means that wihtout this change some progress is not possible.
D
- dataTypeMap - Static variable in class tigase.xml.db.Types
- DBElement - Class in tigase.xml.db
-
DBElementclass extendstigase.xml.Element. - DBElement(String) - Constructor for class tigase.xml.db.DBElement
- DBElement(String, String, String) - Constructor for class tigase.xml.db.DBElement
- DBElement(String, String, StringBuilder[], StringBuilder[]) - Constructor for class tigase.xml.db.DBElement
- DBElementFactory - Class in tigase.xml.db
-
DBElementFactoryis implementation of factory design pattern required by XML DOM builder to create properElementinstances for tree nodes. - DefaultElementFactory - Class in tigase.xml
-
DefaultElementFactoryis anElementFactoryimplementation creating instances of basicElementclass. - DefaultElementFactory() - Constructor for class tigase.xml.DefaultElementFactory
-
Creates a new
DefaultElementFactoryinstance. - DOCUMENTATION - Enum constant in enum class tigase.xml.annotations.TODO.Severity
-
DOCUMENTATIONseverity refers to code which should be documented. - DomBuilderHandler - Class in tigase.xml
-
DomBuilderHandler- implementation ofSimpleHandlerbuilding DOM strctures during parsing time. - DomBuilderHandler() - Constructor for class tigase.xml.DomBuilderHandler
- DomBuilderHandler(ElementFactory) - Constructor for class tigase.xml.DomBuilderHandler
- DOUBLE - Enum constant in enum class tigase.xml.db.Types.DataType
- DOUBLE_ARR - Enum constant in enum class tigase.xml.db.Types.DataType
E
- Element - Class in tigase.xml
-
Element- basic document tree node implementation. - Element(String) - Constructor for class tigase.xml.Element
-
Constructor creating element with a name
- Element(Element) - Constructor for class tigase.xml.Element
-
Shallow cloning constructor.
- ELEMENT_CDATA - Enum constant in enum class tigase.xml.SimpleParser.State
- ELEMENT_NAME - Enum constant in enum class tigase.xml.SimpleParser.State
- elementCData(StringBuilder) - Method in class tigase.xml.DomBuilderHandler
- elementCData(StringBuilder) - Method in interface tigase.xml.SimpleHandler
- elementCData(StringBuilder) - Method in class tigase.xml.XMLFormatter
- ElementFactory - Interface in tigase.xml
-
ElementFactoryis inderface definition for factories creating proper instances ofElementclass or its extension. - ElementFilters - Class in tigase.xml
-
Class contains helper functions to easily create
Predicate<Element> - ElementFilters() - Constructor for class tigase.xml.ElementFilters
- elementInstance(String, String, StringBuilder[], StringBuilder[]) - Method in class tigase.xml.db.DBElementFactory
-
Describe
elementInstancemethod here. - elementInstance(String, String, StringBuilder[], StringBuilder[]) - Method in class tigase.xml.DefaultElementFactory
- elementInstance(String, String, StringBuilder[], StringBuilder[]) - Method in interface tigase.xml.ElementFactory
- ElementMatcher - Class in tigase.xml
-
Class implements
Predicatefor filteringElements. - ElementMatcher() - Constructor for class tigase.xml.ElementMatcher
- ElementMatcher(String, String, List<ElementMatcher.Attribute>) - Constructor for class tigase.xml.ElementMatcher
-
Constructor to create instance
- ElementMatcher.Attribute - Record Class in tigase.xml
-
Class holds attribute name and value to match against
ElementusingElementMatcher - elementNameDeduplicationFn - Static variable in class tigase.xml.Element
- END_ELEMENT_NAME - Enum constant in enum class tigase.xml.SimpleParser.State
- END_OF_ATTR_NAME - Enum constant in enum class tigase.xml.SimpleParser.State
- endElement(StringBuilder) - Method in class tigase.xml.DomBuilderHandler
- endElement(StringBuilder) - Method in interface tigase.xml.SimpleHandler
- endElement(StringBuilder) - Method in class tigase.xml.XMLFormatter
- ENTITY - Enum constant in enum class tigase.xml.SimpleParser.State
- ENTRY - Static variable in class tigase.xml.db.DBElement
- equals(Object) - Method in class tigase.xml.Element
-
Methods checks equality of instances of `Element` excluding list of children
- equals(Object) - Method in record class tigase.xml.ElementMatcher.Attribute
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class tigase.xml.ElementMatcher
- equals(Object) - Method in class tigase.xml.Path
- error(String) - Method in class tigase.xml.DomBuilderHandler
- error(String) - Method in interface tigase.xml.SimpleHandler
- error(String) - Method in class tigase.xml.XMLFormatter
- ERROR - Enum constant in enum class tigase.xml.SimpleParser.State
- escape(String) - Static method in class tigase.xml.XMLUtils
- evaluate(Element) - Method in class tigase.xml.Path
-
Method filters passed element children (and subchildren) and returns first child matching this path
- evaluateAll(Element) - Method in class tigase.xml.Path
-
Method filters passed element children (and subchildren) and returns children matching this path
F
- findChild(String) - Method in class tigase.xml.Element
-
Method returns first child which name matches
- findChild(String, String) - Method in class tigase.xml.Element
-
Method returns first child which matches name and xmlns
- findChild(Predicate<Element>) - Method in class tigase.xml.Element
-
Method returns first child which matches predicate
- findChildAt(Predicate<Element>, Predicate<Element>...) - Method in class tigase.xml.Element
-
Method returns first element which matches path
- findChildAt(Path) - Method in class tigase.xml.Element
-
Method returns first element which matches path
- findChildren(Predicate<Element>) - Method in class tigase.xml.Element
-
Method returns list of children matching predicate
- findChildrenAt(Path) - Method in class tigase.xml.Element
-
Method returns list of children matching path
- findEntry(String) - Method in class tigase.xml.db.DBElement
- findNode(String) - Method in class tigase.xml.db.DBElement
- findNode1(String) - Method in class tigase.xml.db.XMLDB
-
Return Element corresponding to the node name
- forEachChild(Predicate<Element>, Consumer<Element>) - Method in class tigase.xml.Element
- forEachChild(Consumer<Element>) - Method in class tigase.xml.Element
- formatedString(int, int) - Method in class tigase.xml.db.DBElement
G
- getAllNode1s() - Method in class tigase.xml.db.XMLDB
-
Retrieve list of nodes
- getAllNode1sCount() - Method in class tigase.xml.db.XMLDB
-
Retrieve number of nodes
- getAttribute(String) - Method in class tigase.xml.Element
-
Method returns value of the attribute
- getAttributeAt(Path, String) - Method in class tigase.xml.Element
-
Method returns value of the attribute of the first element matching path
- getAttributes() - Method in class tigase.xml.Element
-
Method returns copy of all attributes
- getCData() - Method in class tigase.xml.CData
- getCData() - Method in class tigase.xml.Element
-
Method returns CData value of the element
- getCDataAt(Path) - Method in class tigase.xml.Element
-
Method returns CData value of the first element matching path
- getChildren() - Method in class tigase.xml.Element
-
Method returns list of all children
- getData(String, String) - Method in class tigase.xml.db.XMLDB
-
Retrieve value of given node
- getData(String, String, String) - Method in class tigase.xml.db.XMLDB
-
Retrieve value of given node under specific path
- getData(String, String, String, Object) - Method in class tigase.xml.db.XMLDB
-
Retrieve value of given node under specific path
- getDataDouble(String, String, String, double) - Method in class tigase.xml.db.XMLDB
-
Retrieve value of given node under specific path
- getDataDoubleList(String, String, String) - Method in class tigase.xml.db.XMLDB
-
Retrieve values of given node under specific path
- getDataInt(String, String, String, int) - Method in class tigase.xml.db.XMLDB
-
Retrieve value of given node under specific path
- getDataIntList(String, String, String) - Method in class tigase.xml.db.XMLDB
-
Retrieve values of given node under specific path
- getDataList(String, String, String) - Method in class tigase.xml.db.XMLDB
-
Retrieve values of given node under specific path
- getDBFileName() - Method in class tigase.xml.db.XMLDB
-
Retrieves filename
- getEntry(String) - Method in class tigase.xml.db.DBElement
- getEntryDoubleArrValue(String, double[]) - Method in class tigase.xml.db.DBElement
- getEntryDoubleValue(String, double) - Method in class tigase.xml.db.DBElement
- getEntryIntArrValue(String, int[]) - Method in class tigase.xml.db.DBElement
- getEntryIntValue(String, int) - Method in class tigase.xml.db.DBElement
- getEntryKeys() - Method in class tigase.xml.db.DBElement
- getEntryStringArrValue(String, String[]) - Method in class tigase.xml.db.DBElement
- getEntryStringValue(String, String) - Method in class tigase.xml.db.DBElement
- getEntryValue(String, Object) - Method in class tigase.xml.db.DBElement
- getFactory() - Static method in class tigase.xml.db.DBElementFactory
- getKeys(String) - Method in class tigase.xml.db.XMLDB
-
Retrieve list of keys under root
- getKeys(String, String) - Method in class tigase.xml.db.XMLDB
-
Retrieve list of keys under specific path
- getName() - Method in class tigase.xml.Element
-
Method returns name of the element
- getNode(String, String, boolean) - Method in class tigase.xml.db.XMLDB
-
Retrieves the node of the given name at specific path
- getNode1(String) - Method in class tigase.xml.db.XMLDB
- getParsedElements() - Method in class tigase.xml.DomBuilderHandler
- getParserInstance() - Static method in class tigase.xml.SingletonFactory
- getSubnode(String) - Method in class tigase.xml.db.DBElement
- getSubnodePath(String) - Method in class tigase.xml.db.DBElement
- getSubnodes() - Method in class tigase.xml.db.DBElement
- getSubnodes(String) - Method in class tigase.xml.db.XMLDB
-
Retrieve list of subnodes under root
- getSubnodes(String, String) - Method in class tigase.xml.db.XMLDB
-
Retrieve list of subnodes under specific path
- getXMLNS() - Method in class tigase.xml.Element
-
Method returns XMLNS of the element
H
- hasAttribute(String) - Method in class tigase.xml.Element
-
Method check if attribute is set
- hasAttribute(String, String) - Method in class tigase.xml.Element
-
Method check if attribute is set to the value
- hashCode() - Method in class tigase.xml.Element
- hashCode() - Method in record class tigase.xml.ElementMatcher.Attribute
-
Returns a hash code value for this object.
- hashCode() - Method in class tigase.xml.ElementMatcher
- hashCode() - Method in class tigase.xml.Path
I
- IMPORTANT - Enum constant in enum class tigase.xml.annotations.TODO.Severity
-
IMPORTANTseverity means that this code does not block implementation of any functionality but might be inefficient, insecure or contain some temporary solution.
IMPORTANTseverity can be also assigned to code which needs some medium or major refactoring. - INTEGER - Enum constant in enum class tigase.xml.db.Types.DataType
- INTEGER_ARR - Enum constant in enum class tigase.xml.db.Types.DataType
- isAlpha(char) - Static method in class tigase.xml.SimpleParser
- isNumeric(char) - Static method in class tigase.xml.SimpleParser
K
L
- loadDB() - Method in class tigase.xml.db.XMLDB
-
Loads XML from file
- LONG - Enum constant in enum class tigase.xml.db.Types.DataType
- LONG_ARR - Enum constant in enum class tigase.xml.db.Types.DataType
M
- main(String[]) - Static method in class tigase.xml.XMLFormatter
- main(String[]) - Static method in class tigase.xml.XMLUtils
- map(Function<Element, ? extends R>) - Method in class tigase.xml.Element
-
Method executes function passing self as a parameter and returns its result
- MAP - Static variable in class tigase.xml.db.DBElement
- mapChild(Predicate<Element>, Function<Element, R>) - Method in class tigase.xml.Element
-
Method transforms first child element matching predicate
- mapChildren(Function<Element, ? extends R>) - Method in class tigase.xml.Element
-
Method applies function against each child of the element and returns list results
- mapChildren(Predicate<Element>, Function<Element, ? extends R>) - Method in class tigase.xml.Element
-
Method applies function against each child of the element and returns list results
- matches(Predicate<Element>) - Method in class tigase.xml.Element
-
Method test if this element matches predicate
- MAX_ATTRIBS_NUMBER - Variable in class tigase.xml.SimpleParser
-
Variable constant
MAX_ATTRIBS_NUMBERkeeps value of maximum possible attributes number. - MAX_ATTRIBS_NUMBER_PROP_KEY - Static variable in class tigase.xml.SimpleParser
- MAX_ATTRIBUTE_NAME_SIZE - Variable in class tigase.xml.SimpleParser
- MAX_ATTRIBUTE_NAME_SIZE_PROP_KEY - Static variable in class tigase.xml.SimpleParser
- MAX_ATTRIBUTE_VALUE_SIZE - Variable in class tigase.xml.SimpleParser
- MAX_ATTRIBUTE_VALUE_SIZE_PROP_KEY - Static variable in class tigase.xml.SimpleParser
- MAX_CDATA_SIZE - Variable in class tigase.xml.SimpleParser
- MAX_CDATA_SIZE_PROP_KEY - Static variable in class tigase.xml.SimpleParser
- MAX_ELEMENT_NAME_SIZE - Variable in class tigase.xml.SimpleParser
- MAX_ELEMENT_NAME_SIZE_PROP_KEY - Static variable in class tigase.xml.SimpleParser
- modify(Consumer<Element>) - Method in class tigase.xml.Element
-
Method executes consumer passing self as a parameter Useful for conditional building of element in the single line
N
- name() - Method in record class tigase.xml.ElementMatcher.Attribute
-
Returns the value of the
namerecord component. - name(String) - Static method in class tigase.xml.ElementFilters
-
Method returns predicate testing
Elementname - NAME - Static variable in class tigase.xml.db.DBElement
- nameAndAttribute(String, String, String) - Static method in class tigase.xml.ElementFilters
-
Method returns predicate testing
Elementname, attribute name and value - nameAndXmlns(String, String) - Static method in class tigase.xml.Path
- nameAndXMLNS(String, String) - Static method in class tigase.xml.ElementFilters
-
Method returns predicate testing
Elementname and xmlns - NAMED - Enum constant in enum class tigase.xml.SimpleParser.EntityType
- newSubnode(String) - Method in class tigase.xml.db.DBElement
- NODE - Static variable in class tigase.xml.db.DBElement
- NodeExistsException - Exception Class in tigase.xml.db
-
This exception is thrown when user tries to add subnode with name which already exists in data base.
- NodeExistsException() - Constructor for exception class tigase.xml.db.NodeExistsException
- NodeExistsException(String) - Constructor for exception class tigase.xml.db.NodeExistsException
- NodeExistsException(String, Throwable) - Constructor for exception class tigase.xml.db.NodeExistsException
- NodeExistsException(Throwable) - Constructor for exception class tigase.xml.db.NodeExistsException
- NodeNotFoundException - Exception Class in tigase.xml.db
-
Exception is thrown when user tries to access non-existen node on 1st level.
- NodeNotFoundException() - Constructor for exception class tigase.xml.db.NodeNotFoundException
- NodeNotFoundException(String) - Constructor for exception class tigase.xml.db.NodeNotFoundException
- NodeNotFoundException(String, Throwable) - Constructor for exception class tigase.xml.db.NodeNotFoundException
- NodeNotFoundException(Throwable) - Constructor for exception class tigase.xml.db.NodeNotFoundException
- nodesToString(StringBuilder) - Method in class tigase.xml.Element
-
Serialize subnodes to passed builder
- nodesToStringPretty(StringBuilder) - Method in class tigase.xml.Element
-
Serialize subnodes as a formatted string
- nodesToStringSecure(StringBuilder) - Method in class tigase.xml.Element
-
Serialize subnodes to passed builder as a secure string
- note() - Element in annotation interface tigase.xml.annotations.TODO
-
noteproperty allows you to set and retrieve description text for expected code change.
O
- of(String...) - Static method in class tigase.xml.Path
-
Simplified for to ease transition from String[] to Path.
- of(ElementMatcher...) - Static method in class tigase.xml.Path
-
Method for creating
PathfromElementMatchers. - OPEN_BRACKET - Enum constant in enum class tigase.xml.SimpleParser.State
- OTHER_XML - Enum constant in enum class tigase.xml.SimpleParser.State
- otherXML(StringBuilder) - Method in class tigase.xml.DomBuilderHandler
- otherXML(StringBuilder) - Method in interface tigase.xml.SimpleHandler
- otherXML(StringBuilder) - Method in class tigase.xml.XMLFormatter
- outputExtraData(String) - Method in class tigase.xml.XMLFormatter
P
- parse(String) - Static method in class tigase.xml.ElementMatcher
-
Method parses
Stringinto matcher - parse(String) - Static method in class tigase.xml.Path
-
Method parses
Stringinto path - parse(Path.State) - Static method in record class tigase.xml.ElementMatcher.Attribute
- parse(Path.State) - Static method in class tigase.xml.ElementMatcher
-
Method parses
Stringinto matcher - parse(SimpleHandler, char[], int, int) - Method in class tigase.xml.SimpleParser
- parse(SimpleHandler, String) - Method in class tigase.xml.SimpleParser
- ParserState() - Constructor for class tigase.xml.SimpleParser.ParserState
- Path - Class in tigase.xml
-
Pathholds predicates that need to be matched to find child (element within a tree of elements). - Path.PathFormatException - Exception Class in tigase.xml
-
Exception thrown if it is not possible to parse String into path
- Path.State - Class in tigase.xml
- PathFormatException(String) - Constructor for exception class tigase.xml.Path.PathFormatException
R
- removeAttribute(String) - Method in class tigase.xml.Element
-
Method removes attribute
- removeChild(String, String) - Method in class tigase.xml.Element
-
Method removes first child with matching name and xmlns
- removeChild(Predicate<Element>) - Method in class tigase.xml.Element
-
Method removes first child matching predicate
- removeChild(Element) - Method in class tigase.xml.Element
-
Method removes child instance
- removed - Variable in class tigase.xml.db.DBElement
- removeData(String, String) - Method in class tigase.xml.db.XMLDB
-
Removes data of specific key from node of given name under root element
- removeData(String, String, String) - Method in class tigase.xml.db.XMLDB
-
Removes data of specific key from node of given name under given path
- removeEntry(String) - Method in class tigase.xml.db.DBElement
- removeNode(String) - Method in class tigase.xml.db.DBElement
- removeNode1(String) - Method in class tigase.xml.db.XMLDB
-
Removes the node
- removeSubnode(String, String) - Method in class tigase.xml.db.XMLDB
-
Removes node of given name under given path
- restoreParserState() - Method in class tigase.xml.DomBuilderHandler
- restoreParserState() - Method in interface tigase.xml.SimpleHandler
- restoreParserState() - Method in class tigase.xml.XMLFormatter
S
- saveDB() - Method in class tigase.xml.db.XMLDB
-
Saves XML to file
- saveParserState(Object) - Method in class tigase.xml.DomBuilderHandler
- saveParserState(Object) - Method in interface tigase.xml.SimpleHandler
- saveParserState(Object) - Method in class tigase.xml.XMLFormatter
- setAttribute(String, String) - Method in class tigase.xml.Element
-
Method sets attribute value
- setAttributes(Map<String, String>) - Method in class tigase.xml.Element
-
Method replaces all attributes with name-value pairs provided in the map
- setCdata(String) - Method in class tigase.xml.CData
- setCData(String) - Method in class tigase.xml.Element
-
Method sets CData of the element.
- setChildren(List<XMLNodeIfc>) - Method in class tigase.xml.Element
-
Method replaces all nodes (children and cdata) with passed list of children
- setData(String, String, Object) - Method in class tigase.xml.db.XMLDB
-
Sets data for the given node at root
- setData(String, String, String, Object) - Method in class tigase.xml.db.XMLDB
-
Sets data for the given node at given path
- setEntry(String, Object) - Method in class tigase.xml.db.DBElement
- setName(String) - Method in class tigase.xml.ElementMatcher
-
Method sets matcher name to compare (or sets it to null to match any name)
- setupNewDB(String, String, String) - Method in class tigase.xml.db.XMLDB
-
Creates basic Elements of the XMLDB
- setXMLNS(String) - Method in class tigase.xml.Element
-
Method sets XMLNS of the element
- setXMLNS(String) - Method in class tigase.xml.ElementMatcher
-
Method sets matcher xmlns to compare (or sets it to null to match any xmlns)
- severity() - Element in annotation interface tigase.xml.annotations.TODO
-
severityproperty allows you to set and retrieve severity of expected code change described by thisTODOannotation. - SimpleHandler - Interface in tigase.xml
-
SimpleHandler- parser handler interface for event driven parser. - SimpleParser - Class in tigase.xml
-
SimpleParser- implementation of SAX parser. - SimpleParser() - Constructor for class tigase.xml.SimpleParser
- SimpleParser.EntityType - Enum Class in tigase.xml
- SimpleParser.ParserState - Class in tigase.xml
- SimpleParser.State - Enum Class in tigase.xml
- Simple XML parser implementation. - Search tag in package tigase.xml
- Section
- SingletonFactory - Class in tigase.xml
-
SingletonFactoryprovides a way to use only one instance ofSimpleParserin all your code. - SingletonFactory() - Constructor for class tigase.xml.SingletonFactory
- START - Enum constant in enum class tigase.xml.SimpleParser.State
- startElement(StringBuilder, StringBuilder[], StringBuilder[]) - Method in class tigase.xml.DomBuilderHandler
- startElement(StringBuilder, StringBuilder[], StringBuilder[]) - Method in interface tigase.xml.SimpleHandler
- startElement(StringBuilder, StringBuilder[], StringBuilder[]) - Method in class tigase.xml.XMLFormatter
- State(String) - Constructor for class tigase.xml.Path.State
- STRING - Enum constant in enum class tigase.xml.db.Types.DataType
- STRING_ARR - Enum constant in enum class tigase.xml.db.Types.DataType
- sync() - Method in class tigase.xml.db.XMLDB
-
Performs synchronization with the file
T
- test(Element) - Method in class tigase.xml.ElementMatcher
- then(ElementMatcher) - Method in class tigase.xml.Path
-
Method for building a new path by adding additional element matcher to the end of the path
- This package contains implementation of simple data base stored in XML file. This data base implementation is very simple but also very handy. It simple because it reads whole data base file into memory to operate on data. It allows to store and retrieve only text or character string data. Data base is kept in XML file. This gives us a few nice benefits: First of all this is hierachical data base so you can organize your data in tree like structures. It looks like a file system directory structure and you also operate on it in very similar way. Second it allows you to assign any number of values to one key. They are called data lists. As a whole data base is kept in memory it is not good for storring large number of data in one file. But it is very fast. It is good especially for storring configuration or data which are similar in their nature to LDAP supporting data bases. You don't have to worry about saving data. Each time you add new item to data base it take care about saving them to permanent storage. XMLDB is the main data base access class. It allows you to create new data base in given file, open data base from given file, add, delete and retrieve data and data lists. All data or data lists are stored in data base nodes. There are three possible kinds of nodes for each data base: root node - this is top node in each XML hierachy tree. There can be only one root node in data base as there can be only one root element in XML file. The element name for root node can be defined by the user when new data base is created or defualt element name 'root' is used. node1 nodes - these are the first level nodes under root node. There can be any number of nodes on this level. All data added for this data base are added to first level node unless subnode path is given. User can define element name of node1 when new data base is created. If not given default element name 'node' is used. subnodes - node on any deeper level under node1 level. There can be any number of subnodes on any level. Subnodes has always 'node' element name and this can't be changed. All node1 nodes and subnodes can contains any number of data associated with keys. With some keys there ca be more than one value assigned. Such kind of data are called data lists. Although element name for subnode can not be defined it is actually not important. Because data base user doesn't use subnode element names. He doesn't even use neiher root node element name nor node1 element name. Data base user uses node name what is quite different from node element name. Let see example below: node name='roster'/ In this example node element name is node and node name is roster. Data base users (actually developers) use only node names. If you want to access subnode on some level you need to give full path to this subnode. For example, let's assume we have following data base: ;node name='tigase' node name='server' /node node name='xmpp' /node /node If you need to access 'server' subnode you need to call method with '/tigase/server' as subnode path and for subnode 'xmpp' proper subnode path is of course '/tigase/xmpp'. If you skip subnode path or give null as a parameter you will be accessing data on node1 level. You can not access or save data on root node level. DBElement class extends tigase.xml.Element. It adds some extra functionality useful for data base operations like searching for some specific nodes, add data entries, remove data, and all other common operations not directly related to pure XML processing. Pure XML processing is of course implemented in tigase.xml.Element. The are also some methods which make it easier to save XML tree from memory to disk file in a form which is easier to read by a human. DBElementFactory is implementation of factory design pattern required by XML DOM builder to create proper Element instances for tree nodes. - Search tag in package tigase.xml.db
- Section
- tigase.xml - package tigase.xml
-
Simple XML parser implementation.
- tigase.xml.annotations - package tigase.xml.annotations
- tigase.xml.db - package tigase.xml.db
-
This package contains implementation of simple data base stored in XML file.
- timeLine() - Element in annotation interface tigase.xml.annotations.TODO
-
timeLineproperty allows you to set and retrieve expected time by when the change should be done to this code. - TODO - Annotation Interface in tigase.xml.annotations
-
TODOthis is information for developers that there is still something to do with annotated code. - TODO.Severity - Enum Class in tigase.xml.annotations
-
This enumeration defines importance levels for code change which is expected to be made for annotated element.
- toString() - Method in class tigase.xml.CData
- toString() - Method in enum class tigase.xml.db.Types.DataType
- toString() - Method in class tigase.xml.db.XMLDB
- toString() - Method in class tigase.xml.Element
- toString() - Method in record class tigase.xml.ElementMatcher.Attribute
-
Returns a string representation of this record class.
- toString() - Method in class tigase.xml.ElementMatcher
- toString() - Method in class tigase.xml.Path
- toString(StringBuilder) - Method in class tigase.xml.Element
-
Method serializes element to passed build
- toStringBuilder(StringBuilder) - Method in class tigase.xml.ElementMatcher
- toStringNoChildren() - Method in class tigase.xml.Element
-
Method serializes element without children
- toStringPretty() - Method in class tigase.xml.CData
- toStringPretty() - Method in class tigase.xml.Element
-
Method serializes element to formatted string
- toStringPretty() - Method in interface tigase.xml.XMLNodeIfc
- toStringSecure() - Method in class tigase.xml.CData
- toStringSecure() - Method in class tigase.xml.Element
-
Method serializes element to a secure string
- toStringSecure() - Method in interface tigase.xml.XMLNodeIfc
- toStringSecure(StringBuilder) - Method in class tigase.xml.Element
-
Method serializes element as a secure string to passed builder
- translateAll(String, String[], String[]) - Static method in class tigase.xml.XMLUtils
- TRIVIAL - Enum constant in enum class tigase.xml.annotations.TODO.Severity
-
TRIVIALseverity means that this code works correctly and is implemented according to design but there is still some minor improvement that can be done or just cleaning the code.
TRIVIALseverity can be assigned also to code which needs some minor refactoring. - TYPE - Static variable in class tigase.xml.db.DBElement
- Types - Class in tigase.xml.db
-
Describe class Types here.
- Types() - Constructor for class tigase.xml.db.Types
- Types.DataType - Enum Class in tigase.xml.db
-
Describe class DataType here.
U
- UNDEFINED - Enum constant in enum class tigase.xml.db.Types.DataType
- unescape(String) - Static method in class tigase.xml.XMLUtils
- UNKNOWN - Enum constant in enum class tigase.xml.SimpleParser.EntityType
V
- value() - Method in record class tigase.xml.ElementMatcher.Attribute
-
Returns the value of the
valuerecord component. - VALUE - Static variable in class tigase.xml.db.DBElement
- valueof(String) - Static method in enum class tigase.xml.db.Types.DataType
- valueOf(String) - Static method in enum class tigase.xml.annotations.TODO.Severity
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class tigase.xml.db.Types.DataType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class tigase.xml.SimpleParser.EntityType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class tigase.xml.SimpleParser.State
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class tigase.xml.annotations.TODO.Severity
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class tigase.xml.db.Types.DataType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class tigase.xml.SimpleParser.EntityType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class tigase.xml.SimpleParser.State
-
Returns an array containing the constants of this enum class, in the order they are declared.
X
- XMLDB - Class in tigase.xml.db
-
XMLDBis the main database access class. - XMLDB(String) - Constructor for class tigase.xml.db.XMLDB
-
Creates XMLDB object with desired filename, if file modes is enabled then appropriate saver thread is created as well.
- XMLDBException - Exception Class in tigase.xml.db
-
This is parrent exception for all data base related exceptions.
- XMLDBException() - Constructor for exception class tigase.xml.db.XMLDBException
- XMLDBException(String) - Constructor for exception class tigase.xml.db.XMLDBException
- XMLDBException(String, Throwable) - Constructor for exception class tigase.xml.db.XMLDBException
- XMLDBException(Throwable) - Constructor for exception class tigase.xml.db.XMLDBException
- XMLFormatter - Class in tigase.xml
-
This is temporary code used for testing purposes only.
- XMLFormatter(OutputStream) - Constructor for class tigase.xml.XMLFormatter
- XMLNodeIfc<T> - Interface in tigase.xml
-
Created: Feb 9, 2009 12:21:23 PM
- xmlns(String) - Static method in class tigase.xml.ElementFilters
-
Method returns predicate testing
ElementXMLNS - XMLUtils - Class in tigase.xml
-
Describe class XMLUtil here.
- XMLUtils() - Constructor for class tigase.xml.XMLUtils
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form