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:
java.io.Serializable

public class Workspace
extends AbstractViewsSupport
implements java.io.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
 java.lang.String getAccess()
           
 java.lang.String getAltRoots()
           
 java.lang.String getDescription()
           
 java.lang.String getHost()
           
 java.lang.String getLineEnd()
           
 java.lang.String getName()
           
 java.lang.String getOptions()
           
 java.lang.String getOwner()
           
 java.lang.String getRoot()
           
 java.lang.String getSubmitOptions()
           
 java.lang.String getUpdate()
           
 boolean isNew()
          Is this workspace new (i.e.
 void setAccess(java.lang.String access)
           
 void setAltRoots(java.lang.String altRoots)
           
 void setDescription(java.lang.String description)
           
 void setHost(java.lang.String host)
           
 void setLineEnd(java.lang.String lineEnd)
           
 void setName(java.lang.String name)
           
 void setOptions(java.lang.String options)
           
 void setOwner(java.lang.String owner)
           
 void setRoot(java.lang.String root)
           
 void setSubmitOptions(java.lang.String submitOptions)
           
 void setUpdate(java.lang.String update)
           
 java.lang.String toString()
           
 
Methods inherited from class com.tek42.perforce.model.AbstractViewsSupport
addView, clearDirty, clearViews, 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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Returns:
the name

setName

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

getOwner

public java.lang.String getOwner()
Returns:
the owner

setOwner

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

getHost

public java.lang.String getHost()
Returns:
the host

setHost

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

getDescription

public java.lang.String getDescription()
Returns:
the description

setDescription

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

getRoot

public java.lang.String getRoot()
Returns:
the root

setRoot

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

getAltRoots

public java.lang.String getAltRoots()
Returns:
the altRoots

setAltRoots

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

getOptions

public java.lang.String getOptions()
Returns:
the options

setOptions

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

getLineEnd

public java.lang.String getLineEnd()
Returns:
the lineEnd

setLineEnd

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

getSubmitOptions

public java.lang.String getSubmitOptions()
Returns:
the submitOptions

setSubmitOptions

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

getUpdate

public java.lang.String getUpdate()
Returns:
the update

setUpdate

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

getAccess

public java.lang.String getAccess()
Returns:
the access

setAccess

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

isNew

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

Returns:


Copyright © 2009. All Rights Reserved.