com.arsdigita.bebop.parameters
Class LongParameter

java.lang.Object
  extended bycom.arsdigita.bebop.parameters.ParameterModel
      extended bycom.arsdigita.bebop.parameters.NumberParameter
          extended bycom.arsdigita.bebop.parameters.LongParameter
All Implemented Interfaces:
Lockable

public class LongParameter
extends NumberParameter

A class that represents the model for number form parameters.

Version:
$Id: //core-platform/dev/src/com/arsdigita/bebop/parameters/LongParameter.java#7 $
Author:
Randy Graebner (randyg@alum.mit.edu)

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.parameters.ParameterModel
m_defaultValue, m_locked, m_name, m_parameterListeners
 
Constructor Summary
LongParameter(String name)
           
 
Method Summary
 Class getValueClass()
          Return the class that all values produced by the model will have.
 Object unmarshal(String encoded)
          Reconstruct the parameter value from an encoded string produced by marshal.
 
Methods inherited from class com.arsdigita.bebop.parameters.NumberParameter
transformValue
 
Methods inherited from class com.arsdigita.bebop.parameters.ParameterModel
addParameterListener, createParameterData, createParameterData, createParameterData, getDefaultOverridesNull, getDefaultValue, getName, isLocked, isPassIn, lock, marshal, setDefaultOverridesNull, setDefaultValue, setName, setPassIn, transformSingleValue, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

LongParameter

public LongParameter(String name)
Method Detail

unmarshal

public Object unmarshal(String encoded)
Description copied from class: ParameterModel
Reconstruct the parameter value from an encoded string produced by marshal. This is an optional operation, which needs to be implemented by specific subclasses; this implementation just throws an UnsupportedOperationException.

The contract between marshal and unmarshal is that for any possible object obj this parameter model can produce obj.equals(unmarshal(marshal(obj)).

Overrides:
unmarshal in class NumberParameter

getValueClass

public Class getValueClass()
Description copied from class: ParameterModel
Return the class that all values produced by the model will have. This should be the most specific common base class of all classes of which the model will ever produce values. This implementation returns Object.class

Overrides:
getValueClass in class NumberParameter


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