Class EntryReader

java.lang.Object
com.isode.dsapi.util.EntryReader

public class EntryReader extends Object
Convenience class making easy to read value(s) from entry.
Since:
14.5
Author:
mst
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Get the ASN1 BER value for the given single-valued attribute type
    byte[]
    Get the binary representation for the given single-valued attribute type.
    Returns a Boolean representation of the specified attribute, provided that the entry contains such an attribute and that the attribute has a single value.
    Returns a Boolean representation of the specified attribute, provided that the entry contains such an attribute and that the attribute has a single value.
    int
    getInt(AttributeType at, int def)
    Returns an int representation of the specified attribute, provided that the entry contains such an attribute and that the attribute has a single value.
    Returns an Integer representation of the specified attribute, provided that the entry contains such an attribute and that the attribute has a single value.
    Returns an Integer representation of the specified attribute, provided that the entry contains such an attribute and that the attribute has a single value.
    Returns the String representation of the specified attribute, provided that the entry contains such an attribute and that the attribute has a single value.
    Returns the String representation of the specified attribute, provided that the entry contains such an attribute and that the attribute has a single value.
    Return all values from multi valued attribute specified by AttributeType as an ArrayList of strings or null when attribute is not set or has no values
    Return all values from multi valued attribute specified by AttributeType as an ArrayList of strings
    boolean
    Return true when entry contains attribute of specific type (trying to get it).
    boolean
    has(AttributeType at, String value)
    Return true when entry contains attribute of specific type and contains specified value.
    boolean
    Return true when entry contains attribute of specific type and contains specified values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait