public class BranchSpecSummary extends ServerResource implements IBranchSpecSummary
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
accessed |
protected java.lang.String |
description |
protected boolean |
locked |
protected java.lang.String |
name |
protected java.lang.String |
ownerName |
protected java.util.Date |
updated |
refreshable, server, updateable
Constructor and Description |
---|
BranchSpecSummary()
Default constructor -- sets all fields to null or false.
|
BranchSpecSummary(boolean summaryOnly)
Default constructor; same as no-argument default constructor,
except that it sets the ServerResource superclass fields appropriately
for summary only (everything false) or full branch spec (updateable and
refreshable).
|
BranchSpecSummary(boolean summaryOnly,
java.util.Date accessed,
java.util.Date updated,
java.lang.String name,
java.lang.String ownerName,
java.lang.String description,
boolean locked)
Explicit-value constructor.
|
BranchSpecSummary(java.util.Map<java.lang.String,java.lang.Object> map,
boolean summaryOnly)
Construct a BranchSpecSummary from a map returned by the Perforce server.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAccessed()
Get the date of the last 'integrate' using this branch.
|
java.lang.String |
getDescription()
Get the branch's description (if any).
|
java.lang.String |
getName()
Get the name of this branch.
|
java.lang.String |
getOwnerName()
Get the name of the user who created this branch.
|
java.util.Date |
getUpdated()
Get the date specification was last modified.
|
boolean |
isLocked()
Return true if the branch spec is locked.
|
void |
setAccessed(java.util.Date accessed)
Set the last-accessed date.
|
void |
setDescription(java.lang.String description)
Set the branch spec description.
|
void |
setLocked(boolean locked)
Set whether the branch spec is locked or not.
|
void |
setName(java.lang.String name)
Set the name of this branch.
|
void |
setOwnerName(java.lang.String ownerName)
Set the owner's name for this branch.
|
void |
setUpdated(java.util.Date updated)
Set the last-updated date.
|
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
protected java.util.Date accessed
protected java.util.Date updated
protected java.lang.String name
protected java.lang.String ownerName
protected java.lang.String description
protected boolean locked
public BranchSpecSummary()
public BranchSpecSummary(boolean summaryOnly)
summaryOnly
- summary only (everything false) or full branch specpublic BranchSpecSummary(boolean summaryOnly, java.util.Date accessed, java.util.Date updated, java.lang.String name, java.lang.String ownerName, java.lang.String description, boolean locked)
summaryOnly
- summary only (everything false) or full branch specaccessed
- dateupdated
- datename
- nameownerName
- ownerdescription
- descriptionlocked
- lockedpublic BranchSpecSummary(java.util.Map<java.lang.String,java.lang.Object> map, boolean summaryOnly)
If map is null, this is equivalent to calling the default summaryOnly-argument constructor.
map
- spec mapsummaryOnly
- summary only (everything false) or full branch specpublic java.util.Date getAccessed()
IBranchSpecSummary
getAccessed
in interface IBranchSpecSummary
IBranchSpecSummary.getAccessed()
public void setAccessed(java.util.Date accessed)
IBranchSpecSummary
setAccessed
in interface IBranchSpecSummary
accessed
- new accessed date.IBranchSpecSummary.setAccessed(java.util.Date)
public java.util.Date getUpdated()
IBranchSpecSummary
getUpdated
in interface IBranchSpecSummary
IBranchSpecSummary.getUpdated()
public void setUpdated(java.util.Date updated)
IBranchSpecSummary
setUpdated
in interface IBranchSpecSummary
updated
- new updated date.IBranchSpecSummary.setUpdated(java.util.Date)
public java.lang.String getName()
IBranchSpecSummary
getName
in interface IBranchSpecSummary
IBranchSpecSummary.getName()
public void setName(java.lang.String name)
IBranchSpecSummary
setName
in interface IBranchSpecSummary
name
- new branch spec nameIBranchSpecSummary.setName(java.lang.String)
public java.lang.String getOwnerName()
IBranchSpecSummary
getOwnerName
in interface IBranchSpecSummary
IBranchSpecSummary.getOwnerName()
public void setOwnerName(java.lang.String ownerName)
IBranchSpecSummary
setOwnerName
in interface IBranchSpecSummary
ownerName
- new owner's nameIBranchSpecSummary.setOwnerName(java.lang.String)
public java.lang.String getDescription()
IBranchSpecSummary
getDescription
in interface IBranchSpecSummary
IBranchSpecSummary.getDescription()
public void setDescription(java.lang.String description)
IBranchSpecSummary
setDescription
in interface IBranchSpecSummary
description
- new description string.IBranchSpecSummary.setDescription(java.lang.String)
public boolean isLocked()
IBranchSpecSummary
isLocked
in interface IBranchSpecSummary
IBranchSpecSummary.isLocked()
public void setLocked(boolean locked)
IBranchSpecSummary
setLocked
in interface IBranchSpecSummary
locked
- boolean lock statusIBranchSpecSummary.setLocked(boolean)