UniVista.beans
Class StringVariable

java.lang.Object
  |
  +--UniVista.support.Variable
        |
        +--UniVista.beans.VariableBean
              |
              +--UniVista.beans.StringVariable
All Implemented Interfaces:
java.lang.Cloneable, ConsistencyCheck, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable, TypedVariable

public class StringVariable
extends VariableBean

A Bean used to hold and handle editing of String values inside of codes.

See Also:
Serialized Form

Fields inherited from class UniVista.beans.VariableBean
changeSupport, DEFAULT_DISPLAY, vetoSupport
 
Fields inherited from class UniVista.support.Variable
description, documentationURL, name, namelistGroup, type, typedVariable, typeNames, UV_ARRAY, UV_BOOLEAN, UV_COMPLEX, UV_FLOAT, UV_LONG, UV_SHORT, UV_STRING, UV_TYPE, variableOptionsUI, variableUI
 
Constructor Summary
StringVariable()
          creates a default String object defaulted to 0
StringVariable(java.lang.String initialVal)
          creates a String initialized to the argument
 
Method Summary
 java.lang.Object clone()
          adds replication of the values of the String
 void duplicate(StringVariable toDup)
          adds duplication of the String value
 void duplicate(Variable toDup)
          duplicate the information from another Variable into this one
 boolean equals(java.lang.Object obj)
          adds comparison of the values of the String
 java.lang.Object getValue()
          Exports the value of the object.
 void setValue(java.lang.Object obj)
          Imports the value as an Object, which should be castable to String.
 void setValue(java.lang.String newString)
          Import a value with the native datatype.
 java.lang.String stringValue()
           
 java.lang.String toString()
          convert the object to a string format
 java.lang.String valOk(java.lang.String theValue)
           
 
Methods inherited from class UniVista.beans.VariableBean
addDisplayBean, addPropertyChangeListener, addVetoableChangeListener, duplicate, getDisplayBean, getDisplayBeans, propertyChange, removePropertyChangeListener, removeVetoableChangeListener, setDescription, setDisplayBeans, setDisplayBeans, setDocumentationURL, setName, setNamelistGroup, setType
 
Methods inherited from class UniVista.support.Variable
consistencyCheck, getDescription, getDocumentationURL, getName, getNamelistGroup, getType, isLowerBoundEnabled, isTypedVariable, isUpperBoundEnabled, isVariableOptionsUI, isVariableUI, setLowerBound, setLowerBoundEnabled, setUpperBound, setUpperBoundEnabled
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringVariable

public StringVariable()
creates a default String object defaulted to 0

StringVariable

public StringVariable(java.lang.String initialVal)
creates a String initialized to the argument
Method Detail

clone

public java.lang.Object clone()
adds replication of the values of the String
Overrides:
clone in class Variable

duplicate

public void duplicate(StringVariable toDup)
adds duplication of the String value

duplicate

public void duplicate(Variable toDup)
Description copied from class: Variable
duplicate the information from another Variable into this one
Overrides:
duplicate in class Variable

equals

public boolean equals(java.lang.Object obj)
adds comparison of the values of the String
Overrides:
equals in class VariableBean

getValue

public java.lang.Object getValue()
Exports the value of the object.
Overrides:
getValue in class VariableBean
See Also:
TypedVariable

setValue

public void setValue(java.lang.Object obj)
              throws TypedVariableException
Imports the value as an Object, which should be castable to String.
Overrides:
setValue in class VariableBean
See Also:
TypedVariable

setValue

public void setValue(java.lang.String newString)
Import a value with the native datatype.
Overrides:
setValue in class VariableBean

toString

public java.lang.String toString()
convert the object to a string format
Overrides:
toString in class VariableBean

valOk

public java.lang.String valOk(java.lang.String theValue)
Overrides:
valOk in class VariableBean

stringValue

public java.lang.String stringValue()