Class MaterialImmutable

    • Constructor Summary

      Constructors 
      Constructor Description
      MaterialImmutable​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material material)  
      MaterialImmutable​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material material, boolean existingMaterial)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkExists()
      Throw an exception if the sample does not exist
      boolean equals​(java.lang.Object obj)  
      java.lang.String getCode()
      Return the code for this material.
      IObjectId getEntityId()  
      ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material getMaterial()  
      java.lang.String getMaterialIdentifier()
      Return the identifier for this material.
      java.lang.String getMaterialType()
      Return the type for this material.
      java.lang.String getPropertyValue​(java.lang.String propertyCode)
      Return the value of a property specified by a code.
      boolean isExistingMaterial()
      Return true if the material exists in the database.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MaterialImmutable

        public MaterialImmutable​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material material)
      • MaterialImmutable

        public MaterialImmutable​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material material,
                                 boolean existingMaterial)
    • Method Detail

      • getMaterial

        public ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material getMaterial()
      • checkExists

        protected void checkExists()
        Throw an exception if the sample does not exist
      • getPropertyValue

        public java.lang.String getPropertyValue​(java.lang.String propertyCode)
        Description copied from interface: IMaterialImmutable
        Return the value of a property specified by a code. May return null of no such property with code propertyCode is found.
        Specified by:
        getPropertyValue in interface IMaterialImmutable
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object