@Override public void visit(ChildNode childNode) { symbols.add(childNode.getSelectorName()); }
/** * {@inheritDoc} * * @see QueryObjectModelVisitor#visit(ChildNode) */ public void visit(ChildNode child) { append("ISCHILDNODE("); append(child.getSelectorName()); append(','); append(child.getParentPath()); append(')'); }
/** * Define a constraint clause that the node within the named table is the * child of the node at the supplied path. * * @param childTable * the name of the table; may not be null and must refer to a * valid name or alias of a table appearing in the FROM clause * @param parentPath * the path to the parent node * @return the constraint builder that was used to create this clause; * never null */ public ConstraintBuilder isChild(String childTable, String parentPath) { return setConstraint(new ChildNode(selector(childTable), parentPath)); }
String parentPath = node.getParentPath(); if (parentPath.charAt(0) == '[')
throw new TreeWalkerException("There is more than one table. Use selector or table name. IN_FOLDER(.."); res = new ChildNode(selName, builder.toString());
/** * @see org.xcmis.search.Visitors.AbstractModelVisitor#visit(org.xcmis.search.model.constraint.ChildNode) */ @Override public void visit(ChildNode node) throws VisitException { checkSelectorExistance(node.getSelectorName()); }