|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.perforce.api.SourceControlObject
com.perforce.api.Mapping
public abstract class Mapping
Representation of a source control mapping. This handles a named set of file mappings.
| Constructor Summary | |
|---|---|
Mapping()
Default no-argument constructor. |
|
Mapping(java.lang.String name)
Constructor that is passed the mapping name. |
|
| Method Summary | |
|---|---|
void |
addView(java.lang.String line)
|
void |
addView(java.lang.String from,
java.lang.String to)
Add a view to the Mapping. |
abstract void |
commit()
Stores this object back into Perforce, creating it if it didn't already exist. |
int |
compareTo(java.lang.Object o)
|
java.lang.String |
getDescription()
Returns the Mapping description. |
java.lang.String |
getName()
Returns the name of the Mapping. |
java.lang.String |
getOwner()
Returns the owner of the Mapping. |
java.lang.String |
getView()
|
java.util.Enumeration |
getViews()
|
static java.util.Enumeration |
lookupMappings(HashDecay mappings,
java.lang.String prefix)
Returns a list of mappings that begin with the specified prefix. |
void |
setDescription(java.lang.String description)
Sets the description for the Mapping. |
void |
setName(java.lang.String name)
Sets the name of the Mapping. |
void |
setOwner(java.lang.String owner)
Sets the owner of the Mapping. |
abstract void |
sync(java.lang.String name)
Synchronizes the Mapping with the latest information from P4. |
java.lang.String |
toString()
|
java.lang.String |
toXML()
Returns a string containing the object in XML form. |
| Methods inherited from class com.perforce.api.SourceControlObject |
|---|
clearCache, getCache, getEnv, getSyncTime, getUpdateTime, inSync, invalidate, outOfSync, refreshUpdateTime, setEnv, sync |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Mapping()
public Mapping(java.lang.String name)
| Method Detail |
|---|
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic void setName(java.lang.String name)
name - Name of the mapping.public java.lang.String getName()
public void setOwner(java.lang.String owner)
owner - Owner of the mapping.public java.lang.String getOwner()
public void setDescription(java.lang.String description)
description - Description of the mapping.public java.lang.String getDescription()
public void addView(java.lang.String from,
java.lang.String to)
view - View for the mapping.public void addView(java.lang.String line)
public java.lang.String getView()
public java.util.Enumeration getViews()
public static java.util.Enumeration lookupMappings(HashDecay mappings,
java.lang.String prefix)
prefix - Prefix for all mappings to be returned
public java.lang.String toString()
toString in class java.lang.Object
public abstract void commit()
throws CommitException
SourceControlObject
commit in interface Cacheablecommit in class SourceControlObjectCommitExceptionpublic abstract void sync(java.lang.String name)
name - Name of the Mapping to synchronize.public java.lang.String toXML()
SourceControlObject
toXML in class SourceControlObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||