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

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.IntegerConstant
All Implemented Interfaces:
IUISocketElement, java.lang.Cloneable

public class IntegerConstant
extends UISocketConstant

IntegerConstant is a specialized version of a UISocketConstant that deals specifically with integers.

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
IntegerConstant()
          Creates a new IntegerConstant instance.
IntegerConstant(UISocket socket)
          Creates a new IntegerConstant instance.
IntegerConstant(UISocketDocument parent, UISocket socket, org.w3c.dom.Element rootElement)
          Creates a new IntegerConstant instance.
 
Method Summary
 IntegerConstant 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

IntegerConstant

public IntegerConstant()
Creates a new IntegerConstant instance.


IntegerConstant

public IntegerConstant(UISocket socket)
Creates a new IntegerConstant instance.

Parameters:
socket - an UISocket value

IntegerConstant

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

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

clone

public IntegerConstant 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.