com.partnersoft.data.cog
Class CogPrimitiveType

java.lang.Object
  extended by com.partnersoft.data.cog.CogDatatype
      extended by com.partnersoft.data.cog.CogPrimitiveType
All Implemented Interfaces:
java.lang.Comparable

public class CogPrimitiveType
extends CogDatatype

This represents the metadata for a primitive Cog field.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Constructor Summary
CogPrimitiveType()
           
 
Method Summary
 java.lang.Object createValue(CogDataDictionary dataDictionary)
          Create a new Cog that fits this datatype, with appropriate defaults, etc.
 java.util.Set getAvailableValues()
          If the field represents an enumerated type, this is the list of values.
 java.lang.String getControlType()
          Abstract name for the kind of control used to edit or view the value.
 java.lang.String getDefaultValue()
          Default value for the field.
 java.lang.String getStorageType()
          Abstract type that defines how the contents are stored, e.g.
 void setAvailableValues(java.util.Set argAvailableValues)
           
 void setControlType(java.lang.String argControlType)
           
 void setDefaultValue(java.lang.String argDefaultValue)
           
 void setStorageType(java.lang.String argStorageType)
           
 
Methods inherited from class com.partnersoft.data.cog.CogDatatype
compareTo, getCategory, getDescription, getLabel, getName, getOrder, getProperties, getReadOnlyGroups, getReadWriteGroups, getValidationRules, setCategory, setDescription, setLabel, setName, setOrder, setProperties, setReadOnlyGroups, setReadWriteGroups, setValidationRules, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CogPrimitiveType

public CogPrimitiveType()
Method Detail

createValue

public java.lang.Object createValue(CogDataDictionary dataDictionary)
Description copied from class: CogDatatype
Create a new Cog that fits this datatype, with appropriate defaults, etc. A data dictionary is provided for resolving datatypes of properties or contents.

Specified by:
createValue in class CogDatatype

getStorageType

public java.lang.String getStorageType()
Abstract type that defines how the contents are stored, e.g. in a database or binary file. Valid values are:


setStorageType

public void setStorageType(java.lang.String argStorageType)

getControlType

public java.lang.String getControlType()
Abstract name for the kind of control used to edit or view the value. Actual behavior will depend on the context - e.g. Java, PDA, web, or print. Valid values are:


setControlType

public void setControlType(java.lang.String argControlType)

getDefaultValue

public java.lang.String getDefaultValue()
Default value for the field.


setDefaultValue

public void setDefaultValue(java.lang.String argDefaultValue)

getAvailableValues

public java.util.Set getAvailableValues()
If the field represents an enumerated type, this is the list of values. Generally controlType should be drop-down, combo, or list.


setAvailableValues

public void setAvailableValues(java.util.Set argAvailableValues)