- 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 classAbstractXmlFeature.JAXBAttributeWrapperstatic classAbstractXmlFeature.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.StringgetFullName()getFullName.intgetId()Gets the value of the id property.Collection<Xref>getIdentifiers()getIdentifiers.StringgetInterpro()getInterpro.protected AbstractXmlFeature.JAXBAttributeWrappergetJAXBAttributeWrapper()getJAXBAttributeWrapper.protected AbstractXmlFeature.JAXBRangeWrappergetJAXBRangeWrapper()getJAXBRangeWrapper.Collection<F>getLinkedFeatures()Getter for the fieldlinkedFeatures.PgetParticipant()Getter for the fieldparticipant.Collection<Range>getRanges()getRanges.CvTermgetRole()Getter for the fieldrole.StringgetShortName()getShortName.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.CvTermgetType()Getter for the fieldtype.Collection<Xref>getXrefs()getXrefs.protected voidinitialiseAnnotationWrapper()initialiseAnnotationWrapper.protected voidinitialiseLinkedFeatures()initialiseLinkedFeatures.protected voidinitialiseRangeWrapper()initialiseRangeWrapper.protected voidinitialiseRole()initialiseRole.voidsetFullName(String name)Sets the full name that describes the moleculevoidsetId(int value)setId.voidsetInterpro(String interpro)Sets the interpro identifier.voidsetJAXBAttributeWrapper(AbstractXmlFeature.JAXBAttributeWrapper jaxbAttributeWrapper)setJAXBAttributeWrapper.voidsetJAXBFeatureRole(XmlCvTerm role)setJAXBFeatureRole.voidsetJAXBNames(NamesContainer value)Sets the value of the names property.voidsetJAXBRangeWrapper(AbstractXmlFeature.JAXBRangeWrapper jaxbRangeWrapper)setJAXBRangeWrapper.voidsetJAXBType(XmlCvTerm type)setJAXBType.voidsetJAXBXref(FeatureXrefContainer value)Sets the value of the xref property.voidsetParticipant(P participant)Setter for the fieldparticipant.voidsetParticipantAndAddFeature(P participant)setParticipantAndAddFeature.voidsetRole(CvTerm effect)Sets the interaction effect/role for this feature.voidsetShortName(String name)Sets the short name of the featurevoidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetType(CvTerm type)Sets the feature type.LocatorsourceLocation()StringtoString()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- aCvTermobject.
-
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:
getIdentifiersin interfaceFeature<P extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfaceFeature<P extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
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- aXmlCvTermobject.
-
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:
getLinkedFeaturesin interfaceFeature<P extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin 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:
sourceLocationin interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- a
FileSourceLocatorobject.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocatorin 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.JAXBAttributeWrapperobject.
-
setJAXBRangeWrapper
public void setJAXBRangeWrapper(AbstractXmlFeature.JAXBRangeWrapper jaxbRangeWrapper)
setJAXBRangeWrapper.
- Parameters:
jaxbRangeWrapper- aAbstractXmlFeature.JAXBRangeWrapperobject.
-
setJAXBFeatureRole
public void setJAXBFeatureRole(XmlCvTerm role)
setJAXBFeatureRole.
- Parameters:
role- aXmlCvTermobject.
-
getJAXBRangeWrapper
protected AbstractXmlFeature.JAXBRangeWrapper getJAXBRangeWrapper()
getJAXBRangeWrapper.
- Returns:
- a
AbstractXmlFeature.JAXBRangeWrapperobject.
-
getJAXBAttributeWrapper
protected AbstractXmlFeature.JAXBAttributeWrapper getJAXBAttributeWrapper()
getJAXBAttributeWrapper.
- Returns:
- a
AbstractXmlFeature.JAXBAttributeWrapperobject.
-
initialiseRole
protected void initialiseRole()
initialiseRole.
-
-