Class AttributeTypeOptions
java.lang.Object
org.apache.directory.api.ldap.model.schema.AttributeTypeOptions
An structure containing a couple of attributeType and options. A search request
can contain a list of attribute to return, those attribute could be associated
with options.
Those options are stored into a Set.
- Author:
- Apache Directory Project
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeTypeOptions(AttributeType attributeType) Creates a new instance of AttributeTypeOptions, containing an attributeType, but no options.AttributeTypeOptions(AttributeType attributeType, Set<String> options) Creates a new instance of AttributeTypeOptions, containing an attributeType, and options. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new option to the option set for this attributeType.voidaddOptions(Set<String> optionsToAdd) Add a set of optionS to the option set for this attributeType.booleaninthashCode()booleanbooleantoString()
-
Constructor Details
-
AttributeTypeOptions
Creates a new instance of AttributeTypeOptions, containing an attributeType, but no options.- Parameters:
attributeType- The associated AttributeType
-
AttributeTypeOptions
Creates a new instance of AttributeTypeOptions, containing an attributeType, and options.- Parameters:
attributeType- the associated AttributeTypeoptions- the associated options
-
-
Method Details
-
getAttributeType
- Returns:
- the inner attributeType
-
getOptions
-
hasOption
public boolean hasOption()- Returns:
trueif the attributeType has at least one option
-
hasOption
- Parameters:
option- the option to check- Returns:
trueif the attributeType has the given option
-
addOption
Add a new option to the option set for this attributeType.- Parameters:
option- the option to add
-
addOptions
-
hashCode
-
equals
-
toString
-