Class AbstractFeature<P extends Entity,​F extends Feature>

    • Constructor Detail

      • AbstractFeature

        public AbstractFeature()

        Constructor for AbstractFeature.

      • AbstractFeature

        public AbstractFeature​(String shortName,
                               String fullName)

        Constructor for AbstractFeature.

        Parameters:
        shortName - a String object.
        fullName - a String object.
      • AbstractFeature

        public AbstractFeature​(CvTerm type)

        Constructor for AbstractFeature.

        Parameters:
        type - a CvTerm object.
      • AbstractFeature

        public AbstractFeature​(String shortName,
                               String fullName,
                               CvTerm type)

        Constructor for AbstractFeature.

        Parameters:
        shortName - a String object.
        fullName - a String object.
        type - a CvTerm object.
      • AbstractFeature

        public AbstractFeature​(String shortName,
                               String fullName,
                               String interpro)

        Constructor for AbstractFeature.

        Parameters:
        shortName - a String object.
        fullName - a String object.
        interpro - a String object.
      • AbstractFeature

        public AbstractFeature​(CvTerm type,
                               String interpro)

        Constructor for AbstractFeature.

        Parameters:
        type - a CvTerm object.
        interpro - a String object.
      • AbstractFeature

        public AbstractFeature​(String shortName,
                               String fullName,
                               CvTerm type,
                               String interpro)

        Constructor for AbstractFeature.

        Parameters:
        shortName - a String object.
        fullName - a String object.
        type - a CvTerm object.
        interpro - a String object.
    • Method Detail

      • initialiseIdentifiers

        protected void initialiseIdentifiers()

        initialiseIdentifiers

      • initialiseAnnotations

        protected void initialiseAnnotations()

        initialiseAnnotations

      • initialiseXrefs

        protected void initialiseXrefs()

        initialiseXrefs

      • initialiseRanges

        protected void initialiseRanges()

        initialiseRanges

      • initialiseIdentifiersWith

        protected void initialiseIdentifiersWith​(Collection<Xref> identifiers)

        initialiseIdentifiersWith

        Parameters:
        identifiers - a Collection object.
      • initialiseAnnotationsWith

        protected void initialiseAnnotationsWith​(Collection<Annotation> annotations)

        initialiseAnnotationsWith

        Parameters:
        annotations - a Collection object.
      • initialiseXrefsWith

        protected void initialiseXrefsWith​(Collection<Xref> xrefs)

        initialiseXrefsWith

        Parameters:
        xrefs - a Collection object.
      • initialiseRangesWith

        protected void initialiseRangesWith​(Collection<Range> ranges)

        initialiseRangesWith

        Parameters:
        ranges - a Collection object.
      • initialiseLinkedFeatures

        protected void initialiseLinkedFeatures()

        initialiseLinkedFeatures

      • initialiseLinkedFeaturesWith

        protected void initialiseLinkedFeaturesWith​(Collection<F> features)

        initialiseLinkedFeaturesWith

        Parameters:
        features - a Collection object.
      • initialiseAliases

        protected void initialiseAliases()

        initialiseAliases

      • initialiseAliasesWith

        protected void initialiseAliasesWith​(Collection<Alias> aliases)

        initialiseAliasesWith

        Parameters:
        aliases - a Collection object.
      • setShortName

        public void setShortName​(String name)
        Sets the short name of the feature
        Specified by:
        setShortName in interface Feature<P extends Entity,​F extends Feature>
        Parameters:
        name - : short name
      • setFullName

        public void setFullName​(String name)
        Sets the full name that describes the molecule
        Specified by:
        setFullName in interface Feature<P extends Entity,​F extends Feature>
        Parameters:
        name - : full name
      • 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.
        Specified by:
        setInterpro in interface Feature<P extends Entity,​F extends Feature>
        Parameters:
        interpro - : the new interpro identifier
      • setType

        public void setType​(CvTerm type)
        Sets the feature type.
        Specified by:
        setType in interface Feature<P extends Entity,​F extends Feature>
        Parameters:
        type - : feature type
      • setRole

        public void setRole​(CvTerm effect)
        Sets the interaction effect/role for this feature.
        Specified by:
        setRole in interface Feature<P extends Entity,​F extends Feature>
        Parameters:
        effect - : the feature role
      • getParticipant

        public P getParticipant()

        Getter for the field participant.

        Specified by:
        getParticipant in interface Feature<P extends Entity,​F extends Feature>
        Returns:
        a P object.
      • setParticipant

        public void setParticipant​(P participant)

        Setter for the field participant.

        Specified by:
        setParticipant in interface Feature<P extends Entity,​F extends Feature>
        Parameters:
        participant - a P object.
      • setParticipantAndAddFeature

        public void setParticipantAndAddFeature​(P participant)

        setParticipantAndAddFeature

        Specified by:
        setParticipantAndAddFeature in interface Feature<P extends Entity,​F extends Feature>
        Parameters:
        participant - a P object.
      • processAddedIdentifierEvent

        protected void processAddedIdentifierEvent​(Xref added)

        processAddedIdentifierEvent

        Parameters:
        added - a Xref object.
      • processRemovedIdentifierEvent

        protected void processRemovedIdentifierEvent​(Xref removed)

        processRemovedIdentifierEvent

        Parameters:
        removed - a Xref object.
      • clearPropertiesLinkedToIdentifiers

        protected void clearPropertiesLinkedToIdentifiers()

        clearPropertiesLinkedToIdentifiers