WebLogic Process Integrator Version 1.1

com.bea.wlpi.common
Class TemplateInfo

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

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

Holds information about a workflow template.

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
TemplateInfo(java.lang.String id, java.lang.String name)
          Create a new TemplateInfo object.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare two TemplateInfo objects.
 boolean equals(java.lang.Object obj)
          Test two TemplateInfo objects for equality.
 java.lang.String getId()
          Return the template ID.
 java.lang.String getName()
          Return the template name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateInfo

public TemplateInfo(java.lang.String id,
                    java.lang.String name)
Create a new TemplateInfo object.
Parameters:
id - The ID of the workflow template.
name - The template name.
Method Detail

getId

public final java.lang.String getId()
Return the template ID.
Returns:
The template ID as set in the constructor.

getName

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

equals

public boolean equals(java.lang.Object obj)
Test two TemplateInfo 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 TemplateInfo with the same ID as this one.
See Also:
compareTo(java.lang.Object)

compareTo

public int compareTo(java.lang.Object o)
Compare two TemplateInfo 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 TemplateInfo.
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 TemplateInfo.
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.