com.rubecula.darwin.domain.helper
Class Attribute_
java.lang.Object
net.sf.tostring0.AToString
com.rubecula.darwin.domain.helper.Attribute_
- All Implemented Interfaces:
- Attribute, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString
- Direct Known Subclasses:
- Allele_, Attribute_Standard, EcoFactor_, Variant_
public abstract class Attribute_
- extends net.sf.tostring0.AToString
- implements Attribute, net.sf.tostring0.Identifiable
Abstract class representing a named attribute, and is the base class for
Variant_, Allele_ and EcoFactor_.
An attribute has two properties: identifier and value.
- Author:
- Robin Hillyard
Fields inherited from interface net.sf.tostring0.IToString |
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE |
Constructor Summary |
protected |
Attribute_(java.lang.Object identifier,
java.lang.Object value)
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getAttribute()
|
java.lang.String |
getIdentifier()
|
java.lang.Object |
getValue()
Method to return the value for this attribute. |
int |
hashCode()
|
void |
setValue(java.lang.Object value)
set the field value . |
java.lang.String |
toString(boolean showDetail,
boolean showClass,
boolean showIdentifier,
boolean includeParent,
boolean includeChildren,
java.lang.String prefix,
boolean recurse,
int maxElements,
int maxChars)
|
Methods inherited from class net.sf.tostring0.AToString |
toString, toStringBrief, toStringId |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Attribute_
protected Attribute_(java.lang.Object identifier,
java.lang.Object value)
- Parameters:
identifier
- value
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
getAttribute
public java.lang.Object getAttribute()
- Specified by:
getAttribute
in interface Attribute
- Returns:
- the value of
_identifier
- See Also:
Attribute.getAttribute()
getIdentifier
public java.lang.String getIdentifier()
- Specified by:
getIdentifier
in interface net.sf.tostring0.Identifiable
- Returns:
- the value of
getAttribute()
as a String. - See Also:
Identifiable.getIdentifier()
getValue
public java.lang.Object getValue()
- Description copied from interface:
Attribute
- Method to return the value for this attribute.
- Specified by:
getValue
in interface Attribute
- Returns:
- the value of
value
. - See Also:
Attribute.getValue()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Object.hashCode()
setValue
public void setValue(java.lang.Object value)
- set the field
value
.
- Specified by:
setValue
in interface Attribute
- Parameters:
value
- the new value for the attribute.- See Also:
Attribute.setValue(java.lang.Object)
toString
public java.lang.String toString(boolean showDetail,
boolean showClass,
boolean showIdentifier,
boolean includeParent,
boolean includeChildren,
java.lang.String prefix,
boolean recurse,
int maxElements,
int maxChars)
- Specified by:
toString
in interface net.sf.tostring0.IToString
- Overrides:
toString
in class net.sf.tostring0.AToString
- See Also:
AToString.toString(boolean, boolean, boolean,
boolean, boolean, java.lang.String, boolean, int, int)
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.