- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml300.AbstractXmlFeature<P,F>
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable
,FileSourceContext
,Feature<P,F>
,ExtendedPsiXmlFeature<P,F>
- Direct Known Subclasses:
XmlFeature
,XmlFeatureEvidence
,XmlModelledFeature
public abstract class AbstractXmlFeature<P extends Entity,F extends Feature> extends Object implements Feature<P,F>, FileSourceContext, com.sun.xml.bind.Locatable, ExtendedPsiXmlFeature<P,F>
Abstract class for Xml features- Since:
25/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractXmlFeature.JAXBAttributeWrapper
static class
AbstractXmlFeature.JAXBRangeWrapper
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Feature
ALLOSTERIC_PTM, ALLOSTERIC_PTM_MI, BINDING_SITE, BINDING_SITE_MI, BIOLOGICAL_FEATURE, BIOLOGICAL_FEATURE_MI, DECREASING_PTM, DECREASING_PTM_MI, DIRECT_BINDING, DIRECT_BINDING_MI, DISRUPTING_PTM, DISRUPTING_PTM_MI, EXPERIMENTAL_FEATURE, EXPERIMENTAL_FEATURE_MI, INCREASING_PTM, INCREASING_PTM_MI, MUTATION, MUTATION_MI, OBSERVED_PTM, OBSERVED_PTM_MI, PREREQUISITE_PTM, PREREQUISITE_PTM_MI, RESULTING_CLEAVAGE, RESULTING_CLEAVAGE_MI, RESULTING_PTM, RESULTING_PTM_MI, SUFFICIENT_BINDING, SUFFICIENT_BINDING_MI, VARIANT, VARIANT_MI
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlFeature()
Constructor for AbstractXmlFeature.AbstractXmlFeature(String shortName, String fullName)
Constructor for AbstractXmlFeature.AbstractXmlFeature(String shortName, String fullName, String interpro)
Constructor for AbstractXmlFeature.AbstractXmlFeature(String shortName, String fullName, CvTerm type)
Constructor for AbstractXmlFeature.AbstractXmlFeature(String shortName, String fullName, CvTerm type, String interpro)
Constructor for AbstractXmlFeature.AbstractXmlFeature(CvTerm type)
Constructor for AbstractXmlFeature.AbstractXmlFeature(CvTerm type, String interpro)
Constructor for AbstractXmlFeature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Alias>
getAliases()
Collection of aliases for a feature.Collection<Annotation>
getAnnotations()
getAnnotations.String
getFullName()
getFullName.int
getId()
Gets the value of the id property.Collection<Xref>
getIdentifiers()
getIdentifiers.String
getInterpro()
getInterpro.protected AbstractXmlFeature.JAXBAttributeWrapper
getJAXBAttributeWrapper()
getJAXBAttributeWrapper.protected AbstractXmlFeature.JAXBRangeWrapper
getJAXBRangeWrapper()
getJAXBRangeWrapper.Collection<F>
getLinkedFeatures()
Getter for the fieldlinkedFeatures
.P
getParticipant()
Getter for the fieldparticipant
.Collection<Range>
getRanges()
getRanges.CvTerm
getRole()
Getter for the fieldrole
.String
getShortName()
getShortName.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.CvTerm
getType()
Getter for the fieldtype
.Collection<Xref>
getXrefs()
getXrefs.protected void
initialiseAnnotationWrapper()
initialiseAnnotationWrapper.protected void
initialiseLinkedFeatures()
initialiseLinkedFeatures.protected void
initialiseRangeWrapper()
initialiseRangeWrapper.protected void
initialiseRole()
initialiseRole.void
setFullName(String name)
Sets the full name that describes the moleculevoid
setId(int value)
setId.void
setInterpro(String interpro)
Sets the interpro identifier.void
setJAXBAttributeWrapper(AbstractXmlFeature.JAXBAttributeWrapper jaxbAttributeWrapper)
setJAXBAttributeWrapper.void
setJAXBFeatureRole(XmlCvTerm role)
setJAXBFeatureRole.void
setJAXBNames(NamesContainer value)
Sets the value of the names property.void
setJAXBRangeWrapper(AbstractXmlFeature.JAXBRangeWrapper jaxbRangeWrapper)
setJAXBRangeWrapper.void
setJAXBType(XmlCvTerm type)
setJAXBType.void
setJAXBXref(FeatureXrefContainer value)
Sets the value of the xref property.void
setParticipant(P participant)
Setter for the fieldparticipant
.void
setParticipantAndAddFeature(P participant)
setParticipantAndAddFeature.void
setRole(CvTerm effect)
Sets the interaction effect/role for this feature.void
setShortName(String name)
Sets the short name of the featurevoid
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorvoid
setType(CvTerm type)
Sets the feature type.Locator
sourceLocation()
String
toString()
toString
-
-
-
Constructor Detail
-
AbstractXmlFeature
public AbstractXmlFeature()
Constructor for AbstractXmlFeature.
-
AbstractXmlFeature
public AbstractXmlFeature(String shortName, String fullName)
Constructor for AbstractXmlFeature.
-
AbstractXmlFeature
public AbstractXmlFeature(CvTerm type)
Constructor for AbstractXmlFeature.
- Parameters:
type
- aCvTerm
object.
-
AbstractXmlFeature
public AbstractXmlFeature(String shortName, String fullName, CvTerm type)
Constructor for AbstractXmlFeature.
-
AbstractXmlFeature
public AbstractXmlFeature(String shortName, String fullName, String interpro)
Constructor for AbstractXmlFeature.
-
AbstractXmlFeature
public AbstractXmlFeature(CvTerm type, String interpro)
Constructor for AbstractXmlFeature.
-
-
Method Detail
-
initialiseAnnotationWrapper
protected void initialiseAnnotationWrapper()
initialiseAnnotationWrapper.
-
initialiseRangeWrapper
protected void initialiseRangeWrapper()
initialiseRangeWrapper.
-
initialiseLinkedFeatures
protected void initialiseLinkedFeatures()
initialiseLinkedFeatures.
-
setJAXBNames
public void setJAXBNames(NamesContainer value)
Sets the value of the names property.- Parameters:
value
- allowed object isNamesContainer
-
getShortName
public String getShortName()
getShortName.
-
setShortName
public void setShortName(String name)
Sets the short name of the feature
-
getFullName
public String getFullName()
getFullName.
-
setFullName
public void setFullName(String name)
Sets the full name that describes the molecule
-
getAliases
public List<Alias> getAliases()
Collection of aliases for a feature. The Collection cannot be null and if the experiment does not have any aliases, the method should return an empty Collection.
-
setJAXBXref
public void setJAXBXref(FeatureXrefContainer value)
Sets the value of the xref property.- Parameters:
value
- allowed object isFeatureXrefContainer
-
getInterpro
public String getInterpro()
getInterpro.
-
setInterpro
public void setInterpro(String interpro)
Sets the interpro identifier. It will remove the old interpro identifier and add a new interpro identity Xref in the list of identifiers. If interpro is null, it will remove all existing interpro Xref in the list of identifiers.
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiers
in interfaceFeature<P extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotations
in interfaceFeature<P extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
getType
public CvTerm getType()
Getter for the field
type
.
-
setType
public void setType(CvTerm type)
Sets the feature type.
-
setJAXBType
public void setJAXBType(XmlCvTerm type)
setJAXBType.
- Parameters:
type
- aXmlCvTerm
object.
-
getRanges
public Collection<Range> getRanges()
getRanges.
-
getRole
public CvTerm getRole()
Getter for the field
role
.
-
setRole
public void setRole(CvTerm effect)
Sets the interaction effect/role for this feature.
-
getParticipant
public P getParticipant()
Getter for the field
participant
.
-
setParticipant
public void setParticipant(P participant)
Setter for the field
participant
.
-
setParticipantAndAddFeature
public void setParticipantAndAddFeature(P participant)
setParticipantAndAddFeature.
-
getLinkedFeatures
public Collection<F> getLinkedFeatures()
Getter for the field
linkedFeatures
.- Specified by:
getLinkedFeatures
in interfaceFeature<P extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classObject
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocation
in interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocator
in interfaceFileSourceContext
- Parameters:
sourceLocator
- : the file locator
-
getId
public int getId()
Gets the value of the id property.
-
setId
public void setId(int value)
setId.
Sets the value of the id property. Adds this object in the mapOfReferencedObjects of this entry
-
setJAXBAttributeWrapper
public void setJAXBAttributeWrapper(AbstractXmlFeature.JAXBAttributeWrapper jaxbAttributeWrapper)
setJAXBAttributeWrapper.
- Parameters:
jaxbAttributeWrapper
- aAbstractXmlFeature.JAXBAttributeWrapper
object.
-
setJAXBRangeWrapper
public void setJAXBRangeWrapper(AbstractXmlFeature.JAXBRangeWrapper jaxbRangeWrapper)
setJAXBRangeWrapper.
- Parameters:
jaxbRangeWrapper
- aAbstractXmlFeature.JAXBRangeWrapper
object.
-
setJAXBFeatureRole
public void setJAXBFeatureRole(XmlCvTerm role)
setJAXBFeatureRole.
- Parameters:
role
- aXmlCvTerm
object.
-
getJAXBRangeWrapper
protected AbstractXmlFeature.JAXBRangeWrapper getJAXBRangeWrapper()
getJAXBRangeWrapper.
- Returns:
- a
AbstractXmlFeature.JAXBRangeWrapper
object.
-
getJAXBAttributeWrapper
protected AbstractXmlFeature.JAXBAttributeWrapper getJAXBAttributeWrapper()
getJAXBAttributeWrapper.
- Returns:
- a
AbstractXmlFeature.JAXBAttributeWrapper
object.
-
initialiseRole
protected void initialiseRole()
initialiseRole.
-
-