Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
C
D
E
G
H
I
L
M
N
O
P
R
S
T
W
X
A
attribute(String)
- Method in interface org.translet.processor.
LocationPathHandler
Indicates an attribute in the location path.
attribute(String)
- Method in class org.translet.builder.
NodeCreator
attributeInPredicate(String)
- Method in interface org.translet.processor.
LocationPathHandler
Indicates that an attribute was found with in the predicate
attributeInPredicate(String)
- Method in class org.translet.builder.
NodeCreator
AXES_ANCESTOR
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating an ancestor axes
AXES_ANCESTOR_OR_SELF
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating an ancestor-or-self axes
AXES_ATTRIBUTE
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating an attribute axes
AXES_CHILD
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating child axes
AXES_DESCENDENT
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating descendent axes
AXES_DESCENDENT_OR_SELF
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating descendent-or-self axes
AXES_FOLLOWING
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating following axes
AXES_FOLLOWING_SIBLING
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating following-sibling axes
AXES_NAMESPACE
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating namespace axes
AXES_PARENT
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating parent axes
AXES_PRECEDING
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating preceding axes
AXES_PRECEDING_SIBLING
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating preceding-sibling axes
AXES_SELF
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating self axes
AXES_UNKNOWN
- Static variable in interface org.translet.processor.
LocationPathHandler
Constant indicating that the axes found was not recognized.
axes(short)
- Method in interface org.translet.processor.
LocationPathHandler
Indicates that an axes was encountered.
axes(short)
- Method in class org.translet.builder.
NodeCreator
C
CompoundPredicateExpr
- class org.translet.processor.
CompoundPredicateExpr
.
Represents a compound expression involving xpath expressions.
CompoundPredicateExpr(PredicateExpr, String, PredicateExpr)
- Constructor for class org.translet.processor.
CompoundPredicateExpr
createNode(String, String, short)
- Method in interface org.translet.processor.
LocationPathHandler
Creates a node of the specified type.
createNode(String, String, short)
- Method in class org.translet.builder.
NodeCreator
createSnapshot()
- Method in interface org.translet.processor.
TokenIterator
Creates a snapshot since the time markForSnapshot was called including all the elements that was gotten using
next()
.
createSnapshot()
- Method in class org.translet.processor.
TokenIteratorImpl
D
data(String)
- Method in interface org.translet.processor.
LocationPathHandler
Sets the data.
data(String)
- Method in class org.translet.builder.
NodeCreator
DataIterator
- interface org.translet.processor.
DataIterator
.
Iterator over a collection of xpaths and the corresponding value.
DEBUG
- Static variable in class org.translet.helper.
Logger
debug(Object)
- Method in class org.translet.helper.
Logger
debug(Object, Throwable)
- Method in class org.translet.helper.
Logger
DOMTranslatorResult
- class org.translet.processor.dom.
DOMTranslatorResult
.
Acts as a holder of the translated result tree, in the form of a Document Object Model (dom) tree.
DOMTranslatorResult()
- Constructor for class org.translet.processor.dom.
DOMTranslatorResult
Zero-argument default constructor.
DOMTranslatorResult(Document)
- Constructor for class org.translet.processor.dom.
DOMTranslatorResult
Uses the DOM document for creating the resulting xml nodes.
DomUtils
- class org.translet.helper.
DomUtils
.
DomUtils()
- Constructor for class org.translet.helper.
DomUtils
E
endLocationPath()
- Method in interface org.translet.processor.
LocationPathHandler
Indicates the closing of a LocationPath.
endLocationPath()
- Method in class org.translet.builder.
NodeCreator
endPredicate()
- Method in interface org.translet.processor.
LocationPathHandler
Indicates the closing of a predicate.
endPredicate()
- Method in class org.translet.builder.
NodeCreator
endXPath()
- Method in interface org.translet.processor.
LocationPathHandler
Indicates the closing of an xpath expression.
endXPath()
- Method in class org.translet.builder.
NodeCreator
ERROR
- Static variable in class org.translet.helper.
Logger
error(Object)
- Method in class org.translet.helper.
Logger
error(Object, Throwable)
- Method in class org.translet.helper.
Logger
evaluate()
- Method in interface org.translet.processor.
PredicateExpr
Evaluates the expression and returns the value.
evaluate()
- Method in class org.translet.processor.
SimplePredicateExpr
Returns the name of the attribute
evaluate()
- Method in class org.translet.processor.
CompoundPredicateExpr
evaluateOperation(String, String, String)
- Static method in class org.translet.helper.
MathUtils
Takes two strings and an operator that acts on the two strings and evaluates the operation.
G
getAxes()
- Method in interface org.translet.processor.
PredicateContext
The axes of the current locationpath
getContextNodeName()
- Method in interface org.translet.processor.
PredicateContext
Local name of the node referred by this locationpath
getData()
- Method in class org.translet.processor.
XPathExpr
getDocument()
- Method in interface org.translet.processor.
LocationPathHandler
Returns the dom document.
getDocument()
- Method in class org.translet.processor.dom.
DOMTranslatorResult
Returns the DOM document that holds the results of the translation.
getDocument()
- Method in class org.translet.builder.
NodeCreator
getExpression()
- Method in class org.translet.processor.
XPathExpr
getFirstChildWithIndex(Node, String, int)
- Static method in class org.translet.helper.
DomUtils
Returns a node with tagname and at the specified position.
getFirstChildWithTag(Node, String)
- Static method in class org.translet.helper.
DomUtils
getHandler()
- Method in interface org.translet.processor.
XPathProcessor
Returns the current instance of handler that is registered to handle events.
getHandler()
- Method in class org.translet.processor.
XPathProcessorImpl
getInstance()
- Static method in class org.translet.processor.
Translator
Obtains an instance of the translator.
getInstance(String)
- Static method in class org.translet.helper.
Logger
getNamespaceURI()
- Method in interface org.translet.processor.
PredicateContext
Namespace URI of the node referred to in the locationpath
getParentNode()
- Method in interface org.translet.processor.
PredicateContext
The parent to the current locationPath
H
hasNext()
- Method in interface org.translet.processor.
TokenIterator
Check if there is any more tokens.
hasNext()
- Method in interface org.translet.processor.
DataIterator
Returns
true
if the iterator has more xpaths to be processed.
hasNext()
- Method in class org.translet.processor.
TokenIteratorImpl
Moves the current token cursor to the next token
hasPrevious()
- Method in interface org.translet.processor.
TokenIterator
Check if previous will return valid token.
hasPrevious()
- Method in class org.translet.processor.
TokenIteratorImpl
I
INFO
- Static variable in class org.translet.helper.
Logger
info(Object)
- Method in class org.translet.helper.
Logger
info(Object, Throwable)
- Method in class org.translet.helper.
Logger
initialize(PredicateContext, RuleMonitor)
- Method in interface org.translet.processor.
PredicateExpr
Initializes and validates (recursively, if required) the expression and returns the status about if the expression can be evaluated.
initialize(PredicateContext, RuleMonitor)
- Method in class org.translet.processor.
SimplePredicateExpr
initialize(PredicateContext, RuleMonitor)
- Method in class org.translet.processor.
CompoundPredicateExpr
isDebugEnabled()
- Method in class org.translet.helper.
Logger
Used to determine, if the debug is currently on or not.
isOperationAllowed(String)
- Method in interface org.translet.rules.
RuleMonitor
L
LocationPathHandler
- interface org.translet.processor.
LocationPathHandler
.
Handler for the enents generated while parsing an xpath.
locationStep(String)
- Method in interface org.translet.processor.
LocationPathHandler
Indicates that a location step was found.
locationStep(String)
- Method in class org.translet.builder.
NodeCreator
Logger
- class org.translet.helper.
Logger
.
Class used for logging debug messages.
M
markForSnapshot()
- Method in interface org.translet.processor.
TokenIterator
Marks the position to start recoding.
markForSnapshot()
- Method in class org.translet.processor.
TokenIteratorImpl
MathUtils
- class org.translet.helper.
MathUtils
.
MathUtils()
- Constructor for class org.translet.helper.
MathUtils
N
next()
- Method in interface org.translet.processor.
TokenIterator
Returns the value of the token.
next()
- Method in class org.translet.processor.
TokenIteratorImpl
nextTokenIs(char)
- Method in interface org.translet.processor.
TokenIterator
Returns true if the next token is the char specified.
nextTokenIs(char)
- Method in class org.translet.processor.
TokenIteratorImpl
Returns true if the next token is the char specified.
nextXPath()
- Method in interface org.translet.processor.
DataIterator
Returns next xpath in the interation.
NodeCreator
- class org.translet.builder.
NodeCreator
.
Default implementation of the
LocationPathHandler
that creates the nodes belonging to the XML document.
NodeCreator()
- Constructor for class org.translet.builder.
NodeCreator
Uses a new DOM document.
NodeCreator(Document)
- Constructor for class org.translet.builder.
NodeCreator
NodeTest
- class org.translet.builder.
NodeTest
.
NodeTest()
- Constructor for class org.translet.builder.
NodeTest
O
org.translet.builder
- package org.translet.builder
org.translet.helper
- package org.translet.helper
org.translet.processor
- package org.translet.processor
org.translet.processor.dom
- package org.translet.processor.dom
org.translet.rules
- package org.translet.rules
P
parse(InputStream, String, Properties)
- Static method in class org.translet.helper.
DomUtils
peekNext()
- Method in interface org.translet.processor.
TokenIterator
Peeks the next token w/o incrementing cursor.
peekNext()
- Method in class org.translet.processor.
TokenIteratorImpl
predicate(PredicateExpr)
- Method in interface org.translet.processor.
LocationPathHandler
Indicates a predicate in the location path.
predicate(PredicateExpr)
- Method in class org.translet.builder.
NodeCreator
PredicateContext
- interface org.translet.processor.
PredicateContext
.
Used to specify the information about the context of a predicate for the
PredicateExpr
.
PredicateExpr
- interface org.translet.processor.
PredicateExpr
.
Composite interface that represents the expression in the predicate
previous()
- Method in interface org.translet.processor.
TokenIterator
Returns the previous element in the list.
previous()
- Method in class org.translet.processor.
TokenIteratorImpl
printStackTrace()
- Method in class org.translet.processor.
ProcessException
printStackTrace(PrintStream)
- Method in class org.translet.processor.
ProcessException
printStackTrace(PrintWriter)
- Method in class org.translet.processor.
ProcessException
ProcessException
- exception org.translet.processor.
ProcessException
.
Represents an exceptional condition during the processing of the xpath expression.
ProcessException(String)
- Constructor for class org.translet.processor.
ProcessException
ProcessException(Throwable)
- Constructor for class org.translet.processor.
ProcessException
processXPath(XPathExpr)
- Method in interface org.translet.processor.
XPathProcessor
Processes the specified XPath and calls the registered call back methods.
processXPath(XPathExpr)
- Method in class org.translet.processor.
XPathProcessorImpl
R
rewind()
- Method in interface org.translet.processor.
TokenIterator
Re-initializes the iterator.
rewind()
- Method in class org.translet.processor.
TokenIteratorImpl
RuleMonitor
- interface org.translet.rules.
RuleMonitor
.
The interface for the rules that are used to make decisions when the xpath is ambiguous.
S
serialize(Node)
- Static method in class org.translet.helper.
DomUtils
serialize(Node, OutputFormat)
- Static method in class org.translet.helper.
DomUtils
serialize(Node, OutputStream)
- Static method in class org.translet.helper.
DomUtils
serialize(Node, OutputStream, OutputFormat)
- Static method in class org.translet.helper.
DomUtils
set(String, String)
- Method in class org.translet.processor.
XPathExpr
setDocument(Document)
- Method in class org.translet.processor.dom.
DOMTranslatorResult
Sets the document that will hold the results of the translation.
setHandler(LocationPathHandler)
- Method in interface org.translet.processor.
XPathProcessor
Registers the handler that processes the events generated while parsing the xpath.
setHandler(LocationPathHandler)
- Method in class org.translet.processor.
XPathProcessorImpl
SimplePredicateExpr
- class org.translet.processor.
SimplePredicateExpr
.
Represents a simple expression in the predicate.
SimplePredicateExpr(TokenIterator, LocationPathHandler)
- Constructor for class org.translet.processor.
SimplePredicateExpr
The tokens from the start to end position are the only tokens that should be processed by this simple expression.
startLocationPath()
- Method in interface org.translet.processor.
LocationPathHandler
Indicates the beginning of a LocationPath in an expression.
startLocationPath()
- Method in class org.translet.builder.
NodeCreator
startPredicate()
- Method in interface org.translet.processor.
LocationPathHandler
Indicates the beginning of a predicate in an expression.
startPredicate()
- Method in class org.translet.builder.
NodeCreator
startXPath()
- Method in interface org.translet.processor.
LocationPathHandler
Indicates the beginning of an xpath expression.
startXPath()
- Method in class org.translet.builder.
NodeCreator
T
TokenIterator
- interface org.translet.processor.
TokenIterator
.
Iterator across a specified range of the tokens generated from the xpath expressions.
TokenIteratorImpl
- class org.translet.processor.
TokenIteratorImpl
.
Iterator across a specified range of the tokens generated from the xpath expressions.
TokenIteratorImpl(Object[], int, int)
- Constructor for class org.translet.processor.
TokenIteratorImpl
toString()
- Method in class org.translet.processor.
XPathExpr
toString()
- Method in class org.translet.processor.
SimplePredicateExpr
toString()
- Method in class org.translet.processor.
CompoundPredicateExpr
translate(DataIterator, TranslatorResult)
- Method in class org.translet.processor.
Translator
Translates the collection of xpaths into xml document.
Translator
- class org.translet.processor.
Translator
.
Creates xml documents.
TranslatorResult
- interface org.translet.processor.
TranslatorResult
.
An object that implements this interface contains the information needed to build the resulting xml document.
W
WARN
- Static variable in class org.translet.helper.
Logger
warn(Object)
- Method in class org.translet.helper.
Logger
warn(Object, Throwable)
- Method in class org.translet.helper.
Logger
X
XPathExpr
- class org.translet.processor.
XPathExpr
.
This class represents the xpath expression.
XPathExpr()
- Constructor for class org.translet.processor.
XPathExpr
XPathExpr(String, String)
- Constructor for class org.translet.processor.
XPathExpr
XPathProcessor
- interface org.translet.processor.
XPathProcessor
.
Handles the processing of an xpath expression.
XPathProcessorImpl
- class org.translet.processor.
XPathProcessorImpl
.
Default implementation of the
XPathProcessor
.
XPathProcessorImpl(String)
- Constructor for class org.translet.processor.
XPathProcessorImpl
A
C
D
E
G
H
I
L
M
N
O
P
R
S
T
W
X
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES