|
||||||||||
| 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
| Field Summary |
|---|
| Fields inherited from interface phenote.datamodel.CharacterI |
|---|
CHAR_FLAVOR |
| Constructor Summary | |
|---|---|
Character()
should only be constructed from factory |
|
| Method Summary | |
|---|---|
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 this returns names not ids for terms |
java.lang.String |
getValueString(java.lang.String field)
throws exception if field doesnt exist |
boolean |
hasNoContent()
returns true if all non-auto-generated fields have no value. |
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, this can return true even if hasComparison is false |
java.lang.String |
toString()
|
| Methods inherited from class phenote.datamodel.AbstractCharacter |
|---|
eq, equals, fieldEquals, getAnnotId, getComparisons, getComparisonValueKidList, getEntity, getEntityField, getGenConField, getGeneticContext, getGenotype, getGenotypeField, getIdOrValue, getOboAnnotation, getPub, getPubField, getQualField, getQuality, getTerm, getTerm, getTransferData, getTransferDataFlavors, hasAnnotId, hasComparison, hasGeneticContext, hasOboAnnotation, hasPub, isDataFlavorSupported, 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, getAnnotId, getComparisons, getComparisonValueKidList, getEntity, getGeneticContext, getGenotype, getIdOrValue, getOboAnnotation, getPub, getQuality, getTerm, hasAnnotId, hasComparison, hasGeneticContext, hasOboAnnotation, hasPub, setEntity, setGeneticContext, setGenotype, setPub, setQuality, setValue, setValue, setValue |
| Methods inherited from interface java.awt.datatransfer.Transferable |
|---|
getTransferData, getTransferDataFlavors, isDataFlavorSupported |
| 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||