UniVista.beans
Class ArrayVariable

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

public class ArrayVariable
extends VariableBean

Used to hold arrays of UniVista objects.

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
ArrayVariable()
          creates a default Array object defaulted to 0
ArrayVariable(ArrayWrapper initialVal)
          creates a Array initialized to the argument
 
Method Summary
 java.lang.Object clone()
          adds replication of the values of the Array
 void duplicate(ArrayVariable toDup)
          adds duplication of the Array 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 Array
 VariableBean getArrayType()
           
 java.lang.Object getValue()
          Exports the value of the object.
 void setArrayType(VariableBean theBean)
           
 void setValue(ArrayWrapper newArray)
          Import a value with the ArrayWrapper datatype.
 void setValue(java.lang.Object obj)
          Imports the value as an Object, which should be castable to Array.
 void setValue(java.lang.String strng)
           
 java.lang.String toString()
          convert the object to a string format
 java.lang.String valOk(ArrayWrapper theWrapper)
           
 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

ArrayVariable

public ArrayVariable()
creates a default Array object defaulted to 0

ArrayVariable

public ArrayVariable(ArrayWrapper initialVal)
creates a Array initialized to the argument
Method Detail

getArrayType

public VariableBean getArrayType()

setArrayType

public void setArrayType(VariableBean theBean)

clone

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

duplicate

public void duplicate(ArrayVariable toDup)
adds duplication of the Array 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 Array
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 Array.
Overrides:
setValue in class VariableBean
See Also:
TypedVariable

setValue

public void setValue(ArrayWrapper newArray)
Import a value with the ArrayWrapper datatype.

setValue

public void setValue(java.lang.String strng)
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(ArrayWrapper theWrapper)

valOk

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