public class SchemaPath extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaPath.PathStep |
static class |
SchemaPath.StepBase |
| Modifier and Type | Method and Description |
|---|---|
static SchemaPath |
buildPath(String path,
String elemname,
String nameattr,
String postext,
Object obj,
ValidationContext vctx)
Build a path.
|
int |
getPathLength()
Get length of this path (minimum number of nested elements).
|
boolean |
isWildStart()
Check if the first path step is a wildcard.
|
OpenAttrBase |
matchUnique(OpenAttrBase base)
Find unique match for expression starting from a supplied schema element annotation.
|
List |
partialMatchMultiple(int first,
int last,
OpenAttrBase base)
Find any number of matches for subexpression starting from a supplied schema element annotation.
|
OpenAttrBase |
partialMatchUnique(int first,
int last,
OpenAttrBase base)
Find unique match for subexpression starting from a supplied schema element annotation.
|
public int getPathLength()
public boolean isWildStart()
true if wildcard, false if notpublic List partialMatchMultiple(int first, int last, OpenAttrBase base)
first - starting path step indexlast - ending path step indexbase - starting element for matchnull if errorpublic OpenAttrBase partialMatchUnique(int first, int last, OpenAttrBase base)
first - starting path step indexlast - ending path step indexbase - starting element for matchnull if errorpublic OpenAttrBase matchUnique(OpenAttrBase base)
base - starting element for matchnull if errorpublic static SchemaPath buildPath(String path, String elemname, String nameattr, String postext, Object obj, ValidationContext vctx)
path - expression (null if none)elemname - element name for final step in pathnameattr - name attribute (applied to final step in path, null if none)postext - position (applied to final step in path, null if none)obj - object defining the pathvctx - validation contextnull if errorCopyright © 2005-2013 jibx.org. All Rights Reserved.