|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rubecula.util.AuditableObject
com.rubecula.darwin.core.Attribute_Abstract
public abstract class Attribute_Abstract
Abstract class representing a named attribute,
and is the base class for Trait_Abstract, Allele_Abstract and EcoFactor_Abstract.
An attribute has two properties: identifier and value.
| Constructor Summary | |
|---|---|
protected |
Attribute_Abstract(Object identifier,
Object value)
|
| Method Summary | |
|---|---|
String |
audit(String label)
Method to yield this object as a String. |
Object |
getAttribute()
|
String |
getIdentifier()
Method to get the specific identifier for an object. |
Object |
getValue()
Method to return the value for this attribute. |
void |
setValue(Object value)
Mutating method to set the value of this attribute. |
String |
toString()
Method to yield this object as a String. |
| Methods inherited from class com.rubecula.util.AuditableObject |
|---|
audit, audit, audit, clone |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Attribute_Abstract(Object identifier,
Object value)
identifier - value - | Method Detail |
|---|
public String audit(String label)
audit in interface Auditablelabel - the label to associate with the data.
If label is non-null, a more detailed audit will be returned (this
normally occurs only at the top level).
Object.toString()public Object getAttribute()
getAttribute in interface Attributepublic String getIdentifier()
Identifiable
getIdentifier in interface Identifiablepublic Object getValue()
Attribute
getValue in interface Attributepublic void setValue(Object value)
Attribute
setValue in interface Attributevalue - the new value for the attribute.public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||