public class DocumentNavigator
extends org.jaxen.DefaultNavigator
implements org.jaxen.NamedAccessNavigator
Modifier and Type | Class and Description |
---|---|
class |
DocumentNavigator.Namespace |
class |
DocumentNavigator.Property |
Constructor and Description |
---|
DocumentNavigator(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.search.SearchService searchService,
org.alfresco.service.namespace.NamespacePrefixResolver nspr,
boolean followAllParentLinks) |
DocumentNavigator(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.search.SearchService searchService,
org.alfresco.service.namespace.NamespacePrefixResolver nspr,
boolean followAllParentLinks,
boolean useJCRRootNode)
Deprecated.
useJCRRootNode parameter is now obsolete.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
contains(org.alfresco.service.cmr.repository.NodeRef childRef,
org.alfresco.service.namespace.QName qname,
String sqlLikePattern,
org.alfresco.service.cmr.search.SearchParameters.Operator defaultOperator) |
Iterator |
getAttributeAxisIterator(Object o) |
Iterator |
getAttributeAxisIterator(Object contextNode,
String localName,
String namespacePrefix,
String namespaceURI) |
String |
getAttributeName(Object o) |
String |
getAttributeNamespaceUri(Object o) |
String |
getAttributeQName(Object o) |
String |
getAttributeStringValue(Object o) |
Iterator |
getChildAxisIterator(Object o) |
Iterator |
getChildAxisIterator(Object contextNode,
String localName,
String namespacePrefix,
String namespaceURI) |
String |
getCommentStringValue(Object o) |
Object |
getDocumentNode(Object o) |
String |
getElementName(Object o) |
String |
getElementNamespaceUri(Object o) |
String |
getElementQName(Object o) |
String |
getElementStringValue(Object o) |
Iterator |
getFollowingAxisIterator(Object arg0) |
Iterator |
getFollowingSiblingAxisIterator(Object arg0) |
Iterator |
getNamespaceAxisIterator(Object o) |
String |
getNamespacePrefix(Object o) |
org.alfresco.service.namespace.NamespacePrefixResolver |
getNamespacePrefixResolver() |
String |
getNamespaceStringValue(Object o) |
Object |
getNode(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QNamePattern qNamePattern) |
Iterator |
getParentAxisIterator(Object o) |
Iterator |
getPrecedingAxisIterator(Object arg0) |
Iterator |
getPrecedingSiblingAxisIterator(Object arg0) |
String |
getTextStringValue(Object o) |
Boolean |
hasAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName typeQName) |
boolean |
isAttribute(Object o) |
boolean |
isComment(Object o) |
boolean |
isDocument(Object o) |
boolean |
isElement(Object o) |
boolean |
isNamespace(Object o) |
boolean |
isProcessingInstruction(Object o) |
Boolean |
isSubtypeOf(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName typeQName) |
boolean |
isText(Object o) |
Boolean |
like(org.alfresco.service.cmr.repository.NodeRef childRef,
org.alfresco.service.namespace.QName qname,
String sqlLikePattern,
boolean includeFTS) |
org.jaxen.XPath |
parseXPath(String o) |
void |
setFollowAllParentLinks(boolean followAllParentLinks)
Allow this to be set as it commonly changes from one search to the next
|
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getDocument, getElementById, getNodeType, getParentNode, getProcessingInstructionData, getProcessingInstructionTarget, getSelfAxisIterator, translateNamespacePrefixToUri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getDocument, getElementById, getNodeType, getParentNode, getProcessingInstructionData, getProcessingInstructionTarget, getSelfAxisIterator, translateNamespacePrefixToUri
public DocumentNavigator(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService, org.alfresco.service.namespace.NamespacePrefixResolver nspr, boolean followAllParentLinks, boolean useJCRRootNode)
public DocumentNavigator(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService, org.alfresco.service.namespace.NamespacePrefixResolver nspr, boolean followAllParentLinks)
dictionaryService
- used to resolve the subtypeOf function and other
type-related functionsnodeService
- the NodeService against which to executesearchService
- the service that helps resolve functions such as like
and containsnspr
- resolves namespaces in the xpathfollowAllParentLinks
- true if the XPath should traverse all parent associations when
going up the hierarchy; false if the only the primary
parent-child association should be traversedpublic org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
public void setFollowAllParentLinks(boolean followAllParentLinks)
followAllParentLinks
- truepublic String getAttributeName(Object o)
getAttributeName
in interface org.jaxen.Navigator
public String getAttributeNamespaceUri(Object o)
getAttributeNamespaceUri
in interface org.jaxen.Navigator
public String getAttributeQName(Object o)
getAttributeQName
in interface org.jaxen.Navigator
public String getAttributeStringValue(Object o)
getAttributeStringValue
in interface org.jaxen.Navigator
public String getCommentStringValue(Object o)
getCommentStringValue
in interface org.jaxen.Navigator
public String getElementName(Object o)
getElementName
in interface org.jaxen.Navigator
public String getElementNamespaceUri(Object o)
getElementNamespaceUri
in interface org.jaxen.Navigator
public String getElementQName(Object o)
getElementQName
in interface org.jaxen.Navigator
public String getElementStringValue(Object o)
getElementStringValue
in interface org.jaxen.Navigator
public String getNamespacePrefix(Object o)
getNamespacePrefix
in interface org.jaxen.Navigator
public String getNamespaceStringValue(Object o)
getNamespaceStringValue
in interface org.jaxen.Navigator
public String getTextStringValue(Object o)
getTextStringValue
in interface org.jaxen.Navigator
public boolean isAttribute(Object o)
isAttribute
in interface org.jaxen.Navigator
public boolean isComment(Object o)
isComment
in interface org.jaxen.Navigator
public boolean isDocument(Object o)
isDocument
in interface org.jaxen.Navigator
public boolean isElement(Object o)
isElement
in interface org.jaxen.Navigator
public boolean isNamespace(Object o)
isNamespace
in interface org.jaxen.Navigator
public boolean isProcessingInstruction(Object o)
isProcessingInstruction
in interface org.jaxen.Navigator
public boolean isText(Object o)
isText
in interface org.jaxen.Navigator
public org.jaxen.XPath parseXPath(String o) throws org.jaxen.JaxenException
parseXPath
in interface org.jaxen.Navigator
org.jaxen.JaxenException
public Iterator getAttributeAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI) throws org.jaxen.UnsupportedAxisException
getAttributeAxisIterator
in interface org.jaxen.NamedAccessNavigator
org.jaxen.UnsupportedAxisException
public Iterator getAttributeAxisIterator(Object o) throws org.jaxen.UnsupportedAxisException
getAttributeAxisIterator
in interface org.jaxen.Navigator
getAttributeAxisIterator
in class org.jaxen.DefaultNavigator
org.jaxen.UnsupportedAxisException
public Iterator getChildAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI) throws org.jaxen.UnsupportedAxisException
getChildAxisIterator
in interface org.jaxen.NamedAccessNavigator
org.jaxen.UnsupportedAxisException
public Iterator getChildAxisIterator(Object o) throws org.jaxen.UnsupportedAxisException
getChildAxisIterator
in interface org.jaxen.Navigator
getChildAxisIterator
in class org.jaxen.DefaultNavigator
org.jaxen.UnsupportedAxisException
public Iterator getFollowingSiblingAxisIterator(Object arg0) throws org.jaxen.UnsupportedAxisException
getFollowingSiblingAxisIterator
in interface org.jaxen.Navigator
getFollowingSiblingAxisIterator
in class org.jaxen.DefaultNavigator
org.jaxen.UnsupportedAxisException
always thrown
public Iterator getFollowingAxisIterator(Object arg0) throws org.jaxen.UnsupportedAxisException
getFollowingAxisIterator
in interface org.jaxen.Navigator
getFollowingAxisIterator
in class org.jaxen.DefaultNavigator
org.jaxen.UnsupportedAxisException
always thrown
public Iterator getPrecedingAxisIterator(Object arg0) throws org.jaxen.UnsupportedAxisException
getPrecedingAxisIterator
in interface org.jaxen.Navigator
getPrecedingAxisIterator
in class org.jaxen.DefaultNavigator
org.jaxen.UnsupportedAxisException
always thrown
public Iterator getPrecedingSiblingAxisIterator(Object arg0) throws org.jaxen.UnsupportedAxisException
getPrecedingSiblingAxisIterator
in interface org.jaxen.Navigator
getPrecedingSiblingAxisIterator
in class org.jaxen.DefaultNavigator
org.jaxen.UnsupportedAxisException
always thrown
public Iterator getNamespaceAxisIterator(Object o) throws org.jaxen.UnsupportedAxisException
getNamespaceAxisIterator
in interface org.jaxen.Navigator
getNamespaceAxisIterator
in class org.jaxen.DefaultNavigator
org.jaxen.UnsupportedAxisException
public Iterator getParentAxisIterator(Object o) throws org.jaxen.UnsupportedAxisException
getParentAxisIterator
in interface org.jaxen.Navigator
getParentAxisIterator
in class org.jaxen.DefaultNavigator
org.jaxen.UnsupportedAxisException
public Object getDocumentNode(Object o)
getDocumentNode
in interface org.jaxen.Navigator
getDocumentNode
in class org.jaxen.DefaultNavigator
public Object getNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getNode(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QNamePattern qNamePattern)
public Boolean like(org.alfresco.service.cmr.repository.NodeRef childRef, org.alfresco.service.namespace.QName qname, String sqlLikePattern, boolean includeFTS)
public Boolean contains(org.alfresco.service.cmr.repository.NodeRef childRef, org.alfresco.service.namespace.QName qname, String sqlLikePattern, org.alfresco.service.cmr.search.SearchParameters.Operator defaultOperator)
public Boolean isSubtypeOf(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName typeQName)
public Boolean hasAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName typeQName)
Copyright © 2005–2017 Alfresco Software. All rights reserved.