|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.parser.xml.SimpleXPathEvaluator
public class SimpleXPathEvaluator
This class is used for parsing the configuration parameters of the XML Parser2. After it compiles everything needed into an array it is used for matching elements found in the XML being parsed. Also this class keeps track of the elements that the XML Parser2 have entered in. Since XML Parser2 could be in only one mode (Input or Output) the THIS CLASS IS FOR INTERNAL USAGE ONLY! MAY CHANGE IN THE FUTURE!
Field Summary | |
---|---|
static String |
ELEMENT_SEPARATOR
The character that separates each element in a path. |
static byte |
EXACT_MATCH_FOUND
returned by the match(String, String, String) method and means that an exact match is found for the specified path |
static byte |
NO_MATCH_FOUND
returned by the match(String, String, String) method and means that no match is found for the specified path |
static byte |
PARTIAL_MATCH_FOUND
returned by the match(String, String, String) method and means that the provided element is part of the specified path |
static String |
PREFIX_LOCALNAME_SEPARATOR
The character that separates the prefix from the local name in a regular element. |
static String |
WILDCARD
The character that represents a QualifiedElementName or just an ElementName in the provided xpath string. |
Constructor Summary | |
---|---|
SimpleXPathEvaluator(String simpleXPath,
String namespaceMap,
String attributesDeclaration,
String[] entryTag,
Log log)
Constructor for the class. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte NO_MATCH_FOUND
public static final byte EXACT_MATCH_FOUND
public static final byte PARTIAL_MATCH_FOUND
public static final String WILDCARD
public static final String ELEMENT_SEPARATOR
public static final String PREFIX_LOCALNAME_SEPARATOR
Constructor Detail |
---|
public SimpleXPathEvaluator(String simpleXPath, String namespaceMap, String attributesDeclaration, String[] entryTag, Log log)
simpleXPath
- - the Simple XPath String to compile.namespaceMap
- - the namespaceMap String to compile (e.g.
prefix=namespaceURI).attributesDeclaration
- - the attributes declaration string.entryTag
- - the element that will be used to wrap each entry when
writing. Used only for reference when parsing the Static
Attribute Declarations. This parameter should be in one of the
following forms: [null, "localName"], ["prefix", "localName"].
If null is passed then no wrapping will be done...log
- - the log object to use for logging.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |