public class AttributeTypeOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private AttributeType |
attributeType
The attributeType
|
private java.util.Set<java.lang.String> |
options
The options, if any
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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> optionsToAdd)
Add a set of optionS to the option set for this attributeType.
|
boolean |
equals(java.lang.Object o) |
AttributeType |
getAttributeType() |
java.util.Set<java.lang.String> |
getOptions() |
int |
hashCode() |
boolean |
hasOption() |
boolean |
hasOption(java.lang.String option) |
java.lang.String |
toString() |
private AttributeType attributeType
private java.util.Set<java.lang.String> options
public AttributeTypeOptions(AttributeType attributeType)
attributeType - The associated AttributeTypepublic AttributeTypeOptions(AttributeType attributeType, java.util.Set<java.lang.String> options)
attributeType - the associated AttributeTypeoptions - the associated optionspublic 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 checktrue 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> optionsToAdd)
optionsToAdd - the options to addpublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(Object)public java.lang.String toString()
toString in class java.lang.Object