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.
|
AttributeType |
getAttributeType() |
Set<String> |
getOptions() |
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 Set<String> getOptions()
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 addCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.