|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.AttributeTypeOptions
public class 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.
| Constructor Summary | |
|---|---|
AttributeTypeOptions(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 | |
|---|---|
void |
addOption(String option)
Add a new option to the option set for this attributeType. |
void |
addOptions(Set<String> optionsToAdd)
Add a set of optionS to the option set for this attributeType. |
boolean |
equals(Object o)
|
AttributeType |
getAttributeType()
|
Set<String> |
getOptions()
|
int |
hashCode()
|
boolean |
hasOption()
|
boolean |
hasOption(String option)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeTypeOptions(AttributeType attributeType)
attributeType - The associated AttributeType
public AttributeTypeOptions(AttributeType attributeType,
Set<String> options)
attributeType - the associated AttributeTypeoptions - the associated options| Method Detail |
|---|
public AttributeType getAttributeType()
public Set<String> getOptions()
public boolean hasOption()
true if the attributeType has at least one optionpublic boolean hasOption(String option)
option - the option to check
true if the attributeType has the given optionpublic void addOption(String option)
option - the option to addpublic void addOptions(Set<String> optionsToAdd)
optionsToAdd - the options to addpublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object o)
equals in class ObjectObject.equals(Object)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||