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 String
ABSTRACT_INTERACTION_TAG
ConstantABSTRACT_INTERACTION_TAG="abstractInteraction"
static String
ATTRIBUTE_TAG
ConstantATTRIBUTE_TAG="attribute"
static String
ATTRIBUTELIST_TAG
ConstantATTRIBUTELIST_TAG="attributeList"
static String
AVAILABILITY_TAG
ConstantAVAILABILITY_TAG="availability"
static String
AVAILABILITYLIST_TAG
ConstantAVAILABILITYLIST_TAG="availabilityList"
static String
ENTRY_TAG
ConstantENTRY_TAG="entry"
static String
ENTRYSET_TAG
ConstantENTRYSET_TAG="entrySet"
static String
EXPERIMENT_TAG
ConstantEXPERIMENT_TAG="experimentDescription"
static String
EXPERIMENTLIST_TAG
ConstantEXPERIMENTLIST_TAG="experimentList"
static String
INTERACTION_TAG
ConstantINTERACTION_TAG="interaction"
static String
INTERACTIONLIST_TAG
ConstantINTERACTIONLIST_TAG="interactionList"
static String
INTERACTOR_TAG
ConstantINTERACTOR_TAG="interactor"
static String
INTERACTORLIST_TAG
ConstantINTERACTORLIST_TAG="interactorList"
static String
LEVEL_ATTRIBUTE
ConstantLEVEL_ATTRIBUTE="level"
static String
LINE_BREAK
ConstantLINE_BREAK="\n"
static String
MINOR_VERSION_ATTRIBUTE
ConstantMINOR_VERSION_ATTRIBUTE="minorVersion"
static String
PSI_SCHEMA_253_LOCATION
ConstantPSI_SCHEMA_253_LOCATION="net:sf:psidev:mi https://raw.githubuser"{trunked}
static String
PSI_SCHEMA_254_LOCATION
ConstantPSI_SCHEMA_254_LOCATION="http://psi.hupo.org/mi/mif https://raw."{trunked}
static String
PSI_SCHEMA_300_LOCATION
ConstantPSI_SCHEMA_300_LOCATION="http://psi.hupo.org/mi/mif300 https://r"{trunked}
static String
SCHEMA_LOCATION_ATTRIBUTE
ConstantSCHEMA_LOCATION_ATTRIBUTE="schemaLocation"
static String
SOURCE_TAG
ConstantSOURCE_TAG="source"
static String
STOICHIOMETRY_PREFIX
ConstantSTOICHIOMETRY_PREFIX="stoichiometry: "
static String
UNSPECIFIED
ConstantUNSPECIFIED="unspecified"
static String
VERSION_ATTRIBUTE
ConstantVERSION_ATTRIBUTE="version"
static int
XML_BUFFER_SIZE
ConstantXML_BUFFER_SIZE=2048
static String
XML_SCHEMA
ConstantXML_SCHEMA="http://www.w3.org/2001/XMLSchema-instan"{trunked}
static String
XML_SCHEMA_PREFIX
ConstantXML_SCHEMA_PREFIX="xsi"
static String
Xml253_NAMESPACE_URI
ConstantXml253_NAMESPACE_URI="net:sf:psidev:mi"
static String
Xml254_NAMESPACE_URI
ConstantXml254_NAMESPACE_URI="http://psi.hupo.org/mi/mif"
static String
Xml300_NAMESPACE_URI
ConstantXml300_NAMESPACE_URI="http://psi.hupo.org/mi/mif300"
static DateFormat
YEAR_FORMAT
ConstantYEAR_FORMAT
-
Constructor Summary
Constructors Constructor Description PsiXmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CooperativeEffect
extractCooperativeEffectFrom(PsiXmlVersion version, Collection<Annotation> annots, Collection<Experiment> experiments, PsiXmlParserListener listener)
extractCooperativeEffectFrom.static void
writeCompleteNamesElement(String shortLabel, String fullName, Collection<Alias> aliases, XMLStreamWriter writer, PsiXmlElementWriter<Alias> aliasWriter)
writeCompleteNamesElement.static void
writeCompleteNamesForExperiment(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
- aPsiXmlVersion
object.annots
- aCollection
object.experiments
- aCollection
object.listener
- aPsiXmlParserListener
object.- Returns:
- a
CooperativeEffect
object.
-
writeCompleteNamesElement
public static void writeCompleteNamesElement(String shortLabel, String fullName, Collection<Alias> aliases, XMLStreamWriter writer, PsiXmlElementWriter<Alias> aliasWriter) throws XMLStreamException
writeCompleteNamesElement.
- Parameters:
shortLabel
- aString
object.fullName
- aString
object.aliases
- aCollection
object.writer
- aXMLStreamWriter
object.aliasWriter
- aPsiXmlElementWriter
object.- Throws:
XMLStreamException
- if any.
-
writeCompleteNamesForExperiment
public static void writeCompleteNamesForExperiment(NamedExperiment xmlExperiment, XMLStreamWriter writer, PsiXmlElementWriter<Alias> aliasWriter) throws XMLStreamException
writeCompleteNamesForExperiment.
- Parameters:
xmlExperiment
- aNamedExperiment
object.writer
- aXMLStreamWriter
object.aliasWriter
- aPsiXmlElementWriter
object.- Throws:
XMLStreamException
- if any.
-
-