edu.mayo.informatics.lexgrid.convert.directConversions.LgXMLCommon
Class LexGridXMLProcessor
java.lang.Object
edu.mayo.informatics.lexgrid.convert.directConversions.LgXMLCommon.LexGridXMLProcessor
public class LexGridXMLProcessor
- extends java.lang.Object
- Author:
- Scott Bauer
Method Summary |
int |
getEntryPointType(java.net.URI uri,
LgMessageDirectorIF messages)
|
int |
getLastRevisionElement(java.net.URI uri,
LgMessageDirectorIF messages)
|
SystemRelease |
getSystemReleaseMetadata(java.net.URI uri,
LgMessageDirectorIF messages)
We are pre-processing the System Release Meta data to avoid having to load this at
the end of the System Release load. |
boolean |
isCodingSchemePresent(java.net.URI uri,
LgMessageDirectorIF messages)
|
boolean |
isPickListDefinitionPresent(java.net.URI uri,
LgMessageDirectorIF messages)
|
boolean |
isValueSetDefinitionPresent(java.net.URI uri,
LgMessageDirectorIF messages)
|
CodingScheme[] |
loadCodingScheme(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML,
CodingSchemeManifest manifest)
|
PickListDefinition[] |
loadPickListDefinition(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML)
|
CodingScheme[] |
loadRevision(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML)
|
java.lang.Object[] |
loadSystemRelease(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML)
|
ValueSetDefinition[] |
loadValueSetDefinition(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML)
|
boolean |
setPropertiesFlag(java.net.URI uri,
LgMessageDirectorIF messages)
|
boolean |
setRelationsPropertiesFlag(java.net.URI uri,
LgMessageDirectorIF messages)
|
java.util.HashMap<java.lang.String,java.lang.Boolean> |
surveySystemRelease(java.net.URI uri,
LgMessageDirectorIF messages)
This does preprocessing to indicate whether the current system release has
a given list of schemes, pick lists or value sets. |
java.util.ArrayList<SystemReleaseSurvey> |
systemReleaseCodingSchemePropertiesSurvey(java.net.URI uri,
LgMessageDirectorIF messages)
Surveying the xml of a system release to allow accurate streaming to the data base. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_SCHEME_URL
public static final java.lang.String NO_SCHEME_URL
- See Also:
- Constant Field Values
NO_SCHEME_VERSION
public static final java.lang.String NO_SCHEME_VERSION
- See Also:
- Constant Field Values
systemCSProperties
public static final java.util.HashMap<CodingScheme,java.lang.Boolean> systemCSProperties
systemRelationsProperties
public static final java.util.HashMap<CodingScheme,java.lang.Boolean> systemRelationsProperties
LexGridXMLProcessor
public LexGridXMLProcessor()
loadCodingScheme
public CodingScheme[] loadCodingScheme(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML,
CodingSchemeManifest manifest)
throws CodingSchemeAlreadyLoadedException
- Parameters:
path
- messages
- validateXML
-
- Returns:
- Coding scheme loaded from this LexGrid xml.
- Throws:
CodingSchemeAlreadyLoadedException
loadRevision
public CodingScheme[] loadRevision(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML)
throws CodingSchemeAlreadyLoadedException
- Parameters:
path
- messages
- validateXML
-
- Returns:
- Set of coding schemes loaded as changed entry elements in this revision.
- Throws:
CodingSchemeAlreadyLoadedException
loadSystemRelease
public java.lang.Object[] loadSystemRelease(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML)
throws CodingSchemeAlreadyLoadedException
- Parameters:
path
- messages
- validateXML
-
- Returns:
- Set of coding schemes loaded wiith this system release.
- Throws:
CodingSchemeAlreadyLoadedException
loadValueSetDefinition
public ValueSetDefinition[] loadValueSetDefinition(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML)
loadPickListDefinition
public PickListDefinition[] loadPickListDefinition(java.net.URI uri,
LgMessageDirectorIF messages,
boolean validateXML)
getEntryPointType
public int getEntryPointType(java.net.URI uri,
LgMessageDirectorIF messages)
- Parameters:
path
-
- Returns:
- int representation of the Entry Point Type
setPropertiesFlag
public boolean setPropertiesFlag(java.net.URI uri,
LgMessageDirectorIF messages)
- Parameters:
path
-
- Returns:
- boolean indicating if a coding scheme contains a property
setRelationsPropertiesFlag
public boolean setRelationsPropertiesFlag(java.net.URI uri,
LgMessageDirectorIF messages)
- Parameters:
path
-
- Returns:
- boolean indicating if a coding scheme contains a property
isCodingSchemePresent
public boolean isCodingSchemePresent(java.net.URI uri,
LgMessageDirectorIF messages)
- Parameters:
path
- represents a path to the xml file to loadmessages
-
- Returns:
- flag indicating there is a coding scheme element somewhere in this xml source
isValueSetDefinitionPresent
public boolean isValueSetDefinitionPresent(java.net.URI uri,
LgMessageDirectorIF messages)
- Parameters:
path
- represents a path to the xml file to loadmessages
-
- Returns:
- flag indicating there is a value set definition element somewhere in this xml source
isPickListDefinitionPresent
public boolean isPickListDefinitionPresent(java.net.URI uri,
LgMessageDirectorIF messages)
- Parameters:
path
- represents a path to the xml file to loadmessages
-
- Returns:
- flag indicating there is a pick list definition element somewhere in this xml source
getLastRevisionElement
public int getLastRevisionElement(java.net.URI uri,
LgMessageDirectorIF messages)
- Parameters:
path
- messages
-
- Returns:
- int indicating which revision element occurs in the revision meta data
allowing user to get an accurate load of the meta data for Revision.
getSystemReleaseMetadata
public SystemRelease getSystemReleaseMetadata(java.net.URI uri,
LgMessageDirectorIF messages)
- We are pre-processing the System Release Meta data to avoid having to load this at
the end of the System Release load.
- Parameters:
path
- messages
-
- Returns:
surveySystemRelease
public java.util.HashMap<java.lang.String,java.lang.Boolean> surveySystemRelease(java.net.URI uri,
LgMessageDirectorIF messages)
- This does preprocessing to indicate whether the current system release has
a given list of schemes, pick lists or value sets.
- Parameters:
path
- messages
-
- Returns:
systemReleaseCodingSchemePropertiesSurvey
public java.util.ArrayList<SystemReleaseSurvey> systemReleaseCodingSchemePropertiesSurvey(java.net.URI uri,
LgMessageDirectorIF messages)
- Surveying the xml of a system release to allow accurate streaming to the data base.
We need to know if optional properties are present in the coding scheme or it's relations
As well monitor what schemes and revisions have been loaded.
- Parameters:
path
- messages
-
- Returns: