|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.type.TypePathExecuter
public class TypePathExecuter
This class perform a type path and gives as result a list of types. Fallowing type path could be performed: /po/comment -> absolut addressing /po/item[2] -> the second child in a list /po/item[list] -> the list type ../comment -> go back to parent and then from there ./item/address/name -> reltive addressing from a type /po/* -> all direct children of po
Field Summary | |
---|---|
static java.lang.String |
PREDICATE_LIST
|
Constructor Summary | |
---|---|
TypePathExecuter()
|
Method Summary | |
---|---|
java.util.List |
getAllIDs(Document dom,
java.lang.String idName,
boolean onlySerializable)
|
static ListType |
getIndexedComponentListType(Type rootType,
java.lang.String xpath)
Returns the JAXFront ListType based on a indexed xpath. e.q. |
static TypePathExecuter |
getInstance()
Returns the sinle instance of TypePathExecuter. |
static java.lang.String |
getRelativeXPathLocation(java.lang.String xpath)
|
Type |
getTypeForXPath(Type rootType,
java.lang.String xpath)
Processes an xpath expression on the given type and returns the first found type. |
Type |
getTypeForXPath(Type rootType,
java.lang.String xpath,
boolean isEditingTypeIncluded)
Processes an xpath expression on the given type and returns the first found type. |
Type |
getTypeForXPath(Type rootType,
java.lang.String xpath,
boolean isEditingTypeIncluded,
boolean isListTypeIncluded)
Processes an xpath expression on the given type and returns the first found type. |
Type |
getTypeForXPath(Type rootType,
java.lang.String xpath,
boolean isEditingTypeIncluded,
boolean isListTypeIncluded,
boolean edTypeTraversal,
boolean serializableOnly,
boolean buildLazyChoices)
Processes an xpath expression on the given type and returns the first found type. |
static boolean |
isAddressingIndexedComponent(java.lang.String xpath)
Returns true if the passed xpath is addressing an indexed type. e.q. |
static boolean |
isLastAddressingIndexedComponent(java.lang.String xpath)
Returns true if the passed xpath is addressing an indexed type. e.q. |
java.util.List |
processXPath(Type rootType,
java.lang.String path)
Evaluates an xpath statement and returns the list of addressed types. |
java.util.List |
processXPath(Type rootType,
java.lang.String path,
boolean isEditingTypeIncluded)
Evaluates an xpath statement and returns the list of addressed types. |
java.util.List |
processXPath(Type rootType,
java.lang.String path,
boolean isEditingTypeIncluded,
boolean isListTypeIncluded)
Evaluates an xpath statement and returns the list of addressed types. |
java.util.List |
processXPath(Type rootType,
java.lang.String path,
boolean isEditingTypeIncluded,
boolean isListTypeIncluded,
boolean edTypeTraversal)
|
java.util.List |
processXPath(Type rootType,
java.lang.String path,
boolean isEditingTypeIncluded,
boolean isListTypeIncluded,
boolean edTypeTraversal,
boolean serializableOnly)
|
java.util.List |
processXPath(Type rootType,
java.lang.String path,
boolean isEditingTypeIncluded,
boolean isListTypeIncluded,
boolean edTypeTraversal,
boolean serializableOnly,
boolean buildLazyChoices)
|
java.util.List |
processXPath(Type rootType,
java.lang.String path,
boolean isEditingTypeIncluded,
boolean isListTypeIncluded,
boolean edTypeTraversal,
boolean serializableOnly,
boolean buildLazyChoices,
boolean cachedMode)
|
java.util.List |
processXPath(Type rootType,
java.lang.String path,
boolean isEditingTypeIncluded,
boolean isListTypeIncluded,
boolean edTypeTraversal,
boolean serializableOnly,
boolean buildLazyChoices,
boolean cachedMode,
boolean choosenOnly)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PREDICATE_LIST
Constructor Detail |
---|
public TypePathExecuter()
Method Detail |
---|
public static ListType getIndexedComponentListType(Type rootType, java.lang.String xpath)
rootType
- start point to evaluate xpathxpath
- indexed xpathpublic static TypePathExecuter getInstance()
public static java.lang.String getRelativeXPathLocation(java.lang.String xpath)
public static boolean isAddressingIndexedComponent(java.lang.String xpath)
xpath
- potential indexed xpath
public static boolean isLastAddressingIndexedComponent(java.lang.String xpath)
xpath
- potential indexed xpath
public Type getTypeForXPath(Type rootType, java.lang.String xpath)
rootType
- a type on which the xpath should be applied onxpath
- an xpath expression
public Type getTypeForXPath(Type rootType, java.lang.String xpath, boolean isEditingTypeIncluded)
rootType
- a type on which the xpath should be applied onxpath
- an xpath expressionisEditingTypeIncluded
- indicates if the editing type of ListTypes should be returned
too
public Type getTypeForXPath(Type rootType, java.lang.String xpath, boolean isEditingTypeIncluded, boolean isListTypeIncluded)
rootType
- a type on which the xpath should be applied onxpath
- an xpath expressionisEditingTypeIncluded
- indicates if the editing type of ListTypes should be returned
tooisListTypeIncluded
- indicates if a ListType should be returned or its content
public Type getTypeForXPath(Type rootType, java.lang.String xpath, boolean isEditingTypeIncluded, boolean isListTypeIncluded, boolean edTypeTraversal, boolean serializableOnly, boolean buildLazyChoices)
rootType
- a type on which the xpath should be applied onxpath
- an xpath expressionisEditingTypeIncluded
- indicates if the editing type of ListTypes should be returned
tooisListTypeIncluded
- indicates if a ListType should be returned or its content
public java.util.List processXPath(Type rootType, java.lang.String path)
rootType
- start point to evaluate xpathpath
- xpath to evaluatepublic java.util.List getAllIDs(Document dom, java.lang.String idName, boolean onlySerializable)
public java.util.List processXPath(Type rootType, java.lang.String path, boolean isEditingTypeIncluded)
rootType
- start point to evaluate xpathpath
- xpath to evaluateisEditingTypeIncluded
- indicates if the editing type of ListTypes should be returned
toopublic java.util.List processXPath(Type rootType, java.lang.String path, boolean isEditingTypeIncluded, boolean isListTypeIncluded)
rootType
- start point to evaluate xpathpath
- xpath to evaluateisEditingTypeIncluded
- indicates if the editing type of ListTypes should be returned
tooisListTypeIncluded
- indicates if a list type is in the target listpublic java.util.List processXPath(Type rootType, java.lang.String path, boolean isEditingTypeIncluded, boolean isListTypeIncluded, boolean edTypeTraversal)
public java.util.List processXPath(Type rootType, java.lang.String path, boolean isEditingTypeIncluded, boolean isListTypeIncluded, boolean edTypeTraversal, boolean serializableOnly)
public java.util.List processXPath(Type rootType, java.lang.String path, boolean isEditingTypeIncluded, boolean isListTypeIncluded, boolean edTypeTraversal, boolean serializableOnly, boolean buildLazyChoices)
rootType
- path
- isEditingTypeIncluded
- isListTypeIncluded
- edTypeTraversal
- serializableOnly
- buildLazyChoices
-
public java.util.List processXPath(Type rootType, java.lang.String path, boolean isEditingTypeIncluded, boolean isListTypeIncluded, boolean edTypeTraversal, boolean serializableOnly, boolean buildLazyChoices, boolean cachedMode)
rootType
- path
- isEditingTypeIncluded
- isListTypeIncluded
- edTypeTraversal
- serializableOnly
- buildLazyChoices
-
public java.util.List processXPath(Type rootType, java.lang.String path, boolean isEditingTypeIncluded, boolean isListTypeIncluded, boolean edTypeTraversal, boolean serializableOnly, boolean buildLazyChoices, boolean cachedMode, boolean choosenOnly)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |