wt.clients.replication.unit
Class BuildRuleList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bywt.clients.replication.unit.BuildRuleList
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class BuildRuleList
extends Vector

BuildRuleList is a list of the build rules for a PartItem. It allows adding and removing build sources from the list.

Supported API: false

Extendable: false

See Also:
PartItem, Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
protected  Vector addedBuildRule
           
protected  boolean frameStarted
           
protected  PartItem part
           
protected  Vector removedBuildRule
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BuildRuleList(PartItem part)
          Constructs a BuildRuleList using the specified PartItem.
 
Method Summary
 void addElementBuildSource(BuildSourceItem buildSource)
          Adds the BuildRuleItem to the BuildRuleList
 BuildRuleItem elementAt(String identity)
          Returns the BuildRuleItem with the specified identity.
 void endFrame()
          End the current frame to keep track of added and removed build rules.
protected  void populate()
          Populate the list using the contained PartItem.
 void removeElementAt(String identity)
          Remove the BuildRuleItem with the specified identity.
 boolean saveFrame()
          Saves all changes made since the last beginFrame.
 void startFrame()
          Start a new frame to keep track of added and removed build rules.
 String[] toMultiList()
          Returns an array of Strings representing the BuildRuleList, formatted for use in a symantec.itools.awt.MultiList.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

frameStarted

protected boolean frameStarted

removedBuildRule

protected Vector removedBuildRule

addedBuildRule

protected Vector addedBuildRule

part

protected PartItem part
Constructor Detail

BuildRuleList

public BuildRuleList(PartItem part)
Constructs a BuildRuleList using the specified PartItem.

Parameters:
part - the PartItem to hold build rules for
Method Detail

saveFrame

public boolean saveFrame()
                  throws WTException
Saves all changes made since the last beginFrame.

Returns:
true if the BuildRuleList was modified since the last save
Throws:
WTException - if an error occurs saving the list.

startFrame

public void startFrame()
Start a new frame to keep track of added and removed build rules.


endFrame

public void endFrame()
End the current frame to keep track of added and removed build rules.


elementAt

public BuildRuleItem elementAt(String identity)
Returns the BuildRuleItem with the specified identity.

Parameters:
identity - the identity of the requested BuildRuleItem.
Returns:
the BuildRuleItem with the specified identity.

addElementBuildSource

public void addElementBuildSource(BuildSourceItem buildSource)
Adds the BuildRuleItem to the BuildRuleList

Parameters:
buildSource - the new BuildSource to reference

removeElementAt

public void removeElementAt(String identity)
Remove the BuildRuleItem with the specified identity.

Parameters:
identity - the identity of the requested BuildRuleItem.
Returns:
the BuildRuleItem with the specified identity.

populate

protected void populate()
Populate the list using the contained PartItem.


toMultiList

public String[] toMultiList()
Returns an array of Strings representing the BuildRuleList, formatted for use in a symantec.itools.awt.MultiList. Each string has the identity of the BuildSourceItem and its businessType.

Returns:
a String array representation of the BuildRuleList