|
||||||||||
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 |
---|
annotations, assertionType |
Constructor Summary | |
---|---|
SubstringNode(java.util.List<java.lang.String> 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)
Creates a new SubstringNode object without any value |
|
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 |
addAny(java.lang.String anyPattern)
Add an any pattern |
java.util.List<java.lang.String> |
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. |
int |
hashCode()
|
void |
setAny(java.util.List<java.lang.String> anyPattern)
Set the any patterns |
void |
setFinal(java.lang.String finalPattern)
Set the final pattern |
void |
setInitial(java.lang.String initialPattern)
Set the initial pattern |
java.lang.String |
toString()
|
Methods inherited from class org.apache.directory.shared.ldap.filter.LeafNode |
---|
accept, equals, getAttribute, isLeaf, setAttribute |
Methods inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
---|
get, getAnnotations, getAssertionType, printRefinementToBuffer, set |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SubstringNode(java.lang.String attribute, java.lang.String initialPattern, java.lang.String finalPattern)
attribute
- the name of the attribute to substring assertinitialPattern
- the initial fragmentfinalPattern
- the final fragmentpublic SubstringNode(java.lang.String attribute)
attribute
- the name of the attribute to substring assertpublic SubstringNode(java.util.List<java.lang.String> anyPattern, java.lang.String attribute, java.lang.String initialPattern, java.lang.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 java.lang.String getInitial()
public void setInitial(java.lang.String initialPattern)
initialPattern
- The initial patternpublic final java.lang.String getFinal()
public void setFinal(java.lang.String finalPattern)
finalPattern
- The final patternpublic final java.util.List<java.lang.String> getAny()
public void setAny(java.util.List<java.lang.String> anyPattern)
anyPattern
- The any patternspublic void addAny(java.lang.String anyPattern)
anyPattern
- The any patternpublic final java.util.regex.Pattern getRegex(Normalizer normalizer) throws javax.naming.NamingException
normalizer
- the normalizer to use for pattern component normalization
javax.naming.NamingException
- if there are problems while normalizingpublic int hashCode()
hashCode
in class LeafNode
Object.hashCode()
public java.lang.String toString()
toString
in class AbstractExprNode
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |