com.arsdigita.formbuilder.parameters
Class PersistentStringInRangeValidationListener

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.PersistentStringInRangeValidationListener

public abstract class PersistentStringInRangeValidationListener
extends PersistentParameterListener

Validates that a string has a particular minimum and maximum length.

Version:
$Id: //core-platform/dev/src/com/arsdigita/formbuilder/parameters/PersistentStringInRangeValidationListener.java#10 $
Author:
Peter Marklund

Field Summary
static String BASE_DATA_OBJECT_TYPE
          The fully qualified name of the underlying DataObject of this class.
static String versionId
           
 
Fields inherited from class com.arsdigita.kernel.ACSObject
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE
 
Constructor Summary
PersistentStringInRangeValidationListener(BigDecimal id)
          Constructor for retrieving a persistent parameter listener from the database
PersistentStringInRangeValidationListener(DataObject obj)
           
PersistentStringInRangeValidationListener(int minLength, int maxLength)
          Constructor for creating a new listener that can be persisted
 
Method Summary
 ParameterListener createListener()
          Factory method that creates the Bebop component whose persistence is handled by this domain object.
 int getMaxLength()
           
 int getMinLength()
           
 void setMaxLength(int maxLength)
           
 void setMinLength(int minLength)
           
 
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, isContainerModified, 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

versionId

public static final String versionId
See Also:
Constant Field Values

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
The fully qualified name of the underlying DataObject of this class.

See Also:
Constant Field Values
Constructor Detail

PersistentStringInRangeValidationListener

public PersistentStringInRangeValidationListener(int minLength,
                                                 int maxLength)
Constructor for creating a new listener that can be persisted


PersistentStringInRangeValidationListener

public PersistentStringInRangeValidationListener(BigDecimal id)
                                          throws DataObjectNotFoundException
Constructor for retrieving a persistent parameter listener from the database


PersistentStringInRangeValidationListener

public PersistentStringInRangeValidationListener(DataObject obj)
Method Detail

createListener

public ParameterListener createListener()
Factory method that creates the Bebop component whose persistence is handled by this domain object.

Overrides:
createListener in class PersistentParameterListener

setMinLength

public void setMinLength(int minLength)

getMinLength

public int getMinLength()

setMaxLength

public void setMaxLength(int maxLength)

getMaxLength

public int getMaxLength()


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