public class SubstringFilter extends Filter
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
anySubstrings
The any filter.
|
private java.lang.String |
finalSubstrings
The final filter
|
private java.lang.String |
initialSubstrings
The initial filter
|
private int |
substringsFilterLength
Temporary storage for substringsFilter length
|
private int |
substringsFilterSequenceLength
Temporary storage for substringsFilter sequence length
|
private int |
substringsLength
This member is used to control the length of the three parts of the
substring filter
|
private java.lang.String |
type
The substring filter type (an attributeDescription)
|
parent, parentTlvId, tlvId| Constructor and Description |
|---|
SubstringFilter()
The constructor.
|
SubstringFilter(int tlvId)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnySubstrings(java.lang.String any)
Add a internal substring
|
int |
computeLength()
Compute the SubstringFilter length
SubstringFilter :
0xA4 L1
|
+--> 0x04 L2 type
+--> 0x30 L3
|
[+--> 0x80 L4 initial]
[+--> 0x81 L5-1 any]
[+--> 0x81 L5-2 any]
[+--> ...
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the Substrings Filter to a PDU.
|
java.util.List<java.lang.String> |
getAnySubstrings()
Get the internal substrings
|
java.lang.String |
getFinalSubstrings()
Get the final substring
|
java.lang.String |
getInitialSubstrings()
Get the initial substring
|
int |
getSubstringsLength() |
java.lang.String |
getType()
Get the attribute
|
void |
setFinalSubstrings(java.lang.String finalSubstrings)
Set the final substring
|
void |
setInitialSubstrings(java.lang.String initialSubstrings)
Set the initial substring
|
void |
setSubstringsLength(int substringsLength) |
void |
setType(java.lang.String type)
Set the attribute to match
|
java.lang.String |
toString()
Return a string compliant with RFC 2254 representing a Substring filter
|
getParent, getParentTlvId, getTlvId, setParentprivate java.lang.String type
private int substringsLength
private java.lang.String initialSubstrings
private java.util.List<java.lang.String> anySubstrings
private java.lang.String finalSubstrings
private int substringsFilterLength
private int substringsFilterSequenceLength
public SubstringFilter(int tlvId)
public SubstringFilter()
public java.util.List<java.lang.String> getAnySubstrings()
public void addAnySubstrings(java.lang.String any)
any - The anySubstrings to set.public java.lang.String getFinalSubstrings()
public void setFinalSubstrings(java.lang.String finalSubstrings)
finalSubstrings - The finalSubstrings to set.public java.lang.String getInitialSubstrings()
public void setInitialSubstrings(java.lang.String initialSubstrings)
initialSubstrings - The initialSubstrings to set.public java.lang.String getType()
public void setType(java.lang.String type)
type - The type to set.public int getSubstringsLength()
public void setSubstringsLength(int substringsLength)
substringsLength - The substringsLength to set.public int computeLength()
computeLength in class Filterpublic java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
encode in class Filterbuffer - The buffer where to put the PDUEncoderExceptionpublic java.lang.String toString()
toString in class java.lang.Object