|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.metadata.internal.AbstractAttributeAware
org.jboss.osgi.metadata.internal.AbstractParameterizedAttribute
public class AbstractParameterizedAttribute
Parameter attribute impl.
| Field Summary | |
|---|---|
protected Map<String,Parameter> |
attributes
|
protected Map<String,Parameter> |
directives
|
| Fields inherited from class org.jboss.osgi.metadata.internal.AbstractAttributeAware |
|---|
attribute |
| Constructor Summary | |
|---|---|
AbstractParameterizedAttribute(String attribute,
Map<String,Parameter> attributes,
Map<String,Parameter> directives)
|
|
| Method Summary | ||
|---|---|---|
Parameter |
getAttribute(String name)
Get an attribute by name. |
|
Map<String,Parameter> |
getAttributes()
Get the attributes. |
|
|
getAttributeValue(String name,
Class<T> type)
Get an attribute value |
|
|
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 |
|
|
getDirectiveValue(String name,
Class<T> type)
Get a directive value |
|
|
getDirectiveValue(String name,
T defaultValue,
Class<T> type)
Get a directive value |
|
String |
toString()
|
|
| Methods inherited from class org.jboss.osgi.metadata.internal.AbstractAttributeAware |
|---|
getAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.osgi.metadata.AttributeAware |
|---|
getAttribute |
| Field Detail |
|---|
protected Map<String,Parameter> attributes
protected Map<String,Parameter> directives
| Constructor Detail |
|---|
public AbstractParameterizedAttribute(String attribute,
Map<String,Parameter> attributes,
Map<String,Parameter> directives)
| Method Detail |
|---|
public Map<String,Parameter> getAttributes()
ParameterizedAttribute
getAttributes in interface ParameterizedAttributepublic Parameter getAttribute(String name)
ParameterizedAttribute
getAttribute in interface ParameterizedAttributename - attributes's name
public <T> T getAttributeValue(String name,
Class<T> type)
ParameterizedAttribute
getAttributeValue in interface ParameterizedAttributeT - the expected typename - the name of the attributetype - the expected type
public <T> T getAttributeValue(String name,
T defaultValue,
Class<T> type)
ParameterizedAttribute
getAttributeValue in interface ParameterizedAttributeT - the expected typename - the name of the directivedefaultValue - the default value when no attribute is specifiedtype - the expected type
public Map<String,Parameter> getDirectives()
ParameterizedAttribute
getDirectives in interface ParameterizedAttributepublic Parameter getDirective(String name)
ParameterizedAttribute
getDirective in interface ParameterizedAttributename - directive's name
public <T> T getDirectiveValue(String name,
Class<T> type)
ParameterizedAttribute
getDirectiveValue in interface ParameterizedAttributeT - the expected typename - the name of the directivetype - the expected type
public <T> T getDirectiveValue(String name,
T defaultValue,
Class<T> type)
ParameterizedAttribute
getDirectiveValue in interface ParameterizedAttributeT - the expected typename - the name of the directivedefaultValue - the default value when no directive is specifiedtype - the expected type
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||