Constructor and Description |
---|
OptionImpl(String name) |
OptionImpl(String name,
Map<String,String> map) |
Modifier and Type | Method and Description |
---|---|
OptionImpl |
addAttribute(String key,
String value) |
OptionImpl |
addMap(Map<String,String> map) |
boolean |
containsAttribute(String key)
Checks whether this option has an attribute with the given name.
|
String |
getAttribute(String key)
Returns the attribute with the given name, if present.
|
int |
getAttributeAsInteger(String key) |
Map<String,String> |
getAttributeMap() |
Set<String> |
getAttributeNames()
Returns the names of all attributes of this option
|
String |
getName()
Returns the name of this option.
|
String |
toString() |
public OptionImpl(String name)
public String getName()
Option
public OptionImpl addMap(Map<String,String> map)
public OptionImpl addAttribute(String key, String value)
public boolean containsAttribute(String key)
Option
containsAttribute
in interface Option
key
- the name of the attribute to checktrue
if this option contains an attribute with the given name, false
otherwisepublic String getAttribute(String key)
Option
getAttribute
in interface Option
key
- the name of the attribute to getnull
otherwisepublic int getAttributeAsInteger(String key)
public Set<String> getAttributeNames()
Option
getAttributeNames
in interface Option
Copyright © 2011–2017 aiticon GmbH. All rights reserved.