Package org.pathvisio.libgpml.model
Class GPMLFormatAbstract
java.lang.Object
org.pathvisio.libgpml.model.GPMLFormatAbstract
- Direct Known Subclasses:
- GPML2013aFormatAbstract,- GPML2021FormatAbstract
public abstract class GPMLFormatAbstract
extends java.lang.Object
Abstract class for GPML format. Contains common properties and methods used
 in reading and writing GPML.
- Author:
- finterly
- 
Field SummaryFields Modifier and Type Field Description static org.jdom2.NamespaceBIOPAX_NAMESPACEprivate org.jdom2.NamespacensGPMLThe namespacestatic org.jdom2.NamespaceOWL_NAMESPACEstatic org.jdom2.NamespaceRDF_NAMESPACEIn GPML2013a, specificNamespaceare defined for Biopax elements.static java.lang.StringRDF_STRINGstatic org.jdom2.NamespaceRDFS_NAMESPACEprivate java.lang.StringxsdFileThe schema file
- 
Constructor SummaryConstructors Modifier Constructor Description protectedGPMLFormatAbstract(java.lang.String xsdFile, org.jdom2.Namespace nsGPML)Constructor for GPML2013aFormat Abstract.
- 
Method SummaryModifier and Type Method Description org.jdom2.NamespacegetGpmlNamespace()Returns the GPML namespace.java.lang.StringgetSchemaFile()Returns the GPML schema file.protected static voidrefreshLineElements(PathwayModel pathwayModel)Refreshes line elements.protected voidupdateGroups(PathwayModel pathwayModel)Removes group from pathwayModel if empty.voidvalidateDocument(org.jdom2.Document doc)Validates a JDOM document against the xml-schema definition specified by 'xsdFile.'Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
nsGPMLprivate final org.jdom2.Namespace nsGPMLThe namespace
- 
xsdFileprivate final java.lang.String xsdFileThe schema file
- 
RDF_NAMESPACEpublic static final org.jdom2.Namespace RDF_NAMESPACEIn GPML2013a, specificNamespaceare defined for Biopax elements.
- 
RDFS_NAMESPACEpublic static final org.jdom2.Namespace RDFS_NAMESPACE
- 
BIOPAX_NAMESPACEpublic static final org.jdom2.Namespace BIOPAX_NAMESPACE
- 
OWL_NAMESPACEpublic static final org.jdom2.Namespace OWL_NAMESPACE
- 
RDF_STRINGpublic static final java.lang.String RDF_STRING- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
GPMLFormatAbstractprotected GPMLFormatAbstract(java.lang.String xsdFile, org.jdom2.Namespace nsGPML)Constructor for GPML2013aFormat Abstract.- Parameters:
- xsdFile- the schema file.
- nsGPML- the GPML namespace.
 
 
- 
- 
Method Details- 
getSchemaFilepublic java.lang.String getSchemaFile()Returns the GPML schema file.- Returns:
- xsdFile the schema file.
 
- 
getGpmlNamespacepublic org.jdom2.Namespace getGpmlNamespace()Returns the GPML namespace.- Returns:
- nsGPML the GPML namespace.
 
- 
updateGroupsRemoves group from pathwayModel if empty. If group valid and not empty, update group dimensions of Groups. NB: Executed after reading and before writing.- Parameters:
- pathwayModel- the pathway model.
- Throws:
- ConverterException
 
- 
refreshLineElementsRefreshes line elements.- Parameters:
- pathwayModel- the pathway model.
- Throws:
- ConverterException
 
- 
validateDocumentValidates a JDOM document against the xml-schema definition specified by 'xsdFile.'- Parameters:
- doc- the document to validate
- Throws:
- ConverterException
 
 
-