org.norther.tammi.core.rt.util
Class EnumVariable

java.lang.Object
  extended by javax.management.Attribute
      extended by org.norther.tammi.core.rt.util.EnumAttribute
          extended by org.norther.tammi.core.rt.util.EnumIdentity
              extended by org.norther.tammi.core.rt.util.EnumVariable
All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class EnumVariable
extends EnumIdentity

Extends the enumerated identity by supporting variable instances as attribute values.

Note that the identity of the maintained variable is not automatically updated if the key values of the variable are modified.

Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
EnumVariable(String[] names, Variable value)
          Constructs a new enumerated variable with multiple names.
EnumVariable(String[] names, Variable value, Object prop)
          Constructs a new enumerated variable with multiple names and a property.
EnumVariable(String name, Variable value)
          Constructs a new enumerated variable with a name.
EnumVariable(String name, Variable value, Object prop)
          Constructs a new enumerated variable with a name and a property.
EnumVariable(Variable value)
          Constructs a new enumerated variable.
EnumVariable(Variable value, Object prop)
          Constructs a new enumerated variable with a property.
 
Method Summary
 Identity getIdentity()
          Gets the enumerated identity.
 Object getValue()
           
 Variable getVariable()
          Gets the enumerated variable.
 
Methods inherited from class org.norther.tammi.core.rt.util.EnumIdentity
getBaseName, getProperty, matches, setProperty
 
Methods inherited from class org.norther.tammi.core.rt.util.EnumAttribute
clone, clone, clone, clone, compareTo, equals, getName, hashCode, length, toString, toStrings
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumVariable

public EnumVariable(Variable value)
Constructs a new enumerated variable.

Parameters:
value - the attribute value.

EnumVariable

public EnumVariable(Variable value,
                    Object prop)
Constructs a new enumerated variable with a property.

Parameters:
value - the attribute value.
prop - an optional property.

EnumVariable

public EnumVariable(String name,
                    Variable value)
Constructs a new enumerated variable with a name.

Parameters:
name - the attribute name.
value - the attribute value.

EnumVariable

public EnumVariable(String name,
                    Variable value,
                    Object prop)
Constructs a new enumerated variable with a name and a property.

Parameters:
name - the attribute name.
value - the attribute value.
prop - an optional property.

EnumVariable

public EnumVariable(String[] names,
                    Variable value)
Constructs a new enumerated variable with multiple names.

Parameters:
names - the attribute names.
value - the attribute value.

EnumVariable

public EnumVariable(String[] names,
                    Variable value,
                    Object prop)
Constructs a new enumerated variable with multiple names and a property.

Parameters:
names - the attribute names.
value - the attribute value.
prop - an optional property.
Method Detail

getValue

public Object getValue()
Overrides:
getValue in class EnumAttribute

getIdentity

public Identity getIdentity()
Description copied from class: EnumIdentity
Gets the enumerated identity.

Overrides:
getIdentity in class EnumIdentity
Returns:
the identity.

getVariable

public Variable getVariable()
Gets the enumerated variable.

Returns:
the variable.


Copyright © 2004 The Norther Organization. All rights reserved.