|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.perforce.api.SourceControlObject | +--com.perforce.api.Mapping
Representation of a source control mapping. This handles a named set of file mappings.
Constructor Summary | |
Mapping()
Default no-argument constructor. |
|
Mapping(String name)
Constructor that is passed the mapping name. |
Method Summary | |
void |
addView(String line)
|
void |
addView(String from,
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(Object o)
|
String |
getDescription()
Returns the Mapping description. |
String |
getName()
Returns the name of the Mapping. |
String |
getOwner()
Returns the owner of the Mapping. |
String |
getView()
|
Enumeration |
getViews()
|
static Enumeration |
lookupMappings(HashDecay mappings,
String prefix)
Returns a list of mappings that begin with the specified prefix. |
void |
setDescription(String description)
Sets the description for the Mapping. |
void |
setName(String name)
Sets the name of the Mapping. |
void |
setOwner(String owner)
Sets the owner of the Mapping. |
abstract void |
sync(String name)
Synchronizes the Mapping with the latest information from P4. |
String |
toString()
|
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(String name)
Method Detail |
public void addView(String line)
public void addView(String from, String to)
view
- View for the mapping.public abstract void commit() throws CommitException
SourceControlObject
commit
in class SourceControlObject
public int compareTo(Object o)
compareTo
in interface Comparable
public String getDescription()
public String getName()
public String getOwner()
public String getView()
public Enumeration getViews()
public static Enumeration lookupMappings(HashDecay mappings, String prefix)
prefix
- Prefix for all mappings to be returnedpublic void setDescription(String description)
description
- Description of the mapping.public void setName(String name)
name
- Name of the mapping.public void setOwner(String owner)
owner
- Owner of the mapping.public abstract void sync(String name)
name
- Name of the Mapping to synchronize.public String toString()
toString
in class Object
public String toXML()
SourceControlObject
toXML
in class SourceControlObject
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |