|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphenote.datamodel.AbstractCharacter
public abstract class AbstractCharacter
| Field Summary |
|---|
| Fields inherited from interface phenote.datamodel.CharacterI |
|---|
CHAR_FLAVOR |
| Constructor Summary | |
|---|---|
AbstractCharacter()
|
|
| Method Summary | |
|---|---|
protected boolean |
eq(CharFieldValue c1,
CharFieldValue c2)
check if both are null in addition to .equals() |
boolean |
equals(CharacterI ch)
|
boolean |
fieldEquals(CharacterI c,
CharField cf)
by default check if single char field val from field is equal, eventually should get hip to potential lists of values |
java.util.List<CharField> |
getAllCharFields()
generic fields!!! |
java.lang.String |
getAnnotId()
Returns auto generated annot id for character, returns null if dont have one |
CharField |
getCharFieldForName(java.lang.String fieldName)
|
java.util.List<Comparison> |
getComparisons()
get all comparisons with char as subject |
java.util.List<CharFieldValue> |
getComparisonValueKidList()
Returns a list of CharFieldValue comparison kids (not parent CFV) |
org.obo.datamodel.OBOClass |
getEntity()
|
protected CharField |
getEntityField()
|
protected CharField |
getGenConField()
|
org.obo.datamodel.OBOClass |
getGeneticContext()
|
java.lang.String |
getGenotype()
|
protected CharField |
getGenotypeField()
|
java.lang.String |
getIdOrValue(java.lang.String field)
convenience function, if field is a term then return ID, otherwise return field value as String throws ex if field doesnt exist |
org.obo.annotation.datamodel.Annotation |
getOboAnnotation()
Return null by default - AnnotationCharacter overrides |
java.lang.String |
getPub()
these methods are pase and need to be phased out! |
protected CharField |
getPubField()
|
protected CharField |
getQualField()
|
org.obo.datamodel.OBOClass |
getQuality()
|
protected org.obo.datamodel.OBOClass |
getTerm(CharField cf)
Throws char field exception if char field is not a term, thus lists of terms throw an exception as they are not technically a single term |
org.obo.datamodel.OBOClass |
getTerm(java.lang.String field)
|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor)
Returns an object which represents the data to be transferred. |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the data can be provided in. |
java.lang.String |
getValueString(CharField cf)
used in particular for lists of values |
java.lang.String |
getValueString(java.lang.String field)
|
boolean |
hasAnnotId()
throws CharacterEx if not implemented (Character doesnt implement) OBOAnnotation implements |
boolean |
hasComparison()
Returns true if character is a SUBJECT of a comparison, NOT object in otherwords returns false if getComparison is null |
boolean |
hasGeneticContext()
|
boolean |
hasNoContent()
|
boolean |
hasOboAnnotation()
Whether or not datamodel has obo annotations, returns getOboAnnotation != null, which is only true for AnnotationCharacter |
boolean |
hasPub()
According to the CharacterI documentation, the methods below are garbage They are here for backward compatibility - still used in nexus & phenoxml adapter but they should be upgraded to new generic way at some point need to keep in for now |
boolean |
hasValue(CharField cf)
|
boolean |
hasValue(java.lang.String fieldName)
|
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Returns whether or not the specified data flavor is supported for this object |
void |
setEntity(org.obo.datamodel.OBOClass e)
|
void |
setGeneticContext(org.obo.datamodel.OBOClass gc)
|
void |
setGenotype(java.lang.String gt)
|
void |
setPub(java.lang.String p)
eventually have Genotype object? probably |
void |
setQuality(org.obo.datamodel.OBOClass q)
|
protected void |
setValue(CharField cf,
org.obo.datamodel.OBOClass term)
|
CharFieldValue |
setValue(CharField cf,
java.lang.String s)
if term field, string should be id, obo class will be searched for, if class not found then dangler is created. |
CharFieldValue |
setValue(CharField cf,
java.lang.String s,
java.lang.String danglerName)
if term field, string should be id, obo class will be searched for, if class not found then dangler is created. |
protected void |
setValue(CharFieldValue cfv)
|
CharFieldValue |
setValue(java.lang.String fieldString,
java.lang.String valueString)
Returns CharFieldValue created |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface phenote.datamodel.CharacterI |
|---|
cloneCharacter, getValue, getValueList, setValue, supportsComparisons |
| Constructor Detail |
|---|
public AbstractCharacter()
| Method Detail |
|---|
public CharFieldValue setValue(java.lang.String fieldString,
java.lang.String valueString)
throws CharFieldException,
TermNotFoundException
setValue in interface CharacterICharFieldException
TermNotFoundException
public CharFieldValue setValue(CharField cf,
java.lang.String s)
throws CharFieldException
setValue in interface CharacterICharFieldException
public CharFieldValue setValue(CharField cf,
java.lang.String s,
java.lang.String danglerName)
throws CharFieldException
setValue in interface CharacterICharFieldExceptionpublic java.util.List<CharField> getAllCharFields()
CharacterI
getAllCharFields in interface CharacterI
public CharField getCharFieldForName(java.lang.String fieldName)
throws CharFieldException
getCharFieldForName in interface CharacterICharFieldException
protected org.obo.datamodel.OBOClass getTerm(CharField cf)
throws CharFieldException
CharFieldException
public org.obo.datamodel.OBOClass getTerm(java.lang.String field)
throws CharFieldException
getTerm in interface CharacterICharFieldException
protected void setValue(CharField cf,
org.obo.datamodel.OBOClass term)
public java.lang.String getValueString(CharField cf)
CharacterI
getValueString in interface CharacterI
public java.lang.String getValueString(java.lang.String field)
throws CharFieldException
getValueString in interface CharacterICharFieldException
public java.lang.String getIdOrValue(java.lang.String field)
throws CharFieldException
getIdOrValue in interface CharacterICharFieldExceptionpublic boolean hasNoContent()
hasNoContent in interface CharacterIpublic boolean hasValue(CharField cf)
hasValue in interface CharacterIpublic boolean hasValue(java.lang.String fieldName)
hasValue in interface CharacterIprotected void setValue(CharFieldValue cfv)
public boolean equals(CharacterI ch)
equals in interface CharacterI
public boolean fieldEquals(CharacterI c,
CharField cf)
fieldEquals in interface CharacterI
protected boolean eq(CharFieldValue c1,
CharFieldValue c2)
public boolean hasOboAnnotation()
hasOboAnnotation in interface CharacterIpublic org.obo.annotation.datamodel.Annotation getOboAnnotation()
getOboAnnotation in interface CharacterIpublic boolean hasAnnotId()
hasAnnotId in interface CharacterIpublic java.lang.String getAnnotId()
CharacterI
getAnnotId in interface CharacterIpublic boolean hasComparison()
CharacterI
hasComparison in interface CharacterIpublic java.util.List<Comparison> getComparisons()
getComparisons in interface CharacterIpublic java.util.List<CharFieldValue> getComparisonValueKidList()
getComparisonValueKidList in interface CharacterIpublic java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
getTransferData in interface java.awt.datatransfer.Transferablepublic java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface java.awt.datatransfer.Transferablepublic boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported in interface java.awt.datatransfer.Transferablepublic boolean hasPub()
hasPub in interface CharacterIpublic void setEntity(org.obo.datamodel.OBOClass e)
setEntity in interface CharacterIpublic boolean hasGeneticContext()
hasGeneticContext in interface CharacterIpublic void setGeneticContext(org.obo.datamodel.OBOClass gc)
setGeneticContext in interface CharacterIpublic org.obo.datamodel.OBOClass getEntity()
getEntity in interface CharacterI
protected CharField getEntityField()
throws CharFieldException
CharFieldException
protected CharField getGenConField()
throws CharFieldException
CharFieldException
protected CharField getPubField()
throws CharFieldException
CharFieldException
protected CharField getQualField()
throws CharFieldException
CharFieldExceptionpublic org.obo.datamodel.OBOClass getGeneticContext()
getGeneticContext in interface CharacterIpublic void setGenotype(java.lang.String gt)
setGenotype in interface CharacterIpublic java.lang.String getGenotype()
getGenotype in interface CharacterI
protected CharField getGenotypeField()
throws CharFieldException
CharFieldExceptionpublic java.lang.String getPub()
CharacterI
getPub in interface CharacterIpublic void setPub(java.lang.String p)
CharacterI
setPub in interface CharacterIpublic org.obo.datamodel.OBOClass getQuality()
getQuality in interface CharacterIpublic void setQuality(org.obo.datamodel.OBOClass q)
setQuality in interface CharacterI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||