com.tek42.perforce.model
Class Workspace

java.lang.Object
  extended by com.tek42.perforce.model.AbstractViewsSupport
      extended by com.tek42.perforce.model.Workspace
All Implemented Interfaces:
Serializable

public class Workspace
extends AbstractViewsSupport
implements Serializable

Represents a Perforce clientspec or workspace.

This is necessary because the Client class that Perforce provides in their API is not complete. It is missing several fields and we cannot extend that class because its final.

Author:
Mike Wille
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.tek42.perforce.model.AbstractViewsSupport
dirty, views
 
Constructor Summary
Workspace()
           
 
Method Summary
 String getAccess()
           
 String getAltRoots()
           
 String getDescription()
           
 String getHost()
           
 String getLineEnd()
           
 String getName()
           
 String getOptions()
           
 String getOwner()
           
 String getRoot()
           
 String getStream()
           
 String getSubmitOptions()
           
 String getUpdate()
           
 boolean isNew()
          Is this workspace new (i.e.
 void setAccess(String access)
           
 void setAltRoots(String altRoots)
           
 void setDescription(String description)
           
 void setHost(String host)
           
 void setLineEnd(String lineEnd)
           
 void setName(String name)
           
 void setOptions(String options)
           
 void setOwner(String owner)
           
 void setRoot(String root)
           
 void setStream(String stream)
           
 void setSubmitOptions(String submitOptions)
           
 void setUpdate(String update)
           
 String toString()
           
 
Methods inherited from class com.tek42.perforce.model.AbstractViewsSupport
addView, clearDirty, clearViews, getTrimmedViewsAsString, getViews, getViewsAsString, isDirty, markDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Workspace

public Workspace()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()
Returns:
the name

setName

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

getOwner

public String getOwner()
Returns:
the owner

setOwner

public void setOwner(String owner)
Parameters:
owner - the owner to set

getHost

public String getHost()
Returns:
the host

setHost

public void setHost(String host)
Parameters:
host - the host to set

getDescription

public String getDescription()
Returns:
the description

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

getRoot

public String getRoot()
Returns:
the root

setRoot

public void setRoot(String root)
Parameters:
root - the root to set

getAltRoots

public String getAltRoots()
Returns:
the altRoots

setAltRoots

public void setAltRoots(String altRoots)
Parameters:
altRoots - the altRoots to set

getOptions

public String getOptions()
Returns:
the options

setOptions

public void setOptions(String options)
Parameters:
options - the options to set

getLineEnd

public String getLineEnd()
Returns:
the lineEnd

setLineEnd

public void setLineEnd(String lineEnd)
Parameters:
lineEnd - the lineEnd to set

getSubmitOptions

public String getSubmitOptions()
Returns:
the submitOptions

setSubmitOptions

public void setSubmitOptions(String submitOptions)
Parameters:
submitOptions - the submitOptions to set

getUpdate

public String getUpdate()
Returns:
the update

setUpdate

public void setUpdate(String update)
Parameters:
update - the update to set

getAccess

public String getAccess()
Returns:
the access

setAccess

public void setAccess(String access)
Parameters:
access - the access to set

getStream

public String getStream()
Returns:
the stream

setStream

public void setStream(String stream)
Parameters:
stream - the stream to set

isNew

public boolean isNew()
Is this workspace new (i.e. never saved)?

Returns:


Copyright © 2004-2013 Hudson. All Rights Reserved.