wt.clients.replication.unit
Class BuildRuleItem

java.lang.Object
  extended bywt.clients.replication.unit.BuildRuleItem
All Implemented Interfaces:
Updateable

public class BuildRuleItem
extends Object
implements Updateable

BuildRuleItem defines a link between a build source BuildSourceItem and a PartItem.

Supported API: false

Extendable: false

See Also:
PartItem, BuildSourceItem

Field Summary
private  BuildRule buildRule
           
private  BuildSourceItem buildSource
           
private  PartItem buildTarget
           
private  boolean modified
           
 
Constructor Summary
BuildRuleItem()
          Create an empty BuildRuleItem.
BuildRuleItem(BuildSourceItem buildSource, PartItem buildTarget)
          Create a BuildRuleItem associating the specified BuildSourceItem and PartItem.
BuildRuleItem(BuildSourceItem buildSource, PartItem buildTarget, BuildRule buildRule)
          Create a BuildRuleItem associating the specified SourceItem and PartItem using the existing BuildRule association.
 
Method Summary
 void create()
          Create a new BuildRule using the current state of this object.
 void delete()
          Delete the build rule.
 BuildRule getBuildRule()
          Get the actual BuildRule association.
 BuildSourceItem getBuildSource()
          Get the build source
 PartItem getBuildTarget()
          Return the target PartItem
 boolean isModified()
          Return the modified flag.
 void setBuildRule(BuildRule buildRule)
          Set the actual BuildRule association.
 void setBuildSource(BuildSourceItem buildSource)
          Set the build source
 void setBuildTarget(PartItem buildTarget)
          Set the build target
 void setModified(boolean modified)
          Set the modified flag.
 String toString()
          Return a string for debugging.
 void update()
          Update the BuildRule using the current state of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buildRule

private BuildRule buildRule

modified

private boolean modified

buildSource

private BuildSourceItem buildSource

buildTarget

private PartItem buildTarget
Constructor Detail

BuildRuleItem

public BuildRuleItem()
Create an empty BuildRuleItem.


BuildRuleItem

public BuildRuleItem(BuildSourceItem buildSource,
                     PartItem buildTarget)
Create a BuildRuleItem associating the specified BuildSourceItem and PartItem.

Parameters:
buildSource - the BuildSource for the part
buildTarget - the build target PartItem

BuildRuleItem

public BuildRuleItem(BuildSourceItem buildSource,
                     PartItem buildTarget,
                     BuildRule buildRule)
Create a BuildRuleItem associating the specified SourceItem and PartItem using the existing BuildRule association.

Parameters:
buildSource - the BuildSource
buildTarget - the BuildTarget
buildRule - the existing BuildRule association
Method Detail

setModified

public void setModified(boolean modified)
Set the modified flag.

Parameters:
modified - the new value for the modified flag

isModified

public boolean isModified()
Return the modified flag.

Returns:
true if modified

create

public void create()
            throws WTException
Create a new BuildRule using the current state of this object.

Specified by:
create in interface Updateable
Throws:
WTException
See Also:
WTException

update

public void update()
            throws WTException
Update the BuildRule using the current state of this object.

Specified by:
update in interface Updateable
Throws:
WTException
See Also:
WTException

delete

public void delete()
            throws WTException
Delete the build rule.

Specified by:
delete in interface Updateable
Throws:
WTException
See Also:
WTException

setBuildRule

public void setBuildRule(BuildRule buildRule)
Set the actual BuildRule association.


getBuildRule

public BuildRule getBuildRule()
Get the actual BuildRule association.

Returns:
the actual BuildRule association

setBuildTarget

public void setBuildTarget(PartItem buildTarget)
Set the build target


getBuildTarget

public PartItem getBuildTarget()
Return the target PartItem

Returns:
the target PartItem

setBuildSource

public void setBuildSource(BuildSourceItem buildSource)
Set the build source

Parameters:
buildSource - the build source

getBuildSource

public BuildSourceItem getBuildSource()
Get the build source

Returns:
the buildSource BuildSourceItem

toString

public String toString()
Return a string for debugging.