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

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

public class IntegerConstant
extends NumberConstant

IntegerConstant is the number variant of UISocketStatic. It provides special handling for integer values. It serves as the xsd:integer type. Created on: May 26, 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
IntegerConstant()
          Creates a new IntegerConstant instance.
IntegerConstant(UISocketDocument parent, UISocketMirror socket, org.w3c.dom.Element rootElement)
          Creates a new IntegerConstant instance.
IntegerConstant(UISocketMirror socket)
          Creates a new IntegerConstant instance.
 
Method Summary
 IntegerConstant 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

IntegerConstant

public IntegerConstant()
Creates a new IntegerConstant instance.


IntegerConstant

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

Parameters:
socket - an UISocket value

IntegerConstant

public IntegerConstant(UISocketDocument parent,
                       UISocketMirror 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()
Describe clone method here.

Specified by:
clone in interface IUISocketElement
Overrides:
clone in class NumberConstant
Returns:
an IntegerConstant 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
Returns:
a double object if value is a valid double input


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