|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.query.converter.Converter
org.jafer.query.converter.RPNQueryConverter
public class RPNQueryConverter
This helper class contains all the methods to convert Z3950 RPN queries to and from Jafer Queries
Constructor Summary | |
---|---|
RPNQueryConverter()
|
Method Summary | |
---|---|
private static org.w3c.dom.Node |
buildConstraintModel(z3950.v3.RPNStructure structure,
QueryBuilder builder)
Builds a jafer constraint model node from the supplied rpnStructure |
static z3950.v3.RPNQuery |
convertJaferToRPN(JaferQuery jaferQuery)
This method converts a jafer query to the z3950.v3.RPNQuery format. |
static JaferQuery |
convertRPNToJafer(z3950.v3.RPNQuery rpnQuery)
This method converts a z3950.v3.RPNQuery to the JaferQuery format |
private static z3950.v3.RPNStructure |
processAndNode(org.w3c.dom.Node node)
Process an AND jafer query node. |
static z3950.v3.RPNStructure |
processConstraintModelNode(org.w3c.dom.Node constraintModel)
This method processes a constraint model Node. |
private static z3950.v3.RPNStructure |
processNode(org.w3c.dom.Node node)
This method processes the supplied jafer querey node and converts it to an RPN structure. |
private static z3950.v3.RPNStructure |
processOrNode(org.w3c.dom.Node node)
Process an OR jafer query node. |
private static org.w3c.dom.Node |
processRPNStructure(z3950.v3.RPNStructure structure)
This method creates a jafer query node for the supplied RPNStructure. |
Methods inherited from class org.jafer.query.converter.Converter |
---|
findNotChild, getFirstChild, getNodeValue, getSecondChild, selectNode, selectNodeList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RPNQueryConverter()
Method Detail |
---|
public static JaferQuery convertRPNToJafer(z3950.v3.RPNQuery rpnQuery) throws QueryException
rpnQuery
- The z3950.v3.RPNQuery
QueryException
public static z3950.v3.RPNQuery convertJaferToRPN(JaferQuery jaferQuery) throws QueryException
jaferQuery
- TThe jafer query to convert
QueryException
private static z3950.v3.RPNStructure processNode(org.w3c.dom.Node node) throws QueryException
node
- The jafer query node to process
QueryException
private static z3950.v3.RPNStructure processAndNode(org.w3c.dom.Node node) throws QueryException
node
- The AND node to process
QueryException
private static z3950.v3.RPNStructure processOrNode(org.w3c.dom.Node node) throws QueryException
node
- The OR node to process
QueryException
public static z3950.v3.RPNStructure processConstraintModelNode(org.w3c.dom.Node constraintModel) throws QueryException
constraintModel
- The constraint model node to process
QueryException
private static org.w3c.dom.Node processRPNStructure(z3950.v3.RPNStructure structure) throws QueryException
structure
- The rpn structure to process
QueryException
private static org.w3c.dom.Node buildConstraintModel(z3950.v3.RPNStructure structure, QueryBuilder builder) throws QueryException
structure
- The structure to processbuilder
- Instance of a query builder to use to create the node
QueryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |