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