Class AbstractXmlFeatureWriter<F extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlFeatureWriter<F>
-
- All Implemented Interfaces:
PsiXmlElementWriter<F>
- Direct Known Subclasses:
AbstractXmlFeatureWriter,AbstractXmlFeatureWriter
public abstract class AbstractXmlFeatureWriter<F extends Feature> extends Object implements PsiXmlElementWriter<F>
Abstract writer for Xml25Feature.- Since:
13/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlFeatureWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)Constructor for AbstractXmlFeatureWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PsiXmlElementWriter<Alias>getAliasWriter()Getter for the fieldaliasWriter.PsiXmlElementWriter<Annotation>getAttributeWriter()Getter for the fieldattributeWriter.PsiXmlVariableNameWriter<CvTerm>getFeatureTypeWriter()Getter for the fieldfeatureTypeWriter.protected PsiXmlObjectCachegetObjectIndex()Getter for the fieldobjectIndex.PsiXmlElementWriter<Range>getRangeWriter()Getter for the fieldrangeWriter.protected XMLStreamWritergetStreamWriter()Getter for the fieldstreamWriter.PsiXmlXrefWritergetXrefWriter()Getter for the fieldxrefWriter.protected abstract voidinitialiseFeatureTypeWriter()initialiseFeatureTypeWriter.protected abstract voidinitialiseRangeWriter()initialiseRangeWriter.protected abstract voidinitialiseXrefWriter()initialiseXrefWriter.voidsetAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)Setter for the fieldaliasWriter.voidsetAttributeWriter(PsiXmlElementWriter<Annotation> attributeWriter)Setter for the fieldattributeWriter.voidsetFeatureTypeWriter(PsiXmlVariableNameWriter<CvTerm> featureTypeWriter)Setter for the fieldfeatureTypeWriter.voidsetRangeWriter(PsiXmlElementWriter<Range> rangeWriter)Setter for the fieldrangeWriter.voidsetXrefWriter(PsiXmlXrefWriter xrefWriter)Setter for the fieldxrefWriter.voidwrite(F object)write.protected voidwriteAttribute(String name, String nameAc, String description)writeAttribute.protected voidwriteAttributes(F object)writeAttributes.protected abstract voidwriteFeatureRole(F object)writeFeatureRole.protected voidwriteFeatureType(F object)writeFeatureType.protected voidwriteNames(F object)writeNames.protected abstract voidwriteOtherAttributes(F object, boolean writeAttributeList)writeOtherAttributes.protected abstract voidwriteOtherProperties(F object)writeOtherProperties.protected abstract voidwriteParameters(F object)writeParameters.protected voidwriteRanges(F object)writeRanges.protected voidwriteXrefFromFeatureIdentifiers(F object)writeXrefFromFeatureIdentifiers.protected voidwriteXrefFromFeatureXrefs(F object)writeXrefFromFeatureXrefs.protected voidwriteXrefs(F object)writeXrefs.
-
-
-
Constructor Detail
-
AbstractXmlFeatureWriter
public AbstractXmlFeatureWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlFeatureWriter.
- Parameters:
writer- aXMLStreamWriterobject.objectIndex- aPsiXmlObjectCacheobject.
-
-
Method Detail
-
getXrefWriter
public PsiXmlXrefWriter getXrefWriter()
Getter for the field
xrefWriter.- Returns:
- a
PsiXmlXrefWriterobject.
-
initialiseXrefWriter
protected abstract void initialiseXrefWriter()
initialiseXrefWriter.
-
setXrefWriter
public void setXrefWriter(PsiXmlXrefWriter xrefWriter)
Setter for the field
xrefWriter.- Parameters:
xrefWriter- aPsiXmlXrefWriterobject.
-
getFeatureTypeWriter
public PsiXmlVariableNameWriter<CvTerm> getFeatureTypeWriter()
Getter for the field
featureTypeWriter.- Returns:
- a
PsiXmlVariableNameWriterobject.
-
initialiseFeatureTypeWriter
protected abstract void initialiseFeatureTypeWriter()
initialiseFeatureTypeWriter.
-
setFeatureTypeWriter
public void setFeatureTypeWriter(PsiXmlVariableNameWriter<CvTerm> featureTypeWriter)
Setter for the field
featureTypeWriter.- Parameters:
featureTypeWriter- aPsiXmlVariableNameWriterobject.
-
getAttributeWriter
public PsiXmlElementWriter<Annotation> getAttributeWriter()
Getter for the field
attributeWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setAttributeWriter
public void setAttributeWriter(PsiXmlElementWriter<Annotation> attributeWriter)
Setter for the field
attributeWriter.- Parameters:
attributeWriter- aPsiXmlElementWriterobject.
-
getRangeWriter
public PsiXmlElementWriter<Range> getRangeWriter()
Getter for the field
rangeWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
initialiseRangeWriter
protected abstract void initialiseRangeWriter()
initialiseRangeWriter.
-
setRangeWriter
public void setRangeWriter(PsiXmlElementWriter<Range> rangeWriter)
Setter for the field
rangeWriter.- Parameters:
rangeWriter- aPsiXmlElementWriterobject.
-
getAliasWriter
public PsiXmlElementWriter<Alias> getAliasWriter()
Getter for the field
aliasWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setAliasWriter
public void setAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)
Setter for the field
aliasWriter.- Parameters:
aliasWriter- aPsiXmlElementWriterobject.
-
write
public void write(F object) throws MIIOException
write.
- Specified by:
writein interfacePsiXmlElementWriter<F extends Feature>- Parameters:
object- a T object.- Throws:
MIIOException- if any.
-
writeParameters
protected abstract void writeParameters(F object) throws XMLStreamException
writeParameters.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
writeFeatureRole
protected abstract void writeFeatureRole(F object) throws XMLStreamException
writeFeatureRole.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
writeOtherAttributes
protected abstract void writeOtherAttributes(F object, boolean writeAttributeList) throws XMLStreamException
writeOtherAttributes.
- Parameters:
object- a F object.writeAttributeList- a boolean.- Throws:
XMLStreamException- if any.
-
writeAttributes
protected void writeAttributes(F object) throws XMLStreamException
writeAttributes.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
writeAttribute
protected void writeAttribute(String name, String nameAc, String description) throws XMLStreamException
writeAttribute.
- Parameters:
name- aStringobject.nameAc- aStringobject.description- aStringobject.- Throws:
XMLStreamException- if any.
-
writeRanges
protected void writeRanges(F object) throws XMLStreamException
writeRanges.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
writeOtherProperties
protected abstract void writeOtherProperties(F object) throws XMLStreamException
writeOtherProperties.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
writeFeatureType
protected void writeFeatureType(F object) throws XMLStreamException
writeFeatureType.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
writeXrefs
protected void writeXrefs(F object) throws XMLStreamException
writeXrefs.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
writeXrefFromFeatureXrefs
protected void writeXrefFromFeatureXrefs(F object) throws XMLStreamException
writeXrefFromFeatureXrefs.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
writeXrefFromFeatureIdentifiers
protected void writeXrefFromFeatureIdentifiers(F object) throws XMLStreamException
writeXrefFromFeatureIdentifiers.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
writeNames
protected void writeNames(F object) throws XMLStreamException
writeNames.
- Parameters:
object- a F object.- Throws:
XMLStreamException- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter.- Returns:
- a
XMLStreamWriterobject.
-
getObjectIndex
protected PsiXmlObjectCache getObjectIndex()
Getter for the field
objectIndex.- Returns:
- a
PsiXmlObjectCacheobject.
-
-