Class AttributeValueAssertion
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.AttributeValueAssertion
-
public class AttributeValueAssertion extends Object
A class to store an attribute value assertion. The grammar is : AttributeValueAssertion ::= SEQUENCE { attributeDesc AttributeDescription, assertionValue AssertionValue } AttributeDescription ::= LDAPString AssertionValue ::= OCTET STRING- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description AttributeValueAssertion()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
dumpObject(Object object)
Helper method to render an object which can be a String or a byte[]byte[]
getAssertion()
String
getAttributeDesc()
Get the attribute descriptionvoid
setAssertion(byte[] assertion)
void
setAttributeDesc(String attributeDesc)
Set the attribute descriptionString
toString()
Get a String representation of an AttributeValueAssertionString
toString(String tabs)
Get a String representation of an AttributeValueAssertionString
toStringRFC2254(int filterType)
Get a String representation of an AttributeValueAssertion, as of RFC 2254.
-
-
-
Constructor Detail
-
AttributeValueAssertion
public AttributeValueAssertion()
-
-
Method Detail
-
dumpObject
public static String dumpObject(Object object)
Helper method to render an object which can be a String or a byte[]- Parameters:
object
- the Object to render- Returns:
- A string representing the object
-
getAttributeDesc
public String getAttributeDesc()
Get the attribute description- Returns:
- Returns the attributeDesc.
-
setAttributeDesc
public void setAttributeDesc(String attributeDesc)
Set the attribute description- Parameters:
attributeDesc
- The attributeDesc to set.
-
toString
public String toString(String tabs)
Get a String representation of an AttributeValueAssertion- Parameters:
tabs
- The spacing to be put before the string- Returns:
- An AttributeValueAssertion String
-
toStringRFC2254
public String toStringRFC2254(int filterType)
Get a String representation of an AttributeValueAssertion, as of RFC 2254.- Parameters:
filterType
- The filter type- Returns:
- An AttributeValueAssertion String
-
getAssertion
public byte[] getAssertion()
- Returns:
- the assertion
-
setAssertion
public void setAssertion(byte[] assertion)
- Parameters:
assertion
- the assertion to set
-
-