Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.cerberus.component.descriptor
Class ComponentAttribute  view ComponentAttribute download ComponentAttribute.java

java.lang.Object
  extended bycom.aendvari.cerberus.component.descriptor.ComponentProperty
      extended bycom.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.


Nested Class Summary
 
Nested classes inherited from class com.aendvari.cerberus.component.descriptor.ComponentProperty
ComponentProperty.Access
 
Field Summary
protected  boolean required
          Specifies whether the attribute is required.
protected  MultiPartValue value
          The attribute value.
 
Fields inherited from class com.aendvari.cerberus.component.descriptor.ComponentProperty
access, description, name
 
Constructor Summary
ComponentAttribute()
          Constructs a ComponentAttribute instance.
ComponentAttribute(ComponentAttribute attribute)
          Constructs a ComponentAttribute instance as a copy of the one supplied.
 
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 com.aendvari.cerberus.component.descriptor.ComponentProperty
getAccess, getDescription, getName, setAccess, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

required

protected boolean required
Specifies whether the attribute is required.


value

protected MultiPartValue value
The attribute value.

Constructor Detail

ComponentAttribute

public ComponentAttribute()
Constructs a ComponentAttribute instance.


ComponentAttribute

public ComponentAttribute(ComponentAttribute attribute)
Constructs a ComponentAttribute instance as a copy of the one supplied.

Method Detail

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.