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
Modifier and TypeFieldDescriptionstatic final XPathFragment
static final Charset
protected boolean
protected boolean
protected boolean
static final XPathFragment
static final String
static final XPathFragment
-
Constructor Summary
ConstructorDescriptionXPathFragment
(String xpathString) XPathFragment
(String xpathString, char namespaceSeparator, boolean namespaceAware) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
getChildrenCollisionSet
(boolean isAttribute) INTERNAL: Gets auxiliary set for determining collisions during case insensitive unmarshalling.boolean
int
byte[]
char
byte[]
getXPath()
int
hashCode()
boolean
boolean
boolean
boolean
boolean
boolean
INTERNAL: Indicates if the xpath is "."boolean
void
setAttribute
(boolean isAttribute) void
setContainsIndex
(boolean containsIndex) void
setGeneratedPrefix
(boolean isGenerated) void
setHasText
(boolean hasText) void
setIndexValue
(int indexValue) void
setLeafElementType
(QName type) void
setLocalName
(String localName) void
setNamespaceAware
(boolean isNamespaceAware) void
setNamespaceSeparator
(char namespaceSeparator) void
setNamespaceURI
(String namespaceURI) void
setNextFragment
(XPathFragment nextFragment) void
setPredicate
(XPathPredicate condition) void
void
setShouldExecuteSelectNodes
(boolean newShouldExecuteSelectNodes) void
setXMLField
(XML_FIELD field) void
boolean
-
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.
-