public class AttributeTypeOptions extends Object
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public AttributeTypeOptions(AttributeType attributeType)
attributeType - The associated AttributeTypepublic AttributeTypeOptions(AttributeType attributeType, Set<String> options)
attributeType - the associated AttributeTypeoptions - the associated optionspublic AttributeType getAttributeType()
public boolean hasOption()
true if the attributeType has at least one optionpublic boolean hasOption(String option)
option - the option to checktrue 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)Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.