ALBPM Process API

fuego.papi.collections
Class InstanceActivityPairSet

java.lang.Object
  extended by fuego.papi.collections.InstanceActivityPairSet
All Implemented Interfaces:
ElementIdSet<InstanceActivityPair>, Serializable, Iterable<InstanceActivityPair>

public class InstanceActivityPairSet
extends Object
implements ElementIdSet<InstanceActivityPair>

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface fuego.papi.collections.ElementIdSet
SEPARATOR
 
Method Summary
 ElementIdSet<InstanceActivityPair> add(InstanceActivityPair instanceActivityPair)
          Adds the specified element to the set if not present.
 InstanceActivityPairSet add(InstanceInfo instance)
          Adds an instance identification to the set.
 InstanceActivityPairSet add(String instanceId, String activityName)
          Adds an instance identification and the activity, where you suppose that the instance is, to the set.
 ElementIdSet<InstanceActivityPair> addAll(ElementIdSet<InstanceActivityPair> instanceActivityPairSet)
          Add all ids to the Set.
 InstanceActivityPairSet addAll(InstanceActivityPair... items)
          Adds items (instance identification and the activity, where you suppose that the instance is) to the set.
 InstanceActivityPairSet addAll(InstanceInfo... instances)
           
 InstanceActivityPairSet addAll(InstanceInfoList instances)
           
 boolean contains(InstanceActivityPair instanceActivityPair)
          Returns true if this set contains the specified identification.
 boolean contains(String instanceId)
           
static InstanceActivityPairSet create()
          Creates a new InstanceSet
 String getActivity(String instanceId)
          Returns the activity associated to the instance identification given.
 Iterable<String> instanceIds()
           
 boolean isEmpty()
           
 Iterator<InstanceActivityPair> iterator()
           
 int size()
           
 InstanceActivityPair[] toArray()
          Returns an array with all items in the set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static InstanceActivityPairSet create()
Creates a new InstanceSet


add

public InstanceActivityPairSet add(String instanceId,
                                   String activityName)
Adds an instance identification and the activity, where you suppose that the instance is, to the set.

Parameters:
instanceId - Instance identification to add.
activityName - Activity name where yous suppose that the instance is.
Returns:
the instance set resulting.

addAll

public InstanceActivityPairSet addAll(InstanceActivityPair... items)
Adds items (instance identification and the activity, where you suppose that the instance is) to the set.

Specified by:
addAll in interface ElementIdSet<InstanceActivityPair>
Parameters:
items - The items to add to the set.
Returns:
the instance set resulting.

add

public ElementIdSet<InstanceActivityPair> add(InstanceActivityPair instanceActivityPair)
Description copied from interface: ElementIdSet
Adds the specified element to the set if not present.

Specified by:
add in interface ElementIdSet<InstanceActivityPair>
Parameters:
instanceActivityPair - Identification to add.

addAll

public ElementIdSet<InstanceActivityPair> addAll(ElementIdSet<InstanceActivityPair> instanceActivityPairSet)
Description copied from interface: ElementIdSet
Add all ids to the Set.

Specified by:
addAll in interface ElementIdSet<InstanceActivityPair>
Parameters:
instanceActivityPairSet - Identification Set to add.

iterator

public Iterator<InstanceActivityPair> iterator()
Specified by:
iterator in interface Iterable<InstanceActivityPair>

instanceIds

public Iterable<String> instanceIds()

size

public int size()
Specified by:
size in interface ElementIdSet<InstanceActivityPair>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ElementIdSet<InstanceActivityPair>

contains

public boolean contains(String instanceId)

contains

public boolean contains(InstanceActivityPair instanceActivityPair)
Description copied from interface: ElementIdSet
Returns true if this set contains the specified identification.

Specified by:
contains in interface ElementIdSet<InstanceActivityPair>
Parameters:
instanceActivityPair - Identification whose presence in this set is to be tested.
Returns:
true if this set contains the specified identification.

add

public InstanceActivityPairSet add(InstanceInfo instance)
Adds an instance identification to the set.

Parameters:
instance - InstanceInfo to add.
Returns:
the instance set resulting.

addAll

public InstanceActivityPairSet addAll(InstanceInfo... instances)

addAll

public InstanceActivityPairSet addAll(InstanceInfoList instances)

getActivity

public String getActivity(String instanceId)
Returns the activity associated to the instance identification given.

Parameters:
instanceId - Instance identification to obtain the associated activity.
Returns:
Name of the activity associated to the given instance or null if the set does not have an activity associated to the given instance.

toArray

public InstanceActivityPair[] toArray()
Returns an array with all items in the set.

Specified by:
toArray in interface ElementIdSet<InstanceActivityPair>
Returns:
An Array of InstanceActivityPair with all items in the set.

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved