Package org.pathvisio.libgpml.model
Class PathwayElement.EvidenceRef
java.lang.Object
org.pathvisio.libgpml.model.PathwayElement.InfoRef
org.pathvisio.libgpml.model.PathwayElement.EvidenceRef
- Enclosing class:
- PathwayElement
public class PathwayElement.EvidenceRef extends PathwayElement.InfoRef
This class stores information for a EvidenceRef which references an
Evidence.- Author:
- finterly
-
Field Summary
Fields Modifier and Type Field Description private Evidenceevidenceprivate Referenceable.Evidenceableevidenceable -
Constructor Summary
Constructors Modifier Constructor Description protectedEvidenceRef(Evidence evidence)Instantiates an EvidenceRef given sourceEvidenceand initializes evidenceRefs lists. -
Method Summary
Modifier and Type Method Description EvidencegetEvidence()Returns the evidence referenced.Referenceable.EvidenceablegetEvidenceable()Returns the target pathway, pathway element, or evidenceRefReferenceable.Evidenceablefor this evidenceRef.booleanhasEvidence()Checks whether this evidenceRef has a source evidence.booleanhasEvidenceable()Checks whether this evidenceRef has a target evidenceable.private voidsetEvidence(Evidence v)Sets the source evidence for this evidenceRef.private voidsetEvidenceable(Referenceable.Evidenceable v)Sets the target pathway, pathway element, or evidenceRefReferenceable.Evidenceableto which the evidenceRef belongs.protected voidsetEvidenceableTo(Referenceable.Evidenceable evidenceable)Sets the target pathway, pathway element, or evidenceRefReferenceable.Evidenceablefor this evidenceRef.voidsetEvidenceTo(Evidence evidence)Sets the source evidence for this evidenceRef.protected voidterminate()Terminates this evidenceRef.java.lang.StringtoString()Writes evidenceRef out as string.voidunsetEvidence()Unsets the evidence, if any, from this evidenceRef.protected voidunsetEvidenceable()Unsets the evidenceable, if any, from this evidenceRef.Methods inherited from class org.pathvisio.libgpml.model.PathwayElement.InfoRef
getTopPathwayElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
evidence
-
evidenceable
-
-
Constructor Details
-
EvidenceRef
Instantiates an EvidenceRef given sourceEvidenceand initializes evidenceRefs lists.- Parameters:
evidence- the source evidence this EvidenceRef refers to.
-
-
Method Details
-
getEvidence
Returns the evidence referenced.- Returns:
- evidence the evidence referenced.
-
hasEvidence
public boolean hasEvidence()Checks whether this evidenceRef has a source evidence.- Returns:
- true if and only if the evidence of this evidenceRef is effective.
-
setEvidenceTo
Sets the source evidence for this evidenceRef. Adds this evidencRef to the source evidence.- Parameters:
evidence- the given source evidence to set.
-
setEvidence
Sets the source evidence for this evidenceRef.- Parameters:
v- the given source evidence to set.
-
unsetEvidence
public void unsetEvidence()Unsets the evidence, if any, from this evidenceRef. Removes this evidenceRef from the source evidence. -
getEvidenceable
Returns the target pathway, pathway element, or evidenceRefReferenceable.Evidenceablefor this evidenceRef.- Returns:
- evidenceable the target of the evidenceRef.
-
hasEvidenceable
public boolean hasEvidenceable()Checks whether this evidenceRef has a target evidenceable.- Returns:
- true if and only if the evidenceable of this evidenceRef is effective.
-
setEvidenceableTo
Sets the target pathway, pathway element, or evidenceRefReferenceable.Evidenceablefor this evidenceRef. NB: Evidenceable is only set when an Evidenceable adds a EvidenceRef. This method is not used directly.- Parameters:
evidenceable- the given target evidenceable to set.
-
setEvidenceable
Sets the target pathway, pathway element, or evidenceRefReferenceable.Evidenceableto which the evidenceRef belongs.- Parameters:
v- the given target evidenceable to set.
-
unsetEvidenceable
protected void unsetEvidenceable()Unsets the evidenceable, if any, from this evidenceRef. NB: This method is not used directly. -
terminate
protected void terminate()Terminates this evidenceRef. The evidence and evidenceable, if any, are unset from this evidenceRef. Links to all evidenceRefs are removed from this evidenceRef. -
toString
public java.lang.String toString()Writes evidenceRef out as string.- Overrides:
toStringin classjava.lang.Object
-