com.dynamide.datatypes
Class Datatype

java.lang.Object
  extended by com.dynamide.DynamideObject
      extended by com.dynamide.datatypes.Datatype
All Implemented Interfaces:
IGet
Direct Known Subclasses:
BooleanDatatype, ColumnDatatype, EnumeratedDatatype, ExpandableDatatype, FieldDatatype, IntegerDatatype, LinkOptions, PublishParamsDatatype, SloppyBooleanDatatype, StringDatatype

public abstract class Datatype
extends DynamideObject


Field Summary
 
Fields inherited from class com.dynamide.DynamideObject
m_id
 
Constructor Summary
Datatype()
           
Datatype(DynamideObject owner, Session session)
           
 
Method Summary
abstract  void addXMLContentTo(org.jdom.Element container)
           
 java.lang.Object clone()
           
protected  Datatype createClone()
          subclasses can override and replace
 java.lang.String dump()
          Subclasses can override this with something more descriptive, for logging and debugging.
 java.lang.String dumpHTML()
          Subclasses can override this with something more descriptive, for logging and debugging.
 void finalize()
           
 java.lang.Object get(java.lang.String what)
          Subclasses can override this.
 java.lang.String getAsStored(java.lang.String what)
           
 java.lang.String getDatatypeClassName()
           
static java.lang.String getDatatypeClassName(Datatype dt)
           
static java.lang.String getDatatypeClassName(java.lang.String datatype)
           
static Datatype getDatatypeInstance(DynamideObject owner, java.lang.String datatype, Session session)
           
 Property getProperty()
           
 Session getSession()
           
 void init(org.jdom.Element element, java.lang.String ownerID)
           
protected  void insertItemDatatype(org.jdom.Element item, Datatype dt)
           
 void set(java.lang.String what, java.lang.String value)
           
 void setProperty(Property new_value)
           
 void setSession(Session new_value)
           
 ValidationResult validate()
           
 
Methods inherited from class com.dynamide.DynamideObject
clearProfiler, dump, expand, findParentExpander, findParentPage, findParentSession, findTopParentPage, getCategoryID, getDotName, getID, getNextGetter, getObjectID, getOwner, getProfiler, isDebugEnabled, isInfoEnabled, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logWarn, logWarn, logWarn, logWarn, popLogContext, printf, printProfiler, profileEnter, profileLeave, pushLogContext, setDotName, setID, setNextGetter, setObjectID, setOwner, sprintf, useProfiler, walkParents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Datatype

public Datatype()

Datatype

public Datatype(DynamideObject owner,
                Session session)
Method Detail

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class DynamideObject
Throws:
java.lang.Throwable

getDatatypeInstance

public static Datatype getDatatypeInstance(DynamideObject owner,
                                           java.lang.String datatype,
                                           Session session)

getDatatypeClassName

public static java.lang.String getDatatypeClassName(java.lang.String datatype)
Parameters:
datatype - You would get this by calling String datatype = property.get("datatype");
Returns:
The class name of a com.dynamide.datatypesDatatype subclass wrapper or implementor, defaulting to com.dynamide.datatypes.StringDatatype if not known.

getDatatypeClassName

public static java.lang.String getDatatypeClassName(Datatype dt)

getDatatypeClassName

public java.lang.String getDatatypeClassName()

insertItemDatatype

protected void insertItemDatatype(org.jdom.Element item,
                                  Datatype dt)

init

public void init(org.jdom.Element element,
                 java.lang.String ownerID)
          throws DatatypeException
Throws:
DatatypeException

addXMLContentTo

public abstract void addXMLContentTo(org.jdom.Element container)

createClone

protected Datatype createClone()
subclasses can override and replace


clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getSession

public Session getSession()

setSession

public void setSession(Session new_value)

getProperty

public Property getProperty()

setProperty

public void setProperty(Property new_value)

dumpHTML

public java.lang.String dumpHTML()
Description copied from class: DynamideObject
Subclasses can override this with something more descriptive, for logging and debugging.

Overrides:
dumpHTML in class DynamideObject

dump

public java.lang.String dump()
Description copied from class: DynamideObject
Subclasses can override this with something more descriptive, for logging and debugging.

Overrides:
dump in class DynamideObject

getAsStored

public java.lang.String getAsStored(java.lang.String what)

get

public java.lang.Object get(java.lang.String what)
Description copied from class: DynamideObject
Subclasses can override this.

Specified by:
get in interface IGet
Overrides:
get in class DynamideObject

set

public void set(java.lang.String what,
                java.lang.String value)

validate

public ValidationResult validate()


Copyright 2001-2013 DYNAMIDE.COM. All Rights Reserved.