Tabnine Logo
SelectorImpl.currentPath
Code IndexAdd Tabnine to your IDE (free)

How to use
currentPath
method
in
org.apache.jackrabbit.oak.query.ast.SelectorImpl

Best Java code snippets using org.apache.jackrabbit.oak.query.ast.SelectorImpl.currentPath (Showing top 20 results out of 315)

origin: apache/jackrabbit-oak

@Override
public boolean evaluate() {
  String a = ancestorSelector.currentPath();
  String d = descendantSelector.currentPath();
  return PathUtils.isAncestor(a, d);
}
origin: org.apache.jackrabbit/oak-core

@Override
public boolean evaluate() {
  String a = ancestorSelector.currentPath();
  String d = descendantSelector.currentPath();
  return PathUtils.isAncestor(a, d);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public boolean evaluate() {
  String a = ancestorSelector.currentPath();
  String d = descendantSelector.currentPath();
  return PathUtils.isAncestor(a, d);
}
origin: apache/jackrabbit-oak

@Override
public boolean evaluate() {
  String p = parentSelector.currentPath();
  String c = childSelector.currentPath();
  // the parent of the root is the root,
  // so we need to special case this
  return !PathUtils.denotesRoot(c) && PathUtils.getParentPath(c).equals(p);
}
origin: apache/jackrabbit-oak

/**
 * Get the tree at the current path.
 * 
 * @return the current tree, or null
 */
public Tree currentTree() {
  String path = currentPath();
  if (path == null) {
    return null;
  }
  return getTree(path);
}

origin: org.apache.jackrabbit/oak-core

@Override
public boolean evaluate() {
  String p = normalizePath(path);
  return selector.currentPath().equals(p);
}

origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public boolean evaluate() {
  String p = parentSelector.currentPath();
  String c = childSelector.currentPath();
  // the parent of the root is the root,
  // so we need to special case this
  return !PathUtils.denotesRoot(c) && PathUtils.getParentPath(c).equals(p);
}
origin: apache/jackrabbit-oak

@Override
public boolean evaluate() {
  String p = normalizePath(path);
  return selector.currentPath().equals(p);
}

origin: org.apache.jackrabbit/oak-core

/**
 * Get the tree at the current path.
 * 
 * @return the current tree, or null
 */
public Tree currentTree() {
  String path = currentPath();
  if (path == null) {
    return null;
  }
  return getTree(path);
}

origin: org.apache.jackrabbit/oak-core

@Override
public boolean evaluate() {
  String p1 = selector1.currentPath();
  String p2 = selector2.currentPath();
  if (selector2Path.equals(".")) {
    return p1.equals(p2);
  }
  String pn = normalizePath(selector2Path);
  String p = PathUtils.concat(p2, pn);
  return p.equals(p1);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public boolean evaluate() {
  String p1 = selector1.currentPath();
  String p2 = selector2.currentPath();
  if (selector2Path.equals(".")) {
    return p1.equals(p2);
  }
  String pn = normalizePath(selector2Path);
  String p = PathUtils.concat(p2, pn);
  return p.equals(p1);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public boolean evaluate() {
  String p = normalizePath(path);
  return selector.currentPath().equals(p);
}

origin: apache/jackrabbit-oak

@Override
public boolean evaluate() {
  String p1 = selector1.currentPath();
  String p2 = selector2.currentPath();
  if (selector2Path.equals(".")) {
    return p1.equals(p2);
  }
  String pn = normalizePath(selector2Path);
  String p = PathUtils.concat(p2, pn);
  return p.equals(p1);
}
origin: org.apache.jackrabbit/oak-core

@Override
public boolean evaluate() {
  String p = parentSelector.currentPath();
  String c = childSelector.currentPath();
  // the parent of the root is the root,
  // so we need to special case this
  return !PathUtils.denotesRoot(c) && PathUtils.getParentPath(c).equals(p);
}
origin: apache/jackrabbit-oak

@Override
public PropertyValue currentProperty() {
  String path = selector.currentPath();
  if (path == null) {
    return null;
  }
  String name = PathUtils.getName(path);
  // TODO reverse namespace remapping?
  return PropertyValues.newName(name);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public PropertyValue currentProperty() {
  String path = selector.currentPath();
  if (path == null) {
    return null;
  }
  String name = PathUtils.getName(path);
  // TODO reverse namespace remapping?
  return PropertyValues.newName(name);
}
origin: org.apache.jackrabbit/oak-core

@Override
public PropertyValue currentProperty() {
  String path = selector.currentPath();
  if (path == null) {
    return null;
  }
  String name = PathUtils.getName(path);
  // TODO reverse namespace remapping?
  return PropertyValues.newName(name);
}
origin: org.apache.jackrabbit/oak-core

@Override
public PropertyValue currentProperty() {
  String path = selector.currentPath();
  if (path == null) {
    return null;
  }
  String name = PathUtils.getName(path);
  String localName = getLocalName(name);
  // TODO reverse namespace remapping?
  return PropertyValues.newString(localName);
}

origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public PropertyValue currentProperty() {
  String path = selector.currentPath();
  if (path == null) {
    return null;
  }
  String name = PathUtils.getName(path);
  String localName = getLocalName(name);
  // TODO reverse namespace remapping?
  return PropertyValues.newString(localName);
}

origin: apache/jackrabbit-oak

@Override
public PropertyValue currentProperty() {
  String path = selector.currentPath();
  if (path == null) {
    return null;
  }
  String name = PathUtils.getName(path);
  String localName = getLocalName(name);
  // TODO reverse namespace remapping?
  return PropertyValues.newString(localName);
}

org.apache.jackrabbit.oak.query.astSelectorImplcurrentPath

Javadoc

Get the current absolute Oak path (normalized).

Popular methods of SelectorImpl

  • <init>
  • createFilter
    Create the filter condition for planning or execution.
  • currentOakProperty
  • currentProperty
    The value for the given selector for the current node, filtered by property type.
  • currentTree
    Get the tree at the current path.
  • equals
  • evaluateCurrentRow
  • evaluateTypeMatch
  • getExecutionPlan
  • getIndex
  • getLocalPath
  • getMixinTypes
  • getLocalPath,
  • getMixinTypes,
  • getNodeType,
  • getPrimaryTypes,
  • getQuery,
  • getScanCount,
  • getSelectorName,
  • getSupertypes,
  • getTree

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • Kernel (java.awt.image)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now