|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.perforce.p4java.option.Options com.perforce.p4java.option.client.MergeFilesOptions
public class MergeFilesOptions
Options for the IClient.mergeFiles method.
Note also that the current implementation makes no attempt to validate the sanity or otherwise of the various options and their combination.
com.perforce.p4java.client.IClient#mergeFiles(com.perforce.p4java.core.file.IFileSpec, com.perforce.p4java.core.file.IFileSpec, java.lang.String, com.perforce.p4java.option.client.MergeFilesOptions)
Field Summary | |
---|---|
protected boolean |
bidirectionalMerge
Cause the branch view to work bidirectionally, where the scope of the command is limited to integrations whose 'from' files match fromFile[revRange]. |
protected String |
branch
If non-null, use a user-defined branch view. |
protected int |
changelistId
If positive, the integrated files are opened in the numbered pending changelist instead of the default changelist. |
protected boolean |
forceStreamMerge
If true, force merging even though the stream does not expect a merge to occur in the direction indicated. |
protected int |
maxFiles
If positive, integrate only the first maxFiles files. |
static String |
OPTIONS_SPECS
Options: -c[changelist], -n, -q, -m[max], -b[branch], -S[stream], -P[parentStream], -F, -r, -s |
protected String |
parentStream
If non-null, specify a parent stream other than the stream's actual parent. |
protected boolean |
quiet
If true, suppresses normal output messages. |
protected boolean |
reverseMapping
Reverse the mappings in the branch view, with the target files and source files exchanging place. |
protected boolean |
showActionsOnly
Display what integrations would be necessary but don't actually do them. |
protected String |
stream
If not null, makes 'p4 integrate' use a stream's branch view. |
Fields inherited from class com.perforce.p4java.option.Options |
---|
immutable, optionList, OPTPFX |
Constructor Summary | |
---|---|
MergeFilesOptions()
Default constructor. |
|
MergeFilesOptions(int changelistId,
boolean showActionsOnly,
int maxFiles,
String branch,
boolean reverseMapping,
boolean bidirectionalInteg)
Explicit-value constructor for use with a branch. |
|
MergeFilesOptions(int changelistId,
boolean showActionsOnly,
int maxFiles,
String stream,
String parentStream,
boolean forceStreamMerge,
boolean reverseMapping)
Explicit-value constructor for use with a stream. |
|
MergeFilesOptions(String... options)
Strings-based constructor; see 'p4 help [command]' for possible options. |
Method Summary | |
---|---|
String |
getBranch()
|
int |
getChangelistId()
|
int |
getMaxFiles()
|
String |
getParentStream()
|
String |
getStream()
|
boolean |
isBidirectionalInteg()
|
boolean |
isForceStreamMerge()
|
boolean |
isQuiet()
|
boolean |
isReverseMapping()
|
boolean |
isShowActionsOnly()
|
List<String> |
processOptions(IServer server)
Turn this (specific) options object into a list of strings to be sent to the Perforce server as options for a specific command. |
MergeFilesOptions |
setBidirectionalInteg(boolean bidirectionalInteg)
|
MergeFilesOptions |
setBranch(String branch)
|
MergeFilesOptions |
setChangelistId(int changelistId)
|
MergeFilesOptions |
setForceStreamMerge(boolean forceStreamMerge)
|
MergeFilesOptions |
setMaxFiles(int maxFiles)
|
MergeFilesOptions |
setParentStream(String parentStream)
|
MergeFilesOptions |
setQuiet(boolean quiet)
|
MergeFilesOptions |
setReverseMapping(boolean reverseMapping)
|
MergeFilesOptions |
setShowActionsOnly(boolean showActionsOnly)
|
MergeFilesOptions |
setStream(String stream)
|
Methods inherited from class com.perforce.p4java.option.Options |
---|
applyRule, applyRule, applyRule, applyRule, getOptions, isImmutable, processFields, setImmutable, setOptions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OPTIONS_SPECS
protected int changelistId
protected boolean bidirectionalMerge
protected boolean showActionsOnly
protected boolean quiet
protected boolean reverseMapping
protected int maxFiles
protected String branch
protected String stream
protected String parentStream
protected boolean forceStreamMerge
Constructor Detail |
---|
public MergeFilesOptions()
public MergeFilesOptions(String... options)
WARNING: you should not pass more than one option or argument in each string parameter. Each option or argument should be passed-in as its own separate string parameter, without any spaces between the option and the option value (if any).
NOTE: setting options this way always bypasses the internal options values, and getter methods against the individual values corresponding to the strings passed in to this constructor will not normally reflect the string's setting. Do not use this constructor unless you know what you're doing and / or you do not also use the field getters and setters.
Options.Options(java.lang.String...)
public MergeFilesOptions(int changelistId, boolean showActionsOnly, int maxFiles, String branch, boolean reverseMapping, boolean bidirectionalInteg)
public MergeFilesOptions(int changelistId, boolean showActionsOnly, int maxFiles, String stream, String parentStream, boolean forceStreamMerge, boolean reverseMapping)
Method Detail |
---|
public List<String> processOptions(IServer server) throws OptionsException
Options
The method is used by the server object to generate the string-based arguments expected by the Perforce server corresponding to the state of this method-specific options object. Will return an empty list if there are no "interesting" options set or available. May simply return the superclass options string list if is non-null, but that behaviour is neither guaranteed nor required.
Note that this method is not intended to be called directly by users but by the underlying P4Java plumbing; odd results may occur if this method is called in other contexts.
processOptions
in class Options
server
- possibly-null IServer representing the Perforce server
the options are to be used against. If this parameter is
null, it is acceptable to throw an OptionsException, but
it is also possible to ignore it and do the best you can
with what you've got...
OptionsException
- if an error occurs in options processing that is
not some species of ConnectionException, RequestException,
AccessException, etc.Options.processOptions(com.perforce.p4java.server.IServer)
public int getChangelistId()
public MergeFilesOptions setChangelistId(int changelistId)
public boolean isShowActionsOnly()
public MergeFilesOptions setShowActionsOnly(boolean showActionsOnly)
public boolean isQuiet()
public MergeFilesOptions setQuiet(boolean quiet)
public boolean isReverseMapping()
public MergeFilesOptions setReverseMapping(boolean reverseMapping)
public boolean isBidirectionalInteg()
public MergeFilesOptions setBidirectionalInteg(boolean bidirectionalInteg)
public int getMaxFiles()
public MergeFilesOptions setMaxFiles(int maxFiles)
public String getBranch()
public MergeFilesOptions setBranch(String branch)
public String getStream()
public MergeFilesOptions setStream(String stream)
public String getParentStream()
public MergeFilesOptions setParentStream(String parentStream)
public boolean isForceStreamMerge()
public MergeFilesOptions setForceStreamMerge(boolean forceStreamMerge)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |