Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.bdgp.apps.dagedit.dataadapter
Class GORDFAdapter  view GORDFAdapter download GORDFAdapter.java

java.lang.Object
  extended byAbstractDataAdapter
      extended byorg.bdgp.apps.dagedit.dataadapter.GORDFAdapter
All Implemented Interfaces:
DEDataAdapterI

public class GORDFAdapter
extends AbstractDataAdapter
implements DEDataAdapterI


Nested Class Summary
protected  class GORDFAdapter.ParentWrapper
           
protected  class GORDFAdapter.ProgressMeter
           
 
Field Summary
protected static java.util.Vector categories
           
protected static Property DB_PROPERTY
           
protected static Property DEF_PROPERTY
           
protected  java.lang.String filePath
           
protected static Property ID_PROPERTY
           
private  DEDataAdapterI idAdapter
           
protected  boolean ignoreMissingRelationships
           
protected static org.bdgp.apps.dagedit.datamodel.TermRelationshipType ISA
           
protected static Property ISA_PROPERTY
           
protected static Property NAME_PROPERTY
           
protected static org.bdgp.apps.dagedit.datamodel.TermRelationshipType PARTOF
           
protected static Property PARTOF_PROPERTY
           
protected  java.util.Vector progressListeners
           
protected  GORDFAdapter.ProgressMeter progressMeter
           
protected static Property REF_PROPERTY
           
protected static Property REFID_PROPERTY
           
protected static java.util.Vector relationshipTypes
           
protected static IOOperation[] supported
           
protected static Property SYNONYM_PROPERTY
           
 
Fields inherited from interface org.bdgp.apps.dagedit.dataadapter.DEDataAdapterI
CONFIGURE, EXPORT_TERMS, FIND_PRODUCTS, GET_HISTORY, GET_ID, IMPORT_TERMS, READ_TERMS, WRITE_TERMS
 
Constructor Summary
GORDFAdapter()
           
 
Method Summary
 void addProgressListener(ProgressListener listener)
           
protected static void buildConstants()
           
 void delegateToIDAdapter(DEDataAdapterI adapter)
           
 java.lang.String escapeString(java.lang.String in)
           
 java.util.Vector getHistories()
           
 java.lang.String[] getIDs(org.bdgp.apps.dagedit.datamodel.Term root, org.bdgp.apps.dagedit.datamodel.Term term, java.lang.String prefix, int length, int count)
           
 java.lang.String[] getIDs(org.bdgp.apps.dagedit.datamodel.Term root, org.bdgp.apps.dagedit.datamodel.Term term, java.lang.String prefix, int min, int max, int length, int count)
           
 java.lang.String getName()
           
 java.util.Vector getRelationshipTypes()
           
 org.bdgp.apps.dagedit.datamodel.DEEditHistory getRoot()
           
 java.util.Properties getStateInformation()
           
 IOOperation[] getSupportedOperations()
           
 java.util.Vector getTermCategories()
           
 java.lang.String getType()
           
protected static org.bdgp.apps.dagedit.datamodel.TermRelationshipType getTypeForString(java.lang.String type)
           
 DataAdapterUI getUI(IOOperation op)
           
 void init()
           
protected  org.bdgp.apps.dagedit.datamodel.Term readFile(java.lang.String fileName)
           
 void removeProgressListener(ProgressListener listener)
           
 void setFilePath(java.lang.String filePath)
           
 void setStateInformation(java.util.Properties props)
           
protected static java.lang.String trimData(java.lang.String data)
           
 org.bdgp.apps.dagedit.datamodel.DEEditHistory write(org.bdgp.apps.dagedit.datamodel.DEEditHistory history)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idAdapter

private DEDataAdapterI idAdapter

progressListeners

protected java.util.Vector progressListeners

progressMeter

protected GORDFAdapter.ProgressMeter progressMeter

supported

protected static final IOOperation[] supported

relationshipTypes

protected static final java.util.Vector relationshipTypes

categories

protected static final java.util.Vector categories

ISA

protected static final org.bdgp.apps.dagedit.datamodel.TermRelationshipType ISA

PARTOF

protected static final org.bdgp.apps.dagedit.datamodel.TermRelationshipType PARTOF

filePath

protected java.lang.String filePath

ignoreMissingRelationships

protected boolean ignoreMissingRelationships

ID_PROPERTY

protected static Property ID_PROPERTY

NAME_PROPERTY

protected static Property NAME_PROPERTY

DEF_PROPERTY

protected static Property DEF_PROPERTY

SYNONYM_PROPERTY

protected static Property SYNONYM_PROPERTY

REF_PROPERTY

protected static Property REF_PROPERTY

REFID_PROPERTY

protected static Property REFID_PROPERTY

DB_PROPERTY

protected static Property DB_PROPERTY

ISA_PROPERTY

protected static Property ISA_PROPERTY

PARTOF_PROPERTY

protected static Property PARTOF_PROPERTY
Constructor Detail

GORDFAdapter

public GORDFAdapter()
Method Detail

buildConstants

protected static void buildConstants()

setFilePath

public void setFilePath(java.lang.String filePath)

getSupportedOperations

public IOOperation[] getSupportedOperations()

getName

public java.lang.String getName()

getType

public java.lang.String getType()

init

public void init()

getUI

public DataAdapterUI getUI(IOOperation op)

getRoot

public org.bdgp.apps.dagedit.datamodel.DEEditHistory getRoot()
                                                      throws DataAdapterException
Specified by:
getRoot in interface DEDataAdapterI

addProgressListener

public void addProgressListener(ProgressListener listener)

removeProgressListener

public void removeProgressListener(ProgressListener listener)

readFile

protected org.bdgp.apps.dagedit.datamodel.Term readFile(java.lang.String fileName)
                                                 throws DataAdapterException

getTypeForString

protected static org.bdgp.apps.dagedit.datamodel.TermRelationshipType getTypeForString(java.lang.String type)

trimData

protected static java.lang.String trimData(java.lang.String data)

escapeString

public java.lang.String escapeString(java.lang.String in)

write

public org.bdgp.apps.dagedit.datamodel.DEEditHistory write(org.bdgp.apps.dagedit.datamodel.DEEditHistory history)
                                                    throws DataAdapterException
Specified by:
write in interface DEDataAdapterI

getIDs

public java.lang.String[] getIDs(org.bdgp.apps.dagedit.datamodel.Term root,
                                 org.bdgp.apps.dagedit.datamodel.Term term,
                                 java.lang.String prefix,
                                 int length,
                                 int count)
                          throws DataAdapterException
Specified by:
getIDs in interface DEDataAdapterI

getIDs

public java.lang.String[] getIDs(org.bdgp.apps.dagedit.datamodel.Term root,
                                 org.bdgp.apps.dagedit.datamodel.Term term,
                                 java.lang.String prefix,
                                 int min,
                                 int max,
                                 int length,
                                 int count)
                          throws DataAdapterException
Specified by:
getIDs in interface DEDataAdapterI

getHistories

public java.util.Vector getHistories()
                              throws DataAdapterException
Specified by:
getHistories in interface DEDataAdapterI

getRelationshipTypes

public java.util.Vector getRelationshipTypes()
                                      throws DataAdapterException
Specified by:
getRelationshipTypes in interface DEDataAdapterI

getTermCategories

public java.util.Vector getTermCategories()
                                   throws DataAdapterException
Specified by:
getTermCategories in interface DEDataAdapterI

delegateToIDAdapter

public void delegateToIDAdapter(DEDataAdapterI adapter)
Specified by:
delegateToIDAdapter in interface DEDataAdapterI

getStateInformation

public java.util.Properties getStateInformation()
Specified by:
getStateInformation in interface DEDataAdapterI

setStateInformation

public void setStateInformation(java.util.Properties props)
Specified by:
setStateInformation in interface DEDataAdapterI