WebLogic Process Integrator Version 1.1

com.bea.wlpi.common
Class VariableInfo

java.lang.Object
  |
  +--com.bea.wlpi.common.VariableInfo

public final class VariableInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Holds information about a workflow variable.

Objects of this class override the boolean equals(Object) and implement the comparable interface. Homogeneous collections containing objects of this class may, therefore, be searched and sorted using the Collection.contains(Object), List.indexOf(Object), Collections.sort(List) methods.

See Also:
Serialized Form

Constructor Summary
VariableInfo(java.lang.String name, java.lang.Object value)
          Create a new VariableInfo object.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare two VariableInfo objects.
 boolean equals(java.lang.Object obj)
          Test two VariableInfo objects for equality.
 java.lang.String getName()
          Return the variable name.
 java.lang.Object getValue()
          Return the variable value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableInfo

public VariableInfo(java.lang.String name,
                    java.lang.Object value)
Create a new VariableInfo object.
Parameters:
name - The variable name.
value - The variable value.
Method Detail

getName

public final java.lang.String getName()
Return the variable name.
Returns:
The variable name as set by the constructor.

getValue

public final java.lang.Object getValue()
Return the variable value.
Returns:
The variable value as set by the constructor.

equals

public boolean equals(java.lang.Object obj)
Test two VariableInfo objects for equality.
Overrides:
equals in class java.lang.Object
Parameters:
obj - Object with which to compare this one.
Returns:
true if obj is an instance of VariableInfo with the same name as this one.
See Also:
compareTo(java.lang.Object)

compareTo

public int compareTo(java.lang.Object o)
Compare two VariableInfo objects.
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - Object with which to compare this one. Must be null or an instance of VariableInfo.
Returns:
The result of comparing the name members using the String.compareTo(Object) method.
Throws:
java.lang.ClassCastException - if o is not an instance of VariableInfo.
See Also:
equals(java.lang.Object)

WebLogic Process Integrator Version 1.1

WebLogic and Process Integrator are trademarks of BEA Systems, Inc.
Copyright (c) 2000 BEA Systems, Inc., 8920 Woodbine Avenue, Suite 400,
Markham, Ontario L3R 9W9 Canada. All rights reserved.