public class SubstringNode extends LeafNode
annotations, assertionType
Constructor and Description |
---|
SubstringNode(List<String> anyPattern,
String attribute,
String initialPattern,
String finalPattern)
Creates a new SubstringNode object more than one wildcard and an any
list.
|
SubstringNode(String attribute)
Creates a new SubstringNode object without any value
|
SubstringNode(String attribute,
String initialPattern,
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(String anyPattern)
Add an any pattern
|
ExprNode |
clone()
Clone the Node
|
List<String> |
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.
|
int |
hashCode() |
void |
setAny(List<String> anyPattern)
Set the any patterns
|
void |
setFinal(String finalPattern)
Set the final pattern
|
void |
setInitial(String initialPattern)
Set the initial pattern
|
String |
toString() |
accept, equals, getAttribute, isLeaf, setAttribute
escapeFilterValue, get, getAnnotations, getAssertionType, printRefinementToBuffer, set
public SubstringNode(String attribute, String initialPattern, String finalPattern)
attribute
- the name of the attribute to substring assertinitialPattern
- the initial fragmentfinalPattern
- the final fragmentpublic SubstringNode(String attribute)
attribute
- the name of the attribute to substring assertpublic SubstringNode(List<String> 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 fragmentpublic ExprNode clone()
public final String getInitial()
public void setInitial(String initialPattern)
initialPattern
- The initial patternpublic final String getFinal()
public void setFinal(String finalPattern)
finalPattern
- The final patternpublic final List<String> getAny()
public void setAny(List<String> anyPattern)
anyPattern
- The any patternspublic void addAny(String anyPattern)
anyPattern
- The any patternpublic final Pattern getRegex(Normalizer normalizer) throws LdapException
normalizer
- the normalizer to use for pattern component normalizationLdapInvalidDnException
- if there are problems while normalizingLdapException
public int hashCode()
hashCode
in class LeafNode
Object.hashCode()
public String toString()
toString
in class AbstractExprNode
Object.toString()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.