com.sri.emo.wizard.creation.model
Class CreationBean

java.lang.Object
  extended by com.sri.emo.wizard.creation.model.CreationBean
All Implemented Interfaces:
Serializable

public class CreationBean
extends Object
implements Serializable

Bean for handling action form.

Version:
1.0
Author:
Michael Rimov
See Also:
Serialized Form
To Do:
Change Constructor to use NodeId for constructor to allow automatic initialization.

Constructor Summary
CreationBean()
          Default constructor.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 Set getCompletionParts()
          Retrieve all completion parts.
 Node getCurrentNode()
          Retrieve the currently set node.
 NodeType getCurrentNodeType()
           
 int getMemLocation()
           
 Integer getPartId()
           
 CreationPartsBean getPartsBeanFromPart(Part key)
          Retrieve a specific parts bean given the specified part.
 SearchListPage getSearchPage()
           
 Integer getTargetId()
          Retrieve the target node id.
 Set getWizardCompletionParts()
          Retrieve the set of all completion parts that have the field completion value set to 'wizard'.
 int hashCode()
          Returns a hash code value for the object.
 boolean hasPartsBeanFromPart(Part key)
           
 void initializeFromNodeId(ErrorCollection errorMessages)
          Initialize from the node id.
 boolean isDynamicTarget()
           
 boolean isInitialized()
          Checks to make sure the bean is initialize.d
 void setDynamicTarget(boolean dynamicTarget)
           
 void setPartId(int partId)
           
 void setSearchPage(SearchListPage page)
           
 void setTargetId(int nodeId)
          Sets the target id (as integer)
 void setTargetId(String newTargetId)
          Sets the target id.
 String toString()
          Returns a string representation of the object.
 ErrorCollection validate(ErrorCollection returnValue)
          Validate the properties that have been set for this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreationBean

public CreationBean()
Default constructor.

Method Detail

setSearchPage

public void setSearchPage(SearchListPage page)

getSearchPage

public SearchListPage getSearchPage()

isDynamicTarget

public boolean isDynamicTarget()

setDynamicTarget

public void setDynamicTarget(boolean dynamicTarget)
To Do:
should this just be set whenever setTargetId() is called??

setTargetId

public void setTargetId(int nodeId)
Sets the target id (as integer)

Parameters:
nodeId - int

setPartId

public void setPartId(int partId)

setTargetId

public void setTargetId(String newTargetId)
Sets the target id.

Parameters:
newTargetId - String

getTargetId

public Integer getTargetId()
Retrieve the target node id.

Returns:
Integer

getPartId

public Integer getPartId()

getCompletionParts

public Set getCompletionParts()
Retrieve all completion parts.

Returns:
Set a set of all completion parts.

getPartsBeanFromPart

public CreationPartsBean getPartsBeanFromPart(Part key)
Retrieve a specific parts bean given the specified part.

Parameters:
key - Part
Returns:
CompletionPartsBean

hasPartsBeanFromPart

public boolean hasPartsBeanFromPart(Part key)

getWizardCompletionParts

public Set getWizardCompletionParts()
Retrieve the set of all completion parts that have the field completion value set to 'wizard'.

Returns:
Set of CompletionPartsBeans

getCurrentNode

public Node getCurrentNode()
Retrieve the currently set node.

Returns:
Node

getCurrentNodeType

public NodeType getCurrentNodeType()

validate

public ErrorCollection validate(ErrorCollection returnValue)

Validate the properties that have been set for this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found.

Parameters:
returnValue - the constructed ErrorCollection to populate into.
Returns:
ActionErrors

isInitialized

public boolean isInitialized()
Checks to make sure the bean is initialize.d

Returns:
boolean

initializeFromNodeId

public void initializeFromNodeId(ErrorCollection errorMessages)
Initialize from the node id. Populate ErrorCollection if there is problems initializing.

Parameters:
errorMessages - ErrorCollection may be null, in which case the method throws IllegalArgumentExceptions if validation/construction fails.

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

getMemLocation

public int getMemLocation()

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.