public interface Option
BeanOption
of a Bean
.Options
Modifier and Type | Method and Description |
---|---|
boolean |
containsAttribute(String name)
Checks whether this option has an attribute with the given name.
|
String |
getAttribute(String name)
Deprecated.
use
getString(String) instead |
Set<String> |
getAttributeNames()
Returns the names of all attributes of this option
|
Boolean |
getBoolean(String name)
Returns a
Boolean parsed from the attribute with the given name. |
<E extends Enum<E>> |
getEnum(String name,
Class<E> type)
Returns the
Enum constant represented by the attribute with the given name. |
Integer |
getInteger(String name)
Returns an
Integer parsed from the attribute with the given name. |
String |
getName()
Returns the name of this option.
|
String |
getString(String name)
Returns the attribute with the given name, if present.
|
String getName()
boolean containsAttribute(String name)
name
- the name of the attribute to checktrue
if this option contains an attribute with the given name, false
otherwise@Deprecated String getAttribute(String name)
getString(String)
insteadname
- the name of the attribute to getnull
otherwiseSet<String> getAttributeNames()
String getString(String name)
name
- the name of the attribute to getnull
otherwiseInteger getInteger(String name)
Integer
parsed from the attribute with the given name.name
- the name of the attribute to getnull
if no such attribute exists (or the value can not be parsed to an
integer)Boolean getBoolean(String name)
Boolean
parsed from the attribute with the given name.name
- the name of the attribute to getBoolean.TRUE
if the value of the attribute equals to (ignoring case) true
,
Boolean.FALSE
otherwise<E extends Enum<E>> E getEnum(String name, Class<E> type)
Enum
constant represented by the attribute with the given name.name
- the name of the attribute to gettype
- the type of the Enum
null
otherwiseCopyright © 2011–2019 aiticon GmbH. All rights reserved.