com.rubecula.darwin.domain.environment
Class Variant_

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.domain.helper.Attribute_
          extended by com.rubecula.darwin.domain.environment.Variant_
All Implemented Interfaces:
Attribute, Variant, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString
Direct Known Subclasses:
Trait_VisitingSequence, Variant_Basic, Variant_WingColor

public abstract class Variant_
extends Attribute_
implements Variant

This abstract class defines the base methods and fields for an implementation of Variant.

Note that Attribute_.getIdentifier() and Attribute_.getAttribute() return the same object (although the latter returns it as an Object).

Version:
$Revision: 1.18 $
Author:
Robin Hillyard

Field Summary
protected static org.apache.commons.logging.Log LOG
          The logger for this class.
 
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 Variant_(java.lang.Object identifier, java.lang.Object value)
           
 
Method Summary
 Pharacter getCharacter()
           
 void setCharacter(Pharacter character)
          Set the phenotypic character, normally via reflection/configuration.
 
Methods inherited from class com.rubecula.darwin.domain.helper.Attribute_
equals, getAttribute, getIdentifier, getValue, hashCode, setValue, toString
 
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
 
Methods inherited from interface com.rubecula.darwin.domain.helper.Attribute
getAttribute, getValue, setValue
 
Methods inherited from interface net.sf.tostring0.IToString
toString, toStringBrief, toStringId
 
Methods inherited from interface net.sf.tostring0.Identifiable
getIdentifier
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
The logger for this class.

Constructor Detail

Variant_

protected Variant_(java.lang.Object identifier,
                   java.lang.Object value)
Parameters:
identifier -
value -
Method Detail

getCharacter

public Pharacter getCharacter()
Specified by:
getCharacter in interface Variant
Returns:
the Phenotypic Character to which this variant belongs.
See Also:
Variant.getCharacter()

setCharacter

public void setCharacter(Pharacter character)
Set the phenotypic character, normally via reflection/configuration.

Parameters:
character -


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.