Package psidev.psi.mi.jami.xml.utils
Class PsiXmlUtils
- java.lang.Object
-
- psidev.psi.mi.jami.xml.utils.PsiXmlUtils
-
public class PsiXmlUtils extends Object
Utility class for psixml- Since:
18/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static StringABSTRACT_INTERACTION_TAGConstantABSTRACT_INTERACTION_TAG="abstractInteraction"static StringATTRIBUTE_TAGConstantATTRIBUTE_TAG="attribute"static StringATTRIBUTELIST_TAGConstantATTRIBUTELIST_TAG="attributeList"static StringAVAILABILITY_TAGConstantAVAILABILITY_TAG="availability"static StringAVAILABILITYLIST_TAGConstantAVAILABILITYLIST_TAG="availabilityList"static StringENTRY_TAGConstantENTRY_TAG="entry"static StringENTRYSET_TAGConstantENTRYSET_TAG="entrySet"static StringEXPERIMENT_TAGConstantEXPERIMENT_TAG="experimentDescription"static StringEXPERIMENTLIST_TAGConstantEXPERIMENTLIST_TAG="experimentList"static StringINTERACTION_TAGConstantINTERACTION_TAG="interaction"static StringINTERACTIONLIST_TAGConstantINTERACTIONLIST_TAG="interactionList"static StringINTERACTOR_TAGConstantINTERACTOR_TAG="interactor"static StringINTERACTORLIST_TAGConstantINTERACTORLIST_TAG="interactorList"static StringLEVEL_ATTRIBUTEConstantLEVEL_ATTRIBUTE="level"static StringLINE_BREAKConstantLINE_BREAK="\n"static StringMINOR_VERSION_ATTRIBUTEConstantMINOR_VERSION_ATTRIBUTE="minorVersion"static StringPSI_SCHEMA_253_LOCATIONConstantPSI_SCHEMA_253_LOCATION="net:sf:psidev:mi https://raw.githubuser"{trunked}static StringPSI_SCHEMA_254_LOCATIONConstantPSI_SCHEMA_254_LOCATION="http://psi.hupo.org/mi/mif https://raw."{trunked}static StringPSI_SCHEMA_300_LOCATIONConstantPSI_SCHEMA_300_LOCATION="http://psi.hupo.org/mi/mif300 https://r"{trunked}static StringSCHEMA_LOCATION_ATTRIBUTEConstantSCHEMA_LOCATION_ATTRIBUTE="schemaLocation"static StringSOURCE_TAGConstantSOURCE_TAG="source"static StringSTOICHIOMETRY_PREFIXConstantSTOICHIOMETRY_PREFIX="stoichiometry: "static StringUNSPECIFIEDConstantUNSPECIFIED="unspecified"static StringVERSION_ATTRIBUTEConstantVERSION_ATTRIBUTE="version"static intXML_BUFFER_SIZEConstantXML_BUFFER_SIZE=2048static StringXML_SCHEMAConstantXML_SCHEMA="http://www.w3.org/2001/XMLSchema-instan"{trunked}static StringXML_SCHEMA_PREFIXConstantXML_SCHEMA_PREFIX="xsi"static StringXml253_NAMESPACE_URIConstantXml253_NAMESPACE_URI="net:sf:psidev:mi"static StringXml254_NAMESPACE_URIConstantXml254_NAMESPACE_URI="http://psi.hupo.org/mi/mif"static StringXml300_NAMESPACE_URIConstantXml300_NAMESPACE_URI="http://psi.hupo.org/mi/mif300"static DateFormatYEAR_FORMATConstantYEAR_FORMAT
-
Constructor Summary
Constructors Constructor Description PsiXmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CooperativeEffectextractCooperativeEffectFrom(PsiXmlVersion version, Collection<Annotation> annots, Collection<Experiment> experiments, PsiXmlParserListener listener)extractCooperativeEffectFrom.static voidwriteCompleteNamesElement(String shortLabel, String fullName, Collection<Alias> aliases, XMLStreamWriter writer, PsiXmlElementWriter<Alias> aliasWriter)writeCompleteNamesElement.static voidwriteCompleteNamesForExperiment(NamedExperiment xmlExperiment, XMLStreamWriter writer, PsiXmlElementWriter<Alias> aliasWriter)writeCompleteNamesForExperiment.
-
-
-
Field Detail
-
UNSPECIFIED
public static final String UNSPECIFIED
ConstantUNSPECIFIED="unspecified"- See Also:
- Constant Field Values
-
YEAR_FORMAT
public static final DateFormat YEAR_FORMAT
ConstantYEAR_FORMAT
-
STOICHIOMETRY_PREFIX
public static final String STOICHIOMETRY_PREFIX
ConstantSTOICHIOMETRY_PREFIX="stoichiometry: "- See Also:
- Constant Field Values
-
ENTRYSET_TAG
public static final String ENTRYSET_TAG
ConstantENTRYSET_TAG="entrySet"- See Also:
- Constant Field Values
-
ENTRY_TAG
public static final String ENTRY_TAG
ConstantENTRY_TAG="entry"- See Also:
- Constant Field Values
-
EXPERIMENTLIST_TAG
public static final String EXPERIMENTLIST_TAG
ConstantEXPERIMENTLIST_TAG="experimentList"- See Also:
- Constant Field Values
-
INTERACTORLIST_TAG
public static final String INTERACTORLIST_TAG
ConstantINTERACTORLIST_TAG="interactorList"- See Also:
- Constant Field Values
-
INTERACTIONLIST_TAG
public static final String INTERACTIONLIST_TAG
ConstantINTERACTIONLIST_TAG="interactionList"- See Also:
- Constant Field Values
-
EXPERIMENT_TAG
public static final String EXPERIMENT_TAG
ConstantEXPERIMENT_TAG="experimentDescription"- See Also:
- Constant Field Values
-
INTERACTOR_TAG
public static final String INTERACTOR_TAG
ConstantINTERACTOR_TAG="interactor"- See Also:
- Constant Field Values
-
INTERACTION_TAG
public static final String INTERACTION_TAG
ConstantINTERACTION_TAG="interaction"- See Also:
- Constant Field Values
-
ABSTRACT_INTERACTION_TAG
public static final String ABSTRACT_INTERACTION_TAG
ConstantABSTRACT_INTERACTION_TAG="abstractInteraction"- See Also:
- Constant Field Values
-
SOURCE_TAG
public static final String SOURCE_TAG
ConstantSOURCE_TAG="source"- See Also:
- Constant Field Values
-
AVAILABILITYLIST_TAG
public static final String AVAILABILITYLIST_TAG
ConstantAVAILABILITYLIST_TAG="availabilityList"- See Also:
- Constant Field Values
-
AVAILABILITY_TAG
public static final String AVAILABILITY_TAG
ConstantAVAILABILITY_TAG="availability"- See Also:
- Constant Field Values
-
ATTRIBUTELIST_TAG
public static final String ATTRIBUTELIST_TAG
ConstantATTRIBUTELIST_TAG="attributeList"- See Also:
- Constant Field Values
-
ATTRIBUTE_TAG
public static final String ATTRIBUTE_TAG
ConstantATTRIBUTE_TAG="attribute"- See Also:
- Constant Field Values
-
LINE_BREAK
public static final String LINE_BREAK
ConstantLINE_BREAK="\n"- See Also:
- Constant Field Values
-
XML_BUFFER_SIZE
public static final int XML_BUFFER_SIZE
ConstantXML_BUFFER_SIZE=2048- See Also:
- Constant Field Values
-
Xml300_NAMESPACE_URI
public static final String Xml300_NAMESPACE_URI
ConstantXml300_NAMESPACE_URI="http://psi.hupo.org/mi/mif300"- See Also:
- Constant Field Values
-
Xml254_NAMESPACE_URI
public static final String Xml254_NAMESPACE_URI
ConstantXml254_NAMESPACE_URI="http://psi.hupo.org/mi/mif"- See Also:
- Constant Field Values
-
Xml253_NAMESPACE_URI
public static final String Xml253_NAMESPACE_URI
ConstantXml253_NAMESPACE_URI="net:sf:psidev:mi"- See Also:
- Constant Field Values
-
XML_SCHEMA
public static final String XML_SCHEMA
ConstantXML_SCHEMA="http://www.w3.org/2001/XMLSchema-instan"{trunked}- See Also:
- Constant Field Values
-
XML_SCHEMA_PREFIX
public static final String XML_SCHEMA_PREFIX
ConstantXML_SCHEMA_PREFIX="xsi"- See Also:
- Constant Field Values
-
PSI_SCHEMA_300_LOCATION
public static final String PSI_SCHEMA_300_LOCATION
ConstantPSI_SCHEMA_300_LOCATION="http://psi.hupo.org/mi/mif300 https://r"{trunked}- See Also:
- Constant Field Values
-
PSI_SCHEMA_254_LOCATION
public static final String PSI_SCHEMA_254_LOCATION
ConstantPSI_SCHEMA_254_LOCATION="http://psi.hupo.org/mi/mif https://raw."{trunked}- See Also:
- Constant Field Values
-
PSI_SCHEMA_253_LOCATION
public static final String PSI_SCHEMA_253_LOCATION
ConstantPSI_SCHEMA_253_LOCATION="net:sf:psidev:mi https://raw.githubuser"{trunked}- See Also:
- Constant Field Values
-
SCHEMA_LOCATION_ATTRIBUTE
public static final String SCHEMA_LOCATION_ATTRIBUTE
ConstantSCHEMA_LOCATION_ATTRIBUTE="schemaLocation"- See Also:
- Constant Field Values
-
MINOR_VERSION_ATTRIBUTE
public static final String MINOR_VERSION_ATTRIBUTE
ConstantMINOR_VERSION_ATTRIBUTE="minorVersion"- See Also:
- Constant Field Values
-
VERSION_ATTRIBUTE
public static final String VERSION_ATTRIBUTE
ConstantVERSION_ATTRIBUTE="version"- See Also:
- Constant Field Values
-
LEVEL_ATTRIBUTE
public static final String LEVEL_ATTRIBUTE
ConstantLEVEL_ATTRIBUTE="level"- See Also:
- Constant Field Values
-
-
Method Detail
-
extractCooperativeEffectFrom
public static CooperativeEffect extractCooperativeEffectFrom(PsiXmlVersion version, Collection<Annotation> annots, Collection<Experiment> experiments, PsiXmlParserListener listener)
extractCooperativeEffectFrom.
- Parameters:
version- aPsiXmlVersionobject.annots- aCollectionobject.experiments- aCollectionobject.listener- aPsiXmlParserListenerobject.- Returns:
- a
CooperativeEffectobject.
-
writeCompleteNamesElement
public static void writeCompleteNamesElement(String shortLabel, String fullName, Collection<Alias> aliases, XMLStreamWriter writer, PsiXmlElementWriter<Alias> aliasWriter) throws XMLStreamException
writeCompleteNamesElement.
- Parameters:
shortLabel- aStringobject.fullName- aStringobject.aliases- aCollectionobject.writer- aXMLStreamWriterobject.aliasWriter- aPsiXmlElementWriterobject.- Throws:
XMLStreamException- if any.
-
writeCompleteNamesForExperiment
public static void writeCompleteNamesForExperiment(NamedExperiment xmlExperiment, XMLStreamWriter writer, PsiXmlElementWriter<Alias> aliasWriter) throws XMLStreamException
writeCompleteNamesForExperiment.
- Parameters:
xmlExperiment- aNamedExperimentobject.writer- aXMLStreamWriterobject.aliasWriter- aPsiXmlElementWriterobject.- Throws:
XMLStreamException- if any.
-
-