org.eclipse.higgins.sync.to
Class CommandTO

java.lang.Object
  extended by org.eclipse.higgins.sync.to.CommandTO
All Implemented Interfaces:
Serializable

public class CommandTO
extends Object
implements Serializable

Command transfer object. Encapsulate commands in transfer objects . Please, see "Command" design pattern.

Author:
Alexander Yuhimenko
See Also:
Serialized Form

Constructor Summary
CommandTO()
           
 
Method Summary
 String getId()
           
 String getName()
           
 BaseTO getResource()
           
 String getResourceId()
           
 String getResourceType()
           
 CommandTO setId(String id)
           
 CommandTO setName(String name)
           
 CommandTO setResource(BaseTO resource)
           
 CommandTO setResourceId(String resourceId)
           
 CommandTO setResourceType(String resourceType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandTO

public CommandTO()
Method Detail

getId

public String getId()
Returns:
the id

getName

public String getName()
Returns:
the name

getResource

public BaseTO getResource()
Returns:
the resource

getResourceId

public String getResourceId()
Returns:
the resourceId

getResourceType

public String getResourceType()
Returns:
the resourceType

setId

public CommandTO setId(String id)
Parameters:
id - the id to set

setName

public CommandTO setName(String name)
Parameters:
name - the name to set

setResource

public CommandTO setResource(BaseTO resource)
Parameters:
resource - the resource to set

setResourceId

public CommandTO setResourceId(String resourceId)
Parameters:
resourceId - the resourceId to set

setResourceType

public CommandTO setResourceType(String resourceType)
Parameters:
resourceType - the resourceType to set