Module org.eclipse.persistence.core
Class XPathFragment<XML_FIELD extends Field>
java.lang.Object
org.eclipse.persistence.internal.oxm.XPathFragment<XML_FIELD>
INTERNAL:
Purpose: Represents a token from an XPath statement.
For example the following XPath statment a/b[2]/text() corresponds to three XPathFragments: "a", "b[2]", and "text()".
Responsibilities:
- Maintain name, namespace, and prefix information.
- Maintain information about the corresponding node type.
- Maintain index information if any. The XPathFragment corresponding to b[2] would have an index value of 2.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XPathFragmentstatic final Charsetprotected booleanprotected booleanprotected booleanstatic final XPathFragmentstatic final Stringstatic final XPathFragment -
Constructor Summary
ConstructorsConstructorDescriptionXPathFragment(String xpathString) XPathFragment(String xpathString, char namespaceSeparator, boolean namespaceAware) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleangetChildrenCollisionSet(boolean isAttribute) INTERNAL: Gets auxiliary set for determining collisions during case insensitive unmarshalling.booleanintbyte[]charbyte[]getXPath()inthashCode()booleanbooleanbooleanbooleanbooleanbooleanINTERNAL: Indicates if the xpath is "."booleanvoidsetAttribute(boolean isAttribute) voidsetContainsIndex(boolean containsIndex) voidsetGeneratedPrefix(boolean isGenerated) voidsetHasText(boolean hasText) voidsetIndexValue(int indexValue) voidsetLeafElementType(QName type) voidsetLocalName(String localName) voidsetNamespaceAware(boolean isNamespaceAware) voidsetNamespaceSeparator(char namespaceSeparator) voidsetNamespaceURI(String namespaceURI) voidsetNextFragment(XPathFragment nextFragment) voidsetPredicate(XPathPredicate condition) voidvoidsetShouldExecuteSelectNodes(boolean newShouldExecuteSelectNodes) voidsetXMLField(XML_FIELD field) voidboolean
-
Field Details
-
TEXT_FRAGMENT
-
SELF_XPATH
- See Also:
-
SELF_FRAGMENT
-
ANY_FRAGMENT
-
CHARSET
-
hasAttribute
protected boolean hasAttribute -
nameIsText
protected boolean nameIsText -
isSelfFragment
protected boolean isSelfFragment
-
-
Constructor Details
-
XPathFragment
public XPathFragment() -
XPathFragment
-
XPathFragment
-
-
Method Details
-
setPredicate
-
isNamespaceAware
public boolean isNamespaceAware() -
setNamespaceAware
public void setNamespaceAware(boolean isNamespaceAware) -
getNamespaceSeparator
public char getNamespaceSeparator() -
setNamespaceSeparator
public void setNamespaceSeparator(char namespaceSeparator) -
getPredicate
-
getNextFragment
-
setNextFragment
-
setXPath
-
isAttribute
public boolean isAttribute() -
setAttribute
public void setAttribute(boolean isAttribute) -
getShortName
-
getPrefix
-
getPrefixBytes
public byte[] getPrefixBytes() -
setPrefix
-
getLocalName
-
getLocalNameBytes
public byte[] getLocalNameBytes() -
setLocalName
-
getNamespaceURI
-
setNamespaceURI
-
getIndexValue
public int getIndexValue() -
setIndexValue
public void setIndexValue(int indexValue) -
getXPath
-
hasNamespace
public boolean hasNamespace() -
isSelfFragment
public boolean isSelfFragment()INTERNAL: Indicates if the xpath is "."- Returns:
- true if the xpath is ".", false otherwise
-
nameIsText
public boolean nameIsText() -
setHasText
public void setHasText(boolean hasText) -
getHasText
public boolean getHasText() -
setContainsIndex
public void setContainsIndex(boolean containsIndex) -
containsIndex
public boolean containsIndex() -
setShouldExecuteSelectNodes
public void setShouldExecuteSelectNodes(boolean newShouldExecuteSelectNodes) -
shouldExecuteSelectNodes
public boolean shouldExecuteSelectNodes() -
equals
-
equals
-
hashCode
public int hashCode() -
getLeafElementType
-
hasLeafElementType
public boolean hasLeafElementType() -
setLeafElementType
-
setGeneratedPrefix
public void setGeneratedPrefix(boolean isGenerated) -
isGeneratedPrefix
public boolean isGeneratedPrefix() -
getXMLField
-
setXMLField
-
getChildrenCollisionSet
INTERNAL: Gets auxiliary set for determining collisions during case insensitive unmarshalling.- Parameters:
isAttribute- Determine if retrieving an element or an attribute collision set.- Returns:
- Set containing localNames of attributes or elements of an XPathFragment.
-