Class QuantitationTypeValueObject

java.lang.Object
ubic.gemma.model.common.IdentifiableValueObject<QuantitationType>
ubic.gemma.model.common.quantitationtype.QuantitationTypeValueObject
All Implemented Interfaces:
Serializable, Identifiable

public class QuantitationTypeValueObject extends IdentifiableValueObject<QuantitationType>
Value object for the QuantitationType.

If expressionExperimentId is set, then this QT is EE-associated, and can be distinguished from other QTs with the same ID used in different experiments as per equals(Object) and hashCode(). In this case, the vectorType is also known, but could be null.

Author:
thea
See Also:
  • Constructor Details

    • QuantitationTypeValueObject

      public QuantitationTypeValueObject()
    • QuantitationTypeValueObject

      public QuantitationTypeValueObject(QuantitationType qt)
    • QuantitationTypeValueObject

      public QuantitationTypeValueObject(QuantitationType qt, ExpressionExperiment expressionExperiment, @Nullable Class<? extends DataVector> vectorType)
      Create a QuantitationType VO in the context of an associated experiment.

      Note that an associated EE does not imply that the QT is used in processed/raw vectors. There are generic QTs to represent data transformation such as masking that require no storage of vectors.

      Parameters:
      expressionExperiment - associated experiment
      vectorType - vector type if applicable, otherwise null
  • Method Details

    • getIsBackground

      public boolean getIsBackground()
    • setIsBackground

      public void setIsBackground(boolean isBackground)
    • getIsBackgroundSubtracted

      public boolean getIsBackgroundSubtracted()
    • setIsBackgroundSubtracted

      public void setIsBackgroundSubtracted(boolean isBackgroundSubtracted)
    • getIsBatchCorrected

      public boolean getIsBatchCorrected()
    • setIsBatchCorrected

      public void setIsBatchCorrected(boolean isBatchCorrected)
    • getIsNormalized

      public boolean getIsNormalized()
    • setIsNormalized

      public void setIsNormalized(boolean isNormalized)
    • getIsRatio

      public boolean getIsRatio()
    • setIsRatio

      public void setIsRatio(boolean isRatio)
    • getIsRecomputedFromRawData

      public boolean getIsRecomputedFromRawData()
    • setIsRecomputedFromRawData

      public void setIsRecomputedFromRawData(boolean isRecomputedFromRawData)
    • getIsPreferred

      public boolean getIsPreferred()
    • setIsPreferred

      public void setIsPreferred(boolean isPreferred)
    • getIsMaskedPreferred

      @Deprecated public boolean getIsMaskedPreferred()
      Deprecated.
    • setIsMaskedPreferred

      @Deprecated public void setIsMaskedPreferred(boolean isMaskedPreferred)
      Deprecated.
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • getGeneralType

      public String getGeneralType()
    • getType

      public String getType()
    • getRepresentation

      public String getRepresentation()
    • getScale

      public String getScale()
    • getExpressionExperimentId

      public Long getExpressionExperimentId()
      Associated expression experiment ID.

      This is unnecessary in the context of the RESTful API because vector types are always retrieved when the associated ExpressionExperiment is known.

    • getVectorType

      @Nullable public String getVectorType()
      Vector type this QT is associated to.

      This only makes sense in the context of an associated EE.

    • setName

      public void setName(String name)
    • setDescription

      public void setDescription(String description)
    • setGeneralType

      public void setGeneralType(String generalType)
    • setType

      public void setType(String type)
    • setRepresentation

      public void setRepresentation(String representation)
    • setScale

      public void setScale(String scale)
    • setExpressionExperimentId

      public void setExpressionExperimentId(Long expressionExperimentId)
      Associated expression experiment ID.

      This is unnecessary in the context of the RESTful API because vector types are always retrieved when the associated ExpressionExperiment is known.

    • setVectorType

      public void setVectorType(@Nullable String vectorType)
      Vector type this QT is associated to.

      This only makes sense in the context of an associated EE.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class IdentifiableValueObject<QuantitationType>
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class IdentifiableValueObject<QuantitationType>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class IdentifiableValueObject<QuantitationType>
    • toString

      public String toString()
      Overrides:
      toString in class IdentifiableValueObject<QuantitationType>