plugins.adufour.vars.lang
Class VarObject

java.lang.Object
  extended by plugins.adufour.vars.lang.Var<java.lang.Object>
      extended by plugins.adufour.vars.lang.VarObject
All Implemented Interfaces:
icy.file.xml.XMLPersistent, VarListener<java.lang.Object>

public class VarObject
extends Var<java.lang.Object>


Field Summary
 
Fields inherited from class plugins.adufour.vars.lang.Var
listeners, NO_VALUE, type, XML_KEY_ID
 
Constructor Summary
VarObject(java.lang.String name, java.lang.Object defaultValue)
           
 
Method Summary
 boolean isAssignableFrom(Var<?> source)
          Checks whether the type of the given variable is equal or extends this variable's type.
If the result is true, then the given variable can become a link source for this variable
 
Methods inherited from class plugins.adufour.vars.lang.Var
addListener, createVarEditor, createVarViewer, fireVariableChanged, fireVariableChanged, getDefaultEditorModel, getDefaultValue, getIterableReferrers, getName, getReference, getReferencingPolicy, getReferrers, getType, getTypeAsString, getValue, getValue, getValueAsString, getValueAsString, isEnabled, isOptional, isReferenced, loadFromXML, parse, prettyPrint, referenceChanged, removeListener, removeListeners, saveToXML, setDefaultEditorModel, setEnabled, setOptional, setReference, setReferencingPolicy, setValue, toString, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VarObject

public VarObject(java.lang.String name,
                 java.lang.Object defaultValue)
Method Detail

isAssignableFrom

public boolean isAssignableFrom(Var<?> source)
Description copied from class: Var
Checks whether the type of the given variable is equal or extends this variable's type.
If the result is true, then the given variable can become a link source for this variable

Overrides:
isAssignableFrom in class Var<java.lang.Object>
Returns:
true if the source type is equal or wider than this variable's type, false otherwise (including if source has null type)