|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.search.Filter
org.apache.directory.shared.ldap.codec.search.SubstringFilter
public class SubstringFilter
A Object that stores the substring filter. A substring filter follow this grammar : substring = attr "=" ( ([initial] any [final] | (initial [any] [final) | ([initial] [any] final) ) initial = value any = "*" *(value "*") final = value
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
parent |
Constructor Summary | |
---|---|
SubstringFilter()
The constructor. |
|
SubstringFilter(int tlvId)
The constructor. |
Method Summary | |
---|---|
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 |
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SubstringFilter(int tlvId)
public SubstringFilter()
Method Detail |
---|
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 interface Asn1Object
computeLength
in class AbstractAsn1Object
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in class AbstractAsn1Object
buffer
- The buffer where to put the PDU
EncoderException
- if the buffer can't be encodedpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |