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 Evidence
evidence
private Referenceable.Evidenceable
evidenceable
-
Constructor Summary
Constructors Modifier Constructor Description protected
EvidenceRef(Evidence evidence)
Instantiates an EvidenceRef given sourceEvidence
and initializes evidenceRefs lists. -
Method Summary
Modifier and Type Method Description Evidence
getEvidence()
Returns the evidence referenced.Referenceable.Evidenceable
getEvidenceable()
Returns the target pathway, pathway element, or evidenceRefReferenceable.Evidenceable
for this evidenceRef.boolean
hasEvidence()
Checks whether this evidenceRef has a source evidence.boolean
hasEvidenceable()
Checks whether this evidenceRef has a target evidenceable.private void
setEvidence(Evidence v)
Sets the source evidence for this evidenceRef.private void
setEvidenceable(Referenceable.Evidenceable v)
Sets the target pathway, pathway element, or evidenceRefReferenceable.Evidenceable
to which the evidenceRef belongs.protected void
setEvidenceableTo(Referenceable.Evidenceable evidenceable)
Sets the target pathway, pathway element, or evidenceRefReferenceable.Evidenceable
for this evidenceRef.void
setEvidenceTo(Evidence evidence)
Sets the source evidence for this evidenceRef.protected void
terminate()
Terminates this evidenceRef.java.lang.String
toString()
Writes evidenceRef out as string.void
unsetEvidence()
Unsets the evidence, if any, from this evidenceRef.protected void
unsetEvidenceable()
Unsets the evidenceable, if any, from this evidenceRef.Methods inherited from class org.pathvisio.libgpml.model.PathwayElement.InfoRef
getTopPathwayElement
Methods 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 sourceEvidence
and 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.Evidenceable
for 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.Evidenceable
for 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.Evidenceable
to 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:
toString
in classjava.lang.Object
-