java.lang.Object
com.aendvari.cerberus.component.descriptor.ComponentProperty
com.aendvari.cerberus.component.descriptor.ComponentAttribute
- public class ComponentAttribute
- extends ComponentProperty
Describes a component attribute.
Attributes allow portions of ComponentDefinitions
to be specified during component instantiation.
The attribute value is built from a series of literals and other attributes.
|
Field Summary |
protected boolean |
required
Specifies whether the attribute is required. |
protected MultiPartValue |
value
The attribute value. |
|
Method Summary |
boolean |
getRequired()
Returns the required state of this attribute. |
MultiPartValue |
getValue()
Returns the value of this attribute. |
void |
setRequired(boolean setRequired)
Sets the required state of this attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
required
protected boolean required
- Specifies whether the attribute is required.
value
protected MultiPartValue value
- The attribute value.
ComponentAttribute
public ComponentAttribute()
- Constructs a
ComponentAttribute instance.
ComponentAttribute
public ComponentAttribute(ComponentAttribute attribute)
- Constructs a
ComponentAttribute instance as a copy of the one supplied.
setRequired
public void setRequired(boolean setRequired)
- Sets the required state of this attribute.
getRequired
public boolean getRequired()
- Returns the required state of this attribute.
getValue
public MultiPartValue getValue()
- Returns the value of this attribute. The MultiPartValue
returned may be manipulated to modify the value of this attribute.