com.tek42.perforce.parse
Class Labels

java.lang.Object
  extended by com.tek42.perforce.parse.AbstractPerforceTemplate
      extended by com.tek42.perforce.parse.Labels

public class Labels
extends AbstractPerforceTemplate

Base API object for interacting with labels.

Author:
Mike Wille

Constructor Summary
Labels(Depot depot)
           
 
Method Summary
 Label getLabel(java.lang.String name)
          Returns a label specified by name.
 java.util.List<Label> getLabels(java.lang.String path)
          Returns a list of labels in the system.
 void saveLabel(Label label)
          Handles both creating and saving labels.
 
Methods inherited from class com.tek42.perforce.parse.AbstractPerforceTemplate
getExtraParams, getLogger, getPerforceResponse, getRawPerforceResponseLines, hitMax, login, parseList, saveToPerforce
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Labels

public Labels(Depot depot)
Method Detail

saveLabel

public void saveLabel(Label label)
               throws PerforceException
Handles both creating and saving labels.

Parameters:
label -
Throws:
PerforceException

getLabels

public java.util.List<Label> getLabels(java.lang.String path)
                                throws PerforceException
Returns a list of labels in the system. Optionally, you can specify a path argument to return only labels that contain the specified path.

Parameters:
path -
Returns:
Throws:
PerforceException

getLabel

public Label getLabel(java.lang.String name)
               throws PerforceException
Returns a label specified by name.

Parameters:
name -
Returns:
Throws:
PerforceException


Copyright © 2010. All Rights Reserved.