edu.wisc.trace.urcsdk.client.uisocket.types
Class DecimalConstant

java.lang.Object
  extended by edu.wisc.trace.urcsdk.client.uisocket.types.AbstractUISocketElement
      extended by edu.wisc.trace.urcsdk.client.uisocket.types.UISocketConstant
          extended by edu.wisc.trace.urcsdk.client.uisocket.types.NumberConstant
              extended by edu.wisc.trace.urcsdk.client.uisocket.types.DecimalConstant
All Implemented Interfaces:
IUISocketElement, java.lang.Cloneable

public class DecimalConstant
extends NumberConstant

DecimalConstant is the number variant of UISocketStatic. It provides special handling for decimal values. It serves as the xsd:decimal type. Created on: May 25, 2006

Version:
$Revision: 1.7 $
Author:
Hemanth vijayan , Trace R&D Center

Field Summary
 
Fields inherited from class edu.wisc.trace.urcsdk.client.uisocket.types.AbstractUISocketElement
dependents, id, interactor, listeners, logger, parent, ref, secret, sensitive, session, sessionId, simpleType, socket, socketDependency, supports, timeout, type, value
 
Constructor Summary
DecimalConstant()
          Creates a new DecimalConstant instance.
DecimalConstant(UISocketDocument parent, UISocketMirror socket, org.w3c.dom.Element rootElement)
          Creates a new DecimalConstant instance.
DecimalConstant(UISocketMirror socket)
          Creates a new DecimalConstant instance.
 
Method Summary
 DecimalConstant clone()
          Describe clone method here.
 double getMaxInclusive()
          getMaxInclusive gets the highest allowable number (inclusive)
 double getMinInclusive()
          getMinInclusive gets the lowest allowed number (inclusive)
 double getStep()
          getStep the distance between each allowed number
 void parse(org.w3c.dom.Element rootElement)
          Describe parse method here.
 java.lang.Object validate(java.lang.String value)
           
 
Methods inherited from class edu.wisc.trace.urcsdk.client.uisocket.types.UISocketConstant
hasSelection, isExecutable, isReadable, isWritable, setValue, setValueRequest, updateValue
 
Methods inherited from class edu.wisc.trace.urcsdk.client.uisocket.types.AbstractUISocketElement
checkDependencies, checkDependents, getAccessKey, getDependents, getHelp, getId, getInteractor, getKeywords, getLabel, getParent, getRef, getResource, getSecret, getSession, getSocket, getSocketDependency, getSupports, getType, getValue, getXSDSimpleType, registerDependent, registerSupport, setInteractor, setListener, setParent, setSession, setSessionId, setSocket, setXSDSimpleType, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecimalConstant

public DecimalConstant()
Creates a new DecimalConstant instance.


DecimalConstant

public DecimalConstant(UISocketMirror socket)
Creates a new DecimalConstant instance.

Parameters:
socket - an UISocket value

DecimalConstant

public DecimalConstant(UISocketDocument parent,
                       UISocketMirror socket,
                       org.w3c.dom.Element rootElement)
                throws UrcException
Creates a new DecimalConstant instance.

Parameters:
parent - an UISocketDocument value
socket - an UISocket value
rootElement - an Element value
Throws:
UrcException - if an error occurs
Method Detail

clone

public DecimalConstant clone()
Describe clone method here.

Specified by:
clone in interface IUISocketElement
Overrides:
clone in class NumberConstant
Returns:
a DecimalConstant value

getMinInclusive

public double getMinInclusive()
getMinInclusive gets the lowest allowed number (inclusive)

Overrides:
getMinInclusive in class NumberConstant
Returns:
a double value

getMaxInclusive

public double getMaxInclusive()
getMaxInclusive gets the highest allowable number (inclusive)

Overrides:
getMaxInclusive in class NumberConstant
Returns:
a double value

parse

public void parse(org.w3c.dom.Element rootElement)
           throws UrcException
Description copied from class: UISocketConstant
Describe parse method here.

Specified by:
parse in interface IUISocketElement
Overrides:
parse in class NumberConstant
Parameters:
rootElement - an Element value
Throws:
UrcException - if an error occurs

getStep

public double getStep()
getStep the distance between each allowed number

Overrides:
getStep in class NumberConstant
Returns:
a double value

validate

public java.lang.Object validate(java.lang.String value)
Overrides:
validate in class NumberConstant
Parameters:
value -
Returns:
the decimal value if it's valid else null


Copyright © 2006 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.