|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.Asn1Object
org.apache.directory.shared.ldap.codec.search.Filter
org.apache.directory.shared.ldap.codec.search.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.Asn1Object |
parent |
Constructor Summary | |
SubstringFilter()
The constructor. |
Method Summary | |
void |
addAnySubstrings(LdapString anySubstrings)
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.ArrayList |
getAnySubstrings()
Get the internal substrings |
LdapString |
getFinalSubstrings()
Get the final substring |
LdapString |
getInitialSubstrings()
Get the initial substring |
int |
getSubstringsLength()
|
LdapString |
getType()
Get the attribute |
void |
setFinalSubstrings(LdapString finalSubstrings)
Set the final substring |
void |
setInitialSubstrings(LdapString initialSubstrings)
Set the initial substring |
void |
setSubstringsLength(int substringsLength)
|
void |
setType(LdapString 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.Asn1Object |
addLength, getCurrentLength, getExpectedLength, getParent, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SubstringFilter()
Method Detail |
public java.util.ArrayList getAnySubstrings()
public void addAnySubstrings(LdapString anySubstrings)
anySubstrings
- The anySubstrings to set.public LdapString getFinalSubstrings()
public void setFinalSubstrings(LdapString finalSubstrings)
finalSubstrings
- The finalSubstrings to set.public LdapString getInitialSubstrings()
public void setInitialSubstrings(LdapString initialSubstrings)
initialSubstrings
- The initialSubstrings to set.public LdapString getType()
public void setType(LdapString type)
type
- The type to set.public int getSubstringsLength()
public void setSubstringsLength(int substringsLength)
substringsLength
- The substringsLength to set.public int computeLength()
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws org.apache.directory.shared.asn1.codec.EncoderException
buffer
- The buffer where to put the PDU
org.apache.directory.shared.asn1.codec.EncoderException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |