public interface ParameterizedAttribute extends AttributeAware
Modifier and Type | Method and Description |
---|---|
Parameter |
getAttribute(String name)
Get an attribute by name.
|
Map<String,Parameter> |
getAttributes()
Get the attributes.
|
<T> T |
getAttributeValue(String name,
Class<T> type)
Get an attribute value
|
<T> T |
getAttributeValue(String name,
T defaultValue,
Class<T> type)
Get a directive value
|
Parameter |
getDirective(String name)
Get a directive by name.
|
Map<String,Parameter> |
getDirectives()
Get the declerations
|
<T> T |
getDirectiveValue(String name,
Class<T> type)
Get a directive value
|
<T> T |
getDirectiveValue(String name,
T defaultValue,
Class<T> type)
Get a directive value
|
getAttribute
Map<String,Parameter> getAttributes()
Parameter getAttribute(String name)
name
- attributes's name<T> T getAttributeValue(String name, Class<T> type)
T
- the expected typename
- the name of the attributetype
- the expected type<T> T getAttributeValue(String name, T defaultValue, Class<T> type)
T
- the expected typename
- the name of the directivedefaultValue
- the default value when no attribute is specifiedtype
- the expected typeMap<String,Parameter> getDirectives()
Parameter getDirective(String name)
name
- directive's name<T> T getDirectiveValue(String name, Class<T> type)
T
- the expected typename
- the name of the directivetype
- the expected type<T> T getDirectiveValue(String name, T defaultValue, Class<T> type)
T
- the expected typename
- the name of the directivedefaultValue
- the default value when no directive is specifiedtype
- the expected typeCopyright © 2012 JBoss by Red Hat. All Rights Reserved.