Class Selection

  • All Implemented Interfaces:
    java.lang.Iterable<AttributeType>

    public class Selection
    extends java.lang.Object
    implements java.lang.Iterable<AttributeType>
    Representation of an attribute selection (used in directory searches and reads). A selection may specify:
    • no attributes at all
    • a set of "named" attribute types
    • a flag to indicate all user attributes
    • a flag to indicate all operational attributes
    It is permitted to specify a set of "named" attribute types as well as either all operational attributes or all user attributes. To do this, use a series of calls to selectAttributeType(AttributeType), followed by a call either to selectAllOperational() or selectAllUser().

    The class will not allow the creation of Selection objects that contain a set of "named" attribute types and "all user attributes" and "all operational attributes". Such a selection is specifically disallowed by X.511-205 (7.6).