Forge - Parser/XML 1.2.0.Final
A C E F G I M N O P Q R S T V X

A

attribute(String, Object) - Method in class org.jboss.forge.parser.xml.Node
Add or override a named attribute.

value will be converted to String using String.valueOf(value);
attribute(String, String) - Method in class org.jboss.forge.parser.xml.Node
Add or override a named attribute.
attribute(String, Object) - Method in class org.jboss.forge.parser.xml.query.Pattern
Add or override a named attribute.

value will be converted to String using String.valueOf(value);
attribute(String, String) - Method in class org.jboss.forge.parser.xml.query.Pattern
Add or override a named attribute.

C

createChild(String) - Method in class org.jboss.forge.parser.xml.Node
Create a new Node with given name.
createChild(Pattern...) - Method in class org.jboss.forge.parser.xml.Node
 
CreateQuery - Enum in org.jboss.forge.parser.xml.query
Creates the specified Patterns starting at the specified Node.

E

execute(Node, Pattern...) - Method in enum org.jboss.forge.parser.xml.query.CreateQuery
Queries the tree starting at the specified Node for the specified Patterns.
execute(Node, Pattern...) - Method in enum org.jboss.forge.parser.xml.query.GetOrCreateQuery
Queries the tree starting at the specified Node for the specified Patterns.
execute(Node, Pattern...) - Method in enum org.jboss.forge.parser.xml.query.GetQuery
Queries the tree starting at the specified Node for the specified Patterns.
execute(Node, Pattern...) - Method in enum org.jboss.forge.parser.xml.query.GetSingleQuery
Queries the tree starting at the specified Node for the specified Patterns.
execute(Node, Pattern...) - Method in interface org.jboss.forge.parser.xml.query.Query
Queries the tree starting at the specified Node for the specified Patterns.

F

from(String) - Static method in class org.jboss.forge.parser.xml.util.Patterns
Creates a query collection of Patterns from the specified String-formed query expression

G

get(String) - Method in class org.jboss.forge.parser.xml.Node
Get all children with a specific name.
get(Pattern...) - Method in class org.jboss.forge.parser.xml.Node
Get all children matching the specified query.
getAttribute(String) - Method in class org.jboss.forge.parser.xml.Node
Get a named attribute.
getAttribute(String) - Method in class org.jboss.forge.parser.xml.query.Pattern
Obtains the value of the named attribute, or null if not present
getAttributes() - Method in class org.jboss.forge.parser.xml.Node
Get all defined attributes for this Node in an immutable view
getAttributes() - Method in class org.jboss.forge.parser.xml.query.Pattern
Returns an immutable view of all defined attributes for this Node.
getChildren() - Method in class org.jboss.forge.parser.xml.Node
Get all the defined children for this node in an immutable view.
getName() - Method in class org.jboss.forge.parser.xml.Node
Get the Nodes name.
getName() - Method in class org.jboss.forge.parser.xml.query.Pattern
The node name
getNodeName() - Method in enum org.jboss.forge.parser.xml.XMLParser.NodeType
 
getOrCreate(String) - Method in class org.jboss.forge.parser.xml.Node
Get or create a named child node.
getOrCreate(Pattern...) - Method in class org.jboss.forge.parser.xml.Node
 
GetOrCreateQuery - Enum in org.jboss.forge.parser.xml.query
Starting at the specified Node, either returns an existing match for the specified Patterns, or creates new Node(s) as appropriate and returns the root of those created.
getParent() - Method in class org.jboss.forge.parser.xml.Node
Get the Nodes parent.
GetQuery - Enum in org.jboss.forge.parser.xml.query
Obtains the List of Nodes designated by the specified Patterns under the specified root Node.
getRoot() - Method in class org.jboss.forge.parser.xml.Node
Obtains the root Node for this reference
getSingle(String) - Method in class org.jboss.forge.parser.xml.Node
Get a single child node.

If multiple children are found with same name it is considered a IllegalArgumentException.
getSingle(Pattern...) - Method in class org.jboss.forge.parser.xml.Node
 
GetSingleQuery - Enum in org.jboss.forge.parser.xml.query
Form of GetQuery used as a convenience to retrieve a single result.
getText() - Method in class org.jboss.forge.parser.xml.Node
Get the Nodes text body.
getText() - Method in class org.jboss.forge.parser.xml.query.Pattern
Gets the node text to be matched
getTextValueForPatternName(String) - Method in class org.jboss.forge.parser.xml.Node
Get the text value of the element found at the given query name.
getTextValuesForPatternName(String) - Method in class org.jboss.forge.parser.xml.Node
Get the text values of all elements found at the given query name.

I

isComment() - Method in class org.jboss.forge.parser.xml.Node
Returns whether or not this Node represents a comment
isRoot() - Method in class org.jboss.forge.parser.xml.Node
Returns whether or not this Node is a root

M

matches(Node) - Method in class org.jboss.forge.parser.xml.query.Pattern
Returns true if and only if the specified Node values match the data contained in this Pattern value object

N

Node - Class in org.jboss.forge.parser.xml
Node is a data structure representing a container in a classic tree.
Node(String) - Constructor for class org.jboss.forge.parser.xml.Node
Creates a root Node
Node(String, Node) - Constructor for class org.jboss.forge.parser.xml.Node
Creates a Node

O

org.jboss.forge.parser.xml - package org.jboss.forge.parser.xml
 
org.jboss.forge.parser.xml.query - package org.jboss.forge.parser.xml.query
 
org.jboss.forge.parser.xml.util - package org.jboss.forge.parser.xml.util
 

P

parse(byte[]) - Static method in class org.jboss.forge.parser.xml.XMLParser
 
parse(String) - Static method in class org.jboss.forge.parser.xml.XMLParser
 
parse(InputStream) - Static method in class org.jboss.forge.parser.xml.XMLParser
 
Pattern - Class in org.jboss.forge.parser.xml.query
A pattern that may be executed as part of a Query upon a Node in a search, or used to define a target Node to be created.
Pattern(String) - Constructor for class org.jboss.forge.parser.xml.query.Pattern
Creates a new Pattern instance with the specified name
Patterns - Class in org.jboss.forge.parser.xml.util
Helper class for creating queries (collections of Patterns) from String query expressions
Patterns() - Constructor for class org.jboss.forge.parser.xml.util.Patterns
 

Q

Query<T> - Interface in org.jboss.forge.parser.xml.query
Contract for something capable of executing a query (collection of Patterns) upon a Node to find a match or matches.
QueryUtil - Class in org.jboss.forge.parser.xml.util
Helper util for building Query implementations

R

removeAttribute(String) - Method in class org.jboss.forge.parser.xml.Node
Remove a named attribute.
removeChild(Node) - Method in class org.jboss.forge.parser.xml.Node
Remove a single child from this Node
removeChild(String) - Method in class org.jboss.forge.parser.xml.Node
Remove a single child from this Node
removeChildren(String) - Method in class org.jboss.forge.parser.xml.Node
Remove all child nodes found at the given query.
removeChildren(Pattern, Pattern...) - Method in class org.jboss.forge.parser.xml.Node
Remove all child nodes found at the given Patterns.

S

setComment(boolean) - Method in class org.jboss.forge.parser.xml.Node
Marks this Node as a comment

T

text(Object) - Method in class org.jboss.forge.parser.xml.Node
Set the Nodes text body.

text will be converted to String using String.valueOf(text);
text(String) - Method in class org.jboss.forge.parser.xml.Node
Set the Nodes text body.
text(String) - Method in class org.jboss.forge.parser.xml.query.Pattern
Sets the node text to match, returning a reference to this Pattern
toString() - Method in class org.jboss.forge.parser.xml.Node
toString(boolean) - Method in class org.jboss.forge.parser.xml.Node
Returns a multiline String format of this Node and all children
toString() - Method in class org.jboss.forge.parser.xml.query.Pattern
toXMLByteArray(Node) - Static method in class org.jboss.forge.parser.xml.XMLParser
 
toXMLInputStream(Node) - Static method in class org.jboss.forge.parser.xml.XMLParser
 
toXMLString(Node) - Static method in class org.jboss.forge.parser.xml.XMLParser
 

V

validateNodeAndPatterns(Node, Pattern...) - Static method in class org.jboss.forge.parser.xml.util.QueryUtil
Validates input
valueOf(String) - Static method in enum org.jboss.forge.parser.xml.query.CreateQuery
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jboss.forge.parser.xml.query.GetOrCreateQuery
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jboss.forge.parser.xml.query.GetQuery
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jboss.forge.parser.xml.query.GetSingleQuery
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jboss.forge.parser.xml.XMLParser.NodeType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.jboss.forge.parser.xml.query.CreateQuery
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jboss.forge.parser.xml.query.GetOrCreateQuery
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jboss.forge.parser.xml.query.GetQuery
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jboss.forge.parser.xml.query.GetSingleQuery
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jboss.forge.parser.xml.XMLParser.NodeType
Returns an array containing the constants of this enum type, in the order they are declared.

X

XMLParser - Class in org.jboss.forge.parser.xml
 
XMLParser() - Constructor for class org.jboss.forge.parser.xml.XMLParser
 
XMLParser.NodeType - Enum in org.jboss.forge.parser.xml
 
XMLParserException - Exception in org.jboss.forge.parser.xml
 
XMLParserException() - Constructor for exception org.jboss.forge.parser.xml.XMLParserException
 
XMLParserException(String, Throwable) - Constructor for exception org.jboss.forge.parser.xml.XMLParserException
 
XMLParserException(String) - Constructor for exception org.jboss.forge.parser.xml.XMLParserException
 
XMLParserException(Throwable) - Constructor for exception org.jboss.forge.parser.xml.XMLParserException
 

A C E F G I M N O P Q R S T V X
Forge - Parser/XML 1.2.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.