ch.systemsx.cisd.openbis.generic.shared.api.v1.dto
Class PropertyType

java.lang.Object
  extended by ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.PropertyType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ControlledVocabularyPropertyType

@JsonObject(value="PropertyType")
public class PropertyType
extends java.lang.Object
implements java.io.Serializable

Immutable value object representing a property type.

See Also:
Serialized Form

Nested Class Summary
static class PropertyType.PropertyTypeInitializer
          Class used to initialize a new data set instance.
 
Constructor Summary
PropertyType(PropertyType.PropertyTypeInitializer initializer)
          Creates a new instance with the provided initializer
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCode()
          Return the code of this property type.
 ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataTypeCode getDataType()
           
 java.lang.String getDescription()
          Return the extended description.
 java.lang.String getLabel()
          Return the label shown in forms.
 int hashCode()
           
 boolean isMandatory()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyType

public PropertyType(PropertyType.PropertyTypeInitializer initializer)
Creates a new instance with the provided initializer

Throws:
java.lang.IllegalArgumentException - if some of the required information is not provided.
Method Detail

getDataType

public ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataTypeCode getDataType()

getCode

public java.lang.String getCode()
Return the code of this property type.


getLabel

public java.lang.String getLabel()
Return the label shown in forms.


getDescription

public java.lang.String getDescription()
Return the extended description. May be null.


isMandatory

public boolean isMandatory()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object