|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphenote.datamodel.CharFieldManager
public class CharFieldManager
Manages all of the ontologies. Should there be an ontology package - whats funny is that ontologies have obo filenames that they parse so they are sort of data adapterish actually manages CharFields(which may have ontologies) - rename CharFieldManager? yes! gets initialized by OntologyDataAdapter which loops through FieldConfigs and passes CharFields to OntMan
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_GROUP
|
| Method Summary | |
|---|---|
void |
addField(CharField cf)
OntologyDataAdapter adds fields from field configs |
java.util.List<Ontology> |
getAllOntologies()
|
CharField |
getCharField(int i)
get char field for int. |
CharField |
getCharField(int i,
java.lang.String group)
|
CharField |
getCharFieldForName(java.lang.String fieldName)
Actually checks both name & tag of char fields for match - rename getCharField? |
java.util.List<CharField> |
getCharFieldList()
This is where the ontologies are in a generic fashion. |
java.util.List<CharField> |
getCharFieldListForGroup(java.lang.String groupName)
should this be stored as a data structure? |
Ontology |
getComparisonRelationOntology()
Return ontology to use for statement comparisons this needs work. |
CharField |
getDateCreatedField()
If date_created doesnt exist then create it - its a fundamental may want a configuration for this - presumptious? |
static java.lang.String |
getDefaultGroup()
|
int |
getNumberOfFields()
|
org.obo.datamodel.OBOClass |
getOboClass(java.lang.String id)
Searches all ontologies for id - this could be even more savvy and utilize the id prefix AO,GO,PATO... |
org.obo.datamodel.OBOClass |
getOboClassWithExcep(java.lang.String id)
|
org.obo.datamodel.OBOSession |
getOboSession()
|
Ontology |
getOntologyForName(java.lang.String ontologyName)
Returns ontology with name, null if not found |
Ontology |
getOntologyForTerm(org.obo.datamodel.OBOClass term)
Currently iterates through every ontology looking for term, if this proves too inefficient we could do something with ID prefixes |
(package private) org.obo.datamodel.OBOClass |
getPostComp(org.obo.datamodel.OBOSession os,
java.lang.String id)
parse string GO:123^part_of(AO:345) into post comp obo class This will be replaced with obo edits post comp parse utility |
java.util.List<CharField> |
getPostCompFields()
return list of all char fields that allow post comps |
org.obo.datamodel.OBOProperty |
getRelation(java.lang.String id)
returns relation of id from obo session, null if dont have |
static CharFieldManager |
inst()
|
static boolean |
isDefaultGroup(java.lang.String s)
|
(package private) boolean |
isPostComp(java.lang.String id)
returns true if contains ^ - is this rather presumptious or is ^ reserved |
static void |
reset()
|
void |
setOboSession(org.obo.datamodel.OBOSession s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_GROUP
| Method Detail |
|---|
public static CharFieldManager inst()
public static void reset()
public void addField(CharField cf)
public void setOboSession(org.obo.datamodel.OBOSession s)
public org.obo.datamodel.OBOSession getOboSession()
public org.obo.datamodel.OBOProperty getRelation(java.lang.String id)
public CharField getCharField(int i)
throws OntologyException
OntologyException
public CharField getCharField(int i,
java.lang.String group)
throws OntologyException
OntologyException
public CharField getCharFieldForName(java.lang.String fieldName)
throws CharFieldException
CharFieldExceptionpublic java.util.List<CharField> getPostCompFields()
public Ontology getComparisonRelationOntology()
throws CharFieldException
CharFieldExceptionpublic CharField getDateCreatedField()
public java.util.List<CharField> getCharFieldList()
public int getNumberOfFields()
public java.util.List<CharField> getCharFieldListForGroup(java.lang.String groupName)
public static java.lang.String getDefaultGroup()
public static boolean isDefaultGroup(java.lang.String s)
public java.util.List<Ontology> getAllOntologies()
public Ontology getOntologyForName(java.lang.String ontologyName)
public org.obo.datamodel.OBOClass getOboClass(java.lang.String id)
throws TermNotFoundException
TermNotFoundException
public org.obo.datamodel.OBOClass getOboClassWithExcep(java.lang.String id)
throws TermNotFoundException
TermNotFoundExceptionboolean isPostComp(java.lang.String id)
org.obo.datamodel.OBOClass getPostComp(org.obo.datamodel.OBOSession os,
java.lang.String id)
throws TermNotFoundException
TermNotFoundException
public Ontology getOntologyForTerm(org.obo.datamodel.OBOClass term)
throws OntologyException
OntologyException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||