Class XmlVariableParameterWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.xml30.XmlVariableParameterWriter
-
- All Implemented Interfaces:
PsiXmlElementWriter<VariableParameter>
- Direct Known Subclasses:
XmlVariableParameterWriter
public class XmlVariableParameterWriter extends Object implements PsiXmlElementWriter<VariableParameter>
XML 3.0 writer for variable parameter- Since:
11/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlVariableParameterWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for XmlVariableParameterWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PsiXmlObjectCache
getObjectIndex()
Getter for the fieldobjectIndex
.protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.PsiXmlVariableNameWriter<CvTerm>
getUnitWriter()
Getter for the fieldunitWriter
.PsiXmlElementWriter<VariableParameterValue>
getVariableParameterValueWriter()
Getter for the fieldvariableParameterValueWriter
.protected void
initialiseUnitWriter()
initialiseUnitWriter.void
setUnitWriter(PsiXmlVariableNameWriter<CvTerm> unitWriter)
Setter for the fieldunitWriter
.void
setVariableParameterValueWriter(PsiXmlElementWriter<VariableParameterValue> variableParameterValueWriter)
Setter for the fieldvariableParameterValueWriter
.void
write(VariableParameter object)
write.protected void
writeDescription(VariableParameter object)
writeDescription.protected void
writeUnit(VariableParameter object)
writeUnit.protected void
writeVariableParameterValues(VariableParameter object)
writeVariableParameterValues.
-
-
-
Constructor Detail
-
XmlVariableParameterWriter
public XmlVariableParameterWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for XmlVariableParameterWriter.
- Parameters:
writer
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
getVariableParameterValueWriter
public PsiXmlElementWriter<VariableParameterValue> getVariableParameterValueWriter()
Getter for the field
variableParameterValueWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
setVariableParameterValueWriter
public void setVariableParameterValueWriter(PsiXmlElementWriter<VariableParameterValue> variableParameterValueWriter)
Setter for the field
variableParameterValueWriter
.- Parameters:
variableParameterValueWriter
- aPsiXmlElementWriter
object.
-
getUnitWriter
public PsiXmlVariableNameWriter<CvTerm> getUnitWriter()
Getter for the field
unitWriter
.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
initialiseUnitWriter
protected void initialiseUnitWriter()
initialiseUnitWriter.
-
setUnitWriter
public void setUnitWriter(PsiXmlVariableNameWriter<CvTerm> unitWriter)
Setter for the field
unitWriter
.- Parameters:
unitWriter
- aPsiXmlVariableNameWriter
object.
-
write
public void write(VariableParameter object) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlElementWriter<VariableParameter>
- Parameters:
object
- a T object.- Throws:
MIIOException
- if any.
-
writeVariableParameterValues
protected void writeVariableParameterValues(VariableParameter object) throws XMLStreamException
writeVariableParameterValues.
- Parameters:
object
- aVariableParameter
object.- Throws:
XMLStreamException
- if any.
-
writeUnit
protected void writeUnit(VariableParameter object)
writeUnit.
- Parameters:
object
- aVariableParameter
object.
-
writeDescription
protected void writeDescription(VariableParameter object) throws XMLStreamException
writeDescription.
- Parameters:
object
- aVariableParameter
object.- Throws:
XMLStreamException
- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter
.- Returns:
- a
XMLStreamWriter
object.
-
getObjectIndex
protected PsiXmlObjectCache getObjectIndex()
Getter for the field
objectIndex
.- Returns:
- a
PsiXmlObjectCache
object.
-
-