|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.filter.AbstractExprNode
org.apache.directory.shared.ldap.filter.LeafNode
org.apache.directory.shared.ldap.filter.SubstringNode
Filter expression tree node used to represent a substring assertion.
Field Summary |
Fields inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
AND, APPROXIMATE, ASSERTION, EQUALITY, EXTENSIBLE, GREATEREQ, LESSEQ, NOT, OR, PRESENCE, SCOPE, SUBSTRING |
Constructor Summary | |
SubstringNode(java.util.ArrayList anyPattern,
java.lang.String attribute,
java.lang.String initialPattern,
java.lang.String finalPattern)
Creates a new SubstringNode object more than one wildcard and an any list. |
|
SubstringNode(java.lang.String attribute,
java.lang.String initialPattern,
java.lang.String finalPattern)
Creates a new SubstringNode object with only one wildcard and no internal any fragments between wildcards. |
Method Summary | |
void |
accept(FilterVisitor a_visitor)
Element/node accept method for visitor pattern. |
java.util.List |
getAny()
Gets the list of wildcard surrounded any fragments. |
java.lang.String |
getFinal()
Gets the final fragment or suffix. |
java.lang.String |
getInitial()
Gets the initial fragment. |
java.util.regex.Pattern |
getRegex(Normalizer normalizer)
Gets the compiled regular expression for the substring expression. |
java.lang.StringBuffer |
printToBuffer(java.lang.StringBuffer buf)
Recursively appends this String representation of this node and its descendents in prefix notation to a buffer. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.directory.shared.ldap.filter.LeafNode |
equals, getAttribute, isLeaf |
Methods inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
get, getAnnotations, getAssertionType, getOperationString, set |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SubstringNode(java.lang.String attribute, java.lang.String initialPattern, java.lang.String finalPattern)
public SubstringNode(java.util.ArrayList anyPattern, java.lang.String attribute, java.lang.String initialPattern, java.lang.String finalPattern)
Method Detail |
public final java.lang.String getInitial()
public final java.lang.String getFinal()
public final java.util.List getAny()
public final java.util.regex.Pattern getRegex(Normalizer normalizer) throws java.util.regex.PatternSyntaxException, javax.naming.NamingException
RESyntaxException
- if the regular expression is invalid
java.util.regex.PatternSyntaxException
javax.naming.NamingException
public java.lang.String toString()
Object.toString()
public java.lang.StringBuffer printToBuffer(java.lang.StringBuffer buf)
ExprNode
buf
- the buffer to append to.ExprNode.printToBuffer(java.lang.StringBuffer)
public void accept(FilterVisitor a_visitor)
ExprNode
a_visitor
- the filter expression tree structure visitorExprNode.accept(
org.apache.directory.shared.ldap.filter.FilterVisitor)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |