|
||||||||||
| 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
| Constructor Summary | |
|---|---|
AbstractCharacter()
|
|
| Method Summary | |
|---|---|
abstract void |
addComparison(org.obo.datamodel.OBOProperty relation,
CharacterI relatedChar)
throws CharacterEx if not implemented (Character doesnt implement) OBOAnnotation implements |
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!!! |
CharField |
getCharFieldForName(java.lang.String fieldName)
|
org.obo.datamodel.OBOClass |
getEntity()
|
protected CharField |
getEntityField()
|
protected CharField |
getGenConField()
|
org.obo.datamodel.OBOClass |
getGeneticContext()
|
java.lang.String |
getGenotype()
|
protected CharField |
getGenotypeField()
|
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.String |
getValueString(CharField cf)
used in particular for lists of values |
java.lang.String |
getValueString(java.lang.String field)
|
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 |
boolean |
hasValue(CharField cf)
|
boolean |
hasValue(java.lang.String fieldName)
|
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 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 CharacterI
public abstract void addComparison(org.obo.datamodel.OBOProperty relation,
CharacterI relatedChar)
throws CharacterEx
addComparison in interface CharacterICharacterExpublic 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 | |||||||||