edu.wisc.trace.urcsdk.target.uisocket
Class DecimalConstant

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

public class DecimalConstant
extends UISocketConstant

DecimalConstant is a specialized version of a UISocketVariable that deals specifically with decimals.

Version:
$Revision: 1.7 $
Author:
Hemanth Vijayan, Trace R&D Center Created on: May 25, 2006

Field Summary
 
Fields inherited from class edu.wisc.trace.urcsdk.target.uisocket.AbstractUISocketElement
id, logger, ref, secret, sensitive, session, socket, socketDocument, timeout, type, value
 
Constructor Summary
DecimalConstant()
          Creates a new DecimalConstant instance.
DecimalConstant(UISocket socket)
          Creates a new DecimalConstant instance.
DecimalConstant(UISocketDocument parent, UISocket socket, org.w3c.dom.Element rootElement)
          Creates a new DecimalConstant instance.
 
Method Summary
 DecimalConstant clone()
          Returnes a copy of the object
 double getMaxInclusive()
          Returns the maximum inclusive value for this variable.
 double getMinInclusive()
          Returns the minimum inclusive value for this variable.
 double getStep()
          Returns the of this variable.
 void parse(org.w3c.dom.Element rootElement)
          Parses the given element for the data required to create a UISocketElement
 java.lang.Object validate(java.lang.String value)
           
 
Methods inherited from class edu.wisc.trace.urcsdk.target.uisocket.UISocketConstant
hasSelection, internalSetValue, isWritable, setValue
 
Methods inherited from class edu.wisc.trace.urcsdk.target.uisocket.AbstractUISocketElement
getId, getRef, getSession, getSocket, getSocketDocument, getType, getValue, setSession, setSocket, setSocketDocument, 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(UISocket socket)
Creates a new DecimalConstant instance.

Parameters:
socket - an UISocket value

DecimalConstant

public DecimalConstant(UISocketDocument parent,
                       UISocket 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()
Description copied from class: AbstractUISocketElement
Returnes a copy of the object

Specified by:
clone in interface IUISocketElement
Overrides:
clone in class UISocketConstant
Returns:
an Object value

getMinInclusive

public double getMinInclusive()
Returns the minimum inclusive value for this variable.

Returns:
a double value

getMaxInclusive

public double getMaxInclusive()
Returns the maximum inclusive value for this variable.

Returns:
a double value

parse

public void parse(org.w3c.dom.Element rootElement)
           throws UrcException
Description copied from class: AbstractUISocketElement
Parses the given element for the data required to create a UISocketElement

Specified by:
parse in interface IUISocketElement
Overrides:
parse in class UISocketConstant
Parameters:
rootElement - the Element object to parse
Throws:
UrcException - if an error occurs

getStep

public double getStep()
Returns the of this variable.

Returns:
a double object.

validate

public java.lang.Object validate(java.lang.String value)
Overrides:
validate in class UISocketConstant


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