|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphenote.datamodel.AbstractCharacter
phenote.datamodel.Character
public class Character
The Character datamodel is a generic hash of CharField-CharFieldValues CharFieldValues are free text or from ontologies This is the straightontabular implementation of CharacterI In the table view a character represents a row
| Constructor Summary | |
|---|---|
Character()
should only be constrcuted from factory |
|
| Method Summary | |
|---|---|
void |
addComparison(org.obo.datamodel.OBOProperty rel,
CharacterI relChar)
throws CharacterEx if not implemented (Character doesnt implement) OBOAnnotation implements |
CharacterI |
cloneCharacter()
|
java.util.List<CharField> |
getAllCharFields()
return all char fields configured, both currently used or null in char |
CharField |
getCharFieldForName(java.lang.String fieldName)
|
CharFieldValue |
getValue(CharField cf)
generic getter - getting single value or 1st item of list |
java.util.List<CharFieldValue> |
getValueList(CharField cf)
im wondering if a better way is to make CFVs recursive, so a CFV can be a list of CFV's - that might be easier - not sure |
java.lang.String |
getValueString(CharField cf)
returns string for charfield value of char field, no matter what type, return "" if null value?? throw ex? used for sorting CharList |
java.lang.String |
getValueString(java.lang.String field)
|
boolean |
hasNoContent()
|
boolean |
hasValue(CharField cf)
return false if getValue is null or isEmpty |
boolean |
hasValue(java.lang.String fieldName)
|
void |
setValue(CharField cf,
CharFieldValue cfv)
for generic fields its just a map from char field to char field value |
boolean |
supportsComparisons()
Returns true if charI implementation supports comparisons, eg Character doesnt AnnotChar does |
java.lang.String |
toString()
|
| Methods inherited from class phenote.datamodel.AbstractCharacter |
|---|
eq, equals, fieldEquals, getEntity, getEntityField, getGenConField, getGeneticContext, getGenotype, getGenotypeField, getOboAnnotation, getPub, getPubField, getQualField, getQuality, getTerm, getTerm, hasGeneticContext, hasOboAnnotation, hasPub, setEntity, setGeneticContext, setGenotype, setPub, setQuality, setValue, setValue, setValue, setValue, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface phenote.datamodel.CharacterI |
|---|
equals, fieldEquals, getEntity, getGeneticContext, getGenotype, getOboAnnotation, getPub, getQuality, getTerm, hasGeneticContext, hasOboAnnotation, hasPub, setEntity, setGeneticContext, setGenotype, setPub, setQuality, setValue, setValue, setValue |
| Constructor Detail |
|---|
Character()
| Method Detail |
|---|
public void setValue(CharField cf,
CharFieldValue cfv)
setValue in interface CharacterIpublic CharFieldValue getValue(CharField cf)
getValue in interface CharacterIpublic java.util.List<CharFieldValue> getValueList(CharField cf)
CharacterI
getValueList in interface CharacterIpublic java.lang.String getValueString(CharField cf)
getValueString in interface CharacterIgetValueString in class AbstractCharacter
public java.lang.String getValueString(java.lang.String field)
throws CharFieldException
getValueString in interface CharacterIgetValueString in class AbstractCharacterCharFieldExceptionpublic boolean hasValue(CharField cf)
hasValue in interface CharacterIhasValue in class AbstractCharacterpublic boolean hasValue(java.lang.String fieldName)
hasValue in interface CharacterIhasValue in class AbstractCharacter
public CharField getCharFieldForName(java.lang.String fieldName)
throws CharFieldException
getCharFieldForName in interface CharacterIgetCharFieldForName in class AbstractCharacterCharFieldExceptionpublic java.util.List<CharField> getAllCharFields()
getAllCharFields in interface CharacterIgetAllCharFields in class AbstractCharacterpublic CharacterI cloneCharacter()
cloneCharacter in interface CharacterIpublic boolean hasNoContent()
hasNoContent in interface CharacterIhasNoContent in class AbstractCharacterpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean supportsComparisons()
CharacterI
supportsComparisons in interface CharacterI
public void addComparison(org.obo.datamodel.OBOProperty rel,
CharacterI relChar)
throws CharacterEx
AbstractCharacter
addComparison in interface CharacterIaddComparison in class AbstractCharacterCharacterEx
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||