.. java:import:: org.apache.commons.collections CollectionUtils .. java:import:: org.motechproject.mds.dto TypeDto .. java:import:: org.motechproject.mds.util TypeHelper .. java:import:: javax.jdo.annotations Element .. java:import:: javax.jdo.annotations IdGeneratorStrategy .. java:import:: javax.jdo.annotations IdentityType .. java:import:: javax.jdo.annotations Join .. java:import:: javax.jdo.annotations NotPersistent .. java:import:: javax.jdo.annotations PersistenceCapable .. java:import:: javax.jdo.annotations Persistent .. java:import:: javax.jdo.annotations PrimaryKey .. java:import:: java.util List Type ==== .. java:package:: org.motechproject.mds.domain :noindex: .. java:type:: @PersistenceCapable public class Type The \ ``Type``\ class contains information about a single type in mds system. The mds type can have a settings and validations that can be assigned to field with the same type. Constructors ------------ Type ^^^^ .. java:constructor:: public Type() :outertype: Type Type ^^^^ .. java:constructor:: public Type(Class typeClass) :outertype: Type Type ^^^^ .. java:constructor:: public Type(String displayName, String description, Class typeClass) :outertype: Type Methods ------- getDefaultName ^^^^^^^^^^^^^^ .. java:method:: public String getDefaultName() :outertype: Type getDescription ^^^^^^^^^^^^^^ .. java:method:: public String getDescription() :outertype: Type getDisplayName ^^^^^^^^^^^^^^ .. java:method:: public String getDisplayName() :outertype: Type getId ^^^^^ .. java:method:: public Long getId() :outertype: Type getSettings ^^^^^^^^^^^ .. java:method:: public List getSettings() :outertype: Type getTypeClass ^^^^^^^^^^^^ .. java:method:: public Class getTypeClass() :outertype: Type getTypeClassName ^^^^^^^^^^^^^^^^ .. java:method:: public String getTypeClassName() :outertype: Type getValidations ^^^^^^^^^^^^^^ .. java:method:: public List getValidations() :outertype: Type hasSettings ^^^^^^^^^^^ .. java:method:: public boolean hasSettings() :outertype: Type hasValidation ^^^^^^^^^^^^^ .. java:method:: public boolean hasValidation() :outertype: Type isBlob ^^^^^^ .. java:method:: public boolean isBlob() :outertype: Type isCombobox ^^^^^^^^^^ .. java:method:: public boolean isCombobox() :outertype: Type isRelationship ^^^^^^^^^^^^^^ .. java:method:: public boolean isRelationship() :outertype: Type parse ^^^^^ .. java:method:: @NotPersistent public Object parse(String str) :outertype: Type setDefaultName ^^^^^^^^^^^^^^ .. java:method:: public void setDefaultName(String defaultName) :outertype: Type setDescription ^^^^^^^^^^^^^^ .. java:method:: public void setDescription(String description) :outertype: Type setDisplayName ^^^^^^^^^^^^^^ .. java:method:: public void setDisplayName(String displayName) :outertype: Type setId ^^^^^ .. java:method:: public void setId(Long id) :outertype: Type setSettings ^^^^^^^^^^^ .. java:method:: public void setSettings(List settings) :outertype: Type setTypeClass ^^^^^^^^^^^^ .. java:method:: public void setTypeClass(Class typeClass) :outertype: Type setValidations ^^^^^^^^^^^^^^ .. java:method:: public void setValidations(List validations) :outertype: Type toDto ^^^^^ .. java:method:: public TypeDto toDto() :outertype: Type