public class AbstractParameterizedAttribute extends AbstractAttributeAware implements ParameterizedAttribute
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Parameter> |
attributes |
protected Map<String,Parameter> |
directives |
attribute| Constructor and Description |
|---|
AbstractParameterizedAttribute(String attribute,
Map<String,Parameter> attributes,
Map<String,Parameter> directives) |
| 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
|
String |
toString() |
getAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributepublic Map<String,Parameter> getAttributes()
ParameterizedAttributegetAttributes in interface ParameterizedAttributepublic Parameter getAttribute(String name)
ParameterizedAttributegetAttribute in interface ParameterizedAttributename - attributes's namepublic <T> T getAttributeValue(String name, Class<T> type)
ParameterizedAttributegetAttributeValue in interface ParameterizedAttributeT - the expected typename - the name of the attributetype - the expected typepublic <T> T getAttributeValue(String name, T defaultValue, Class<T> type)
ParameterizedAttributegetAttributeValue in interface ParameterizedAttributeT - the expected typename - the name of the directivedefaultValue - the default value when no attribute is specifiedtype - the expected typepublic Map<String,Parameter> getDirectives()
ParameterizedAttributegetDirectives in interface ParameterizedAttributepublic Parameter getDirective(String name)
ParameterizedAttributegetDirective in interface ParameterizedAttributename - directive's namepublic <T> T getDirectiveValue(String name, Class<T> type)
ParameterizedAttributegetDirectiveValue in interface ParameterizedAttributeT - the expected typename - the name of the directivetype - the expected typepublic <T> T getDirectiveValue(String name, T defaultValue, Class<T> type)
ParameterizedAttributegetDirectiveValue in interface ParameterizedAttributeT - the expected typename - the name of the directivedefaultValue - the default value when no directive is specifiedtype - the expected typeCopyright © 2013 JBoss by Red Hat. All Rights Reserved.