com.arsdigita.formbuilder.parameters
Class TextValidationListener

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.domain.ObservableDomainObject
          extended bycom.arsdigita.kernel.ACSObject
              extended bycom.arsdigita.formbuilder.parameters.PersistentParameterListener
                  extended bycom.arsdigita.formbuilder.parameters.TextValidationListener

public class TextValidationListener
extends PersistentParameterListener


Field Summary
static String BASE_DATA_OBJECT_TYPE
           
static Integer TYPE_EMAIL
           
static Integer TYPE_FLOAT
           
static Integer TYPE_INTEGER
           
static Integer TYPE_SINGLE_LINE
           
static Integer TYPE_URL
           
static Integer TYPE_WORD
           
 
Fields inherited from class com.arsdigita.formbuilder.parameters.PersistentParameterListener
versionId
 
Fields inherited from class com.arsdigita.kernel.ACSObject
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE
 
Constructor Summary
TextValidationListener(BigDecimal id)
           
TextValidationListener(DataObject obj)
           
TextValidationListener(Integer type)
           
TextValidationListener(OID oid)
           
TextValidationListener(String objectType)
           
 
Method Summary
static Integer classNameToType(String className)
           
 ParameterListener createListener()
          Factory method that creates the Bebop component whose persistence is handled by this domain object.
 Integer getValidationType()
           
static String getValidationTypeName(Integer type)
           
static Integer[] getValidationTypes()
           
 boolean isContainerModified()
          Returns true if this object has been moved to a new container, or null if the container has not changed.
 void setValidationType(Integer type)
           
static String typeToClassName(Integer type)
           
 
Methods inherited from class com.arsdigita.formbuilder.parameters.PersistentParameterListener
beforeSave, getClassName, getListenerAttribute, setClassName, setListenerAttribute
 
Methods inherited from class com.arsdigita.kernel.ACSObject
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getBaseDataObjectType, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, initialize, setID, setID
 
Methods inherited from class com.arsdigita.domain.ObservableDomainObject
addObserver, getObservers
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
See Also:
Constant Field Values

TYPE_WORD

public static final Integer TYPE_WORD

TYPE_SINGLE_LINE

public static final Integer TYPE_SINGLE_LINE

TYPE_EMAIL

public static final Integer TYPE_EMAIL

TYPE_INTEGER

public static final Integer TYPE_INTEGER

TYPE_FLOAT

public static final Integer TYPE_FLOAT

TYPE_URL

public static final Integer TYPE_URL
Constructor Detail

TextValidationListener

public TextValidationListener(BigDecimal id)
                       throws DataObjectNotFoundException

TextValidationListener

public TextValidationListener(OID oid)
                       throws DataObjectNotFoundException

TextValidationListener

public TextValidationListener(String objectType)

TextValidationListener

public TextValidationListener(DataObject obj)

TextValidationListener

public TextValidationListener(Integer type)
Method Detail

isContainerModified

public boolean isContainerModified()
Description copied from class: ACSObject
Returns true if this object has been moved to a new container, or null if the container has not changed. This methods is used by ACSObject.save() to determine when to denormalize the result of getContainer(). While this method is not abstract, the default implementation "guesses" the container based on metadata about the object. If this object's data object type has a composite role property (required, visible property where com.arsdigita.persistence.metadata.Property.isComposite()==true), then we check whether the composite role property has been modified. If no composite role is found, then the return value is false. Subclasses should provide their own implementations if the metadata driven default implementation is inadequate. See the example mentioned in getContainer().

Overrides:
isContainerModified in class ACSObject
Returns:
this object's container.
See Also:
ACSObject.getContainer()

setValidationType

public void setValidationType(Integer type)

getValidationType

public Integer getValidationType()

classNameToType

public static Integer classNameToType(String className)

typeToClassName

public static String typeToClassName(Integer type)

getValidationTypes

public static Integer[] getValidationTypes()

getValidationTypeName

public static String getValidationTypeName(Integer type)

createListener

public ParameterListener createListener()
Description copied from class: PersistentParameterListener
Factory method that creates the Bebop component whose persistence is handled by this domain object.

Overrides:
createListener in class PersistentParameterListener


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC