|
||||||||||
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
public class 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(ArrayList anyPattern,
String attribute,
String initialPattern,
String finalPattern)
Creates a new SubstringNode object more than one wildcard and an any list. |
|
SubstringNode(String attribute,
String initialPattern,
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. |
List |
getAny()
Gets the list of wildcard surrounded any fragments. |
String |
getFinal()
Gets the final fragment or suffix. |
String |
getInitial()
Gets the initial fragment. |
Pattern |
getRegex(Normalizer normalizer)
Gets the compiled regular expression for the substring expression. |
StringBuffer |
printToBuffer(StringBuffer buf)
Recursively appends this String representation of this node and its descendents in prefix notation to a buffer. |
String |
toString()
|
Methods inherited from class org.apache.directory.shared.ldap.filter.LeafNode |
---|
equals, getAttribute, isLeaf, setAttribute |
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(String attribute, String initialPattern, String finalPattern)
attribute
- the name of the attribute to substring assertinitialPattern
- the initial fragmentfinalPattern
- the final fragmentpublic SubstringNode(ArrayList anyPattern, String attribute, String initialPattern, String finalPattern)
anyPattern
- list of internal fragments between wildcardsattribute
- the name of the attribute to substring assertinitialPattern
- the initial fragmentfinalPattern
- the final fragmentMethod Detail |
---|
public final String getInitial()
public final String getFinal()
public final List getAny()
public final Pattern getRegex(Normalizer normalizer) throws PatternSyntaxException, NamingException
RESyntaxException
- if the regular expression is invalid
PatternSyntaxException
NamingException
public String toString()
toString
in class Object
Object.toString()
public StringBuffer printToBuffer(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 |