|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.metaclass.model.Attribute
Attributes are the mechanism via which metadata is represented. Each Attribute is made up of
Field Summary | |
static Attribute[] |
EMPTY_SET
The constant for Empty Set of attributes. |
Constructor Summary | |
Attribute(java.lang.String name)
Create a Attribute with specified name. |
|
Attribute(java.lang.String name,
java.util.Properties parameters)
Create a Attribute with specified name and parameters. |
|
Attribute(java.lang.String name,
java.lang.String value)
Create a Attribute with specified name and value. |
Method Summary | |
java.lang.String |
getName()
Return the name of the Attribute. |
java.lang.String |
getParameter(java.lang.String key)
Return the parameter for specified key. |
java.lang.String |
getParameter(java.lang.String key,
java.lang.String defaultValue)
Return the parameter for specified key, or defaultValue if unspecified. |
int |
getParameterCount()
Return the number of parameters in attribute. |
java.lang.String[] |
getParameterNames()
Returns an array of parameter names available under this Attribute. |
java.lang.String |
getValue()
Return the value of the Attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Attribute[] EMPTY_SET
Constructor Detail |
public Attribute(java.lang.String name)
name
- the Attribute namepublic Attribute(java.lang.String name, java.util.Properties parameters)
name
- the Attribute nameparameters
- the Attribute parameterspublic Attribute(java.lang.String name, java.lang.String value)
name
- the Attribute namevalue
- the Attribute valueMethod Detail |
public java.lang.String getName()
public java.lang.String getValue()
public int getParameterCount()
public java.lang.String getParameter(java.lang.String key)
key
- the parameters key
public java.lang.String getParameter(java.lang.String key, java.lang.String defaultValue)
key
- the parameters keydefaultValue
- the default value if parameter unspecified
public java.lang.String[] getParameterNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |