/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { return super.clone(); }
/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { return super.clone(); }
/** * @see org.apache.directory.shared.ldap.filter.ExprNode#accept( * org.apache.directory.shared.ldap.filter.FilterVisitor) */ public Object accept( FilterVisitor visitor ) { return visitor.visit( this ); }
/** * Normalizes a filter expression to a canonical representation while * retaining logical meaning of the expression. * * @param filter * the filter to normalize * @return the normalized version of the filter * @throws java.text.ParseException * if the filter is malformed */ public static String getNormalizedFilter( String filter ) throws ParseException { ExprNode originalNode = FilterParser.parse( filter ); return getNormalizedFilter( originalNode ); }
public boolean getAllowsChildren() { return !exprNode.isLeaf(); }
/** * @see Object#toString() * @return A string representing the AndNode */ public String toString() { StringBuilder buf = new StringBuilder(); buf.append( '(' ).append( getAttribute() ).append( ">=" ).append( getEscapedValue() ); buf.append( super.toString() ); buf.append( ')' ); return buf.toString(); } }
/** * Clone the Node */ @Override public ExprNode clone() { return super.clone(); }
/** * Clone the Node */ @Override public ExprNode clone() { return super.clone(); }
/** * Creates a NotNode using a logical NOT operator and the given child. * * @param child the child node under this branch node. */ public NotNode( ExprNode child ) { super( AssertionType.NOT ); if ( child != null ) { addNode( child ); } }
/** * @return representation of value, escaped for use in a filter if required */ public Value<?> getEscapedValue() { return AbstractExprNode.escapeFilterValue( value ); }
private static Value<?> parseAssertionValue( String filter, Position pos ) throws ParseException { return parseAssertionValue( filter, pos, false ); }
static ExprNode getReferralFilter() { return new SimpleNode( OBJCLASS_ATTR, REFERRAL_OC, LeafNode.EQUALITY ); }
public boolean getAllowsChildren() { return !exprNode.isLeaf(); }
/** * Return a cloned node */ @Override public ExprNode clone() { return super.clone(); }
/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { return super.clone(); }
/** * Clone the Node */ @Override public ExprNode clone() { return super.clone(); }
/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { return super.clone(); }
/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { return (ExprNode)super.clone(); }
/** * Clone the AndNode */ @Override public ExprNode clone() { return super.clone(); }
/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { return super.clone(); }