| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
anyPattern
List of fragments between wildcard
|
private java.lang.String |
finalPattern
The end fragment after wildcard
|
private java.lang.String |
initialPattern
The initial fragment before any wildcard
|
attribute, attributeTypeannotations, assertionType, isSchemaAware| Constructor and Description |
|---|
SubstringNode(AttributeType attribute)
Creates a new SubstringNode object without any value
|
SubstringNode(AttributeType attributeType,
java.lang.String initialPattern,
java.lang.String finalPattern)
Creates a new SubstringNode object with only one wildcard and no internal
any fragments between wildcards.
|
SubstringNode(java.util.List<java.lang.String> anyPattern,
AttributeType attributeType,
java.lang.String initialPattern,
java.lang.String finalPattern)
Creates a new SubstringNode object more than one wildcard and an any
list.
|
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 attributeType)
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAny(java.lang.String anyPattern)
Add an any pattern
|
ExprNode |
clone()
Clone the Node
|
boolean |
equals(java.lang.Object obj) |
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.
|
static java.util.regex.Pattern |
getRegex(java.lang.String initialPattern,
java.lang.String[] anyPattern,
java.lang.String finalPattern)
Creates a regular expression from an LDAP substring assertion filter
specification.
|
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() |
accept, getAttribute, getAttributeType, isLeaf, setAttribute, setAttributeTypeescapeFilterValue, get, getAnnotations, getAssertionType, isSchemaAware, printRefinementToBuffer, setprivate java.lang.String initialPattern
private java.lang.String finalPattern
private java.util.List<java.lang.String> anyPattern
public SubstringNode(AttributeType attributeType, java.lang.String initialPattern, java.lang.String finalPattern)
attributeType - the name of the attributeType to substring assertinitialPattern - the initial fragmentfinalPattern - the final fragmentpublic 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(AttributeType attribute)
attribute - the name of the attribute to substring assertpublic SubstringNode(java.lang.String attributeType)
attributeType - the attributeType to substring assertpublic SubstringNode(java.util.List<java.lang.String> anyPattern,
AttributeType attributeType,
java.lang.String initialPattern,
java.lang.String finalPattern)
anyPattern - list of internal fragments between wildcardsattributeType - the attributeType to substring assertinitialPattern - the initial fragmentfinalPattern - the final fragmentpublic 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 fragmentpublic static java.util.regex.Pattern getRegex(java.lang.String initialPattern,
java.lang.String[] anyPattern,
java.lang.String finalPattern)
throws java.util.regex.PatternSyntaxException
initialPattern - the initial fragment before wildcardsanyPattern - fragments surrounded by wildcards if anyfinalPattern - the final fragment after last wildcard if anyjava.util.regex.PatternSyntaxException - if a syntactically correct regular expression cannot be
compiledpublic ExprNode clone()
clone in interface ExprNodeclone in class AbstractExprNodepublic 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 LdapException
normalizer - the normalizer to use for pattern component normalizationLdapException - if there are problems while normalizingpublic boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
toString in class AbstractExprNodeObject.toString()