Package com.perforce.p4java.core.file
Class IntegrationOptions
- java.lang.Object
-
- com.perforce.p4java.core.file.IntegrationOptions
-
public class IntegrationOptions extends java.lang.Object
A helper class to gather together some of the (infinitely complex) less-common options available to the integrate method in one object. This relieves us of having a single integrate method with something like thirteen separate parameters....No attempt is made here to explain the various options and their semantics -- please consult the main Perforce integ command documentation for a full explanation -- but see also the explicit-value constructor below for a summary of option meanings.
-
-
Constructor Summary
Constructors Constructor Description IntegrationOptions()
Default constructor; will generate a suitable IntegrationOptions object with typically-safe and useful default options values for straightforward file-to-file integrations.IntegrationOptions(boolean useHaveRev, boolean baselessMerge, boolean displayBaseDetails, boolean propagateType, boolean dontCopyToClient, boolean force, boolean bidirectionalInteg, boolean reverseMapping, java.lang.String[] deletedOptions)
Explicit-value constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getDeletedOptions()
int
getMaxFiles()
boolean
isBaselessMerge()
boolean
isBidirectionalInteg()
boolean
isDisplayBaseDetails()
boolean
isDontCopyToClient()
boolean
isForce()
boolean
isPropagateType()
boolean
isReverseMapping()
boolean
isUseHaveRev()
void
setBaselessMerge(boolean baselessMerge)
void
setBidirectionalInteg(boolean bidirectionalInteg)
void
setDeletedOptions(java.lang.String[] deletedOptions)
void
setDisplayBaseDetails(boolean displayBaseDetails)
void
setDontCopyToClient(boolean dontCopyToClient)
void
setForce(boolean force)
void
setMaxFiles(int maxFiles)
void
setPropagateType(boolean propagateType)
void
setReverseMapping(boolean reverseMapping)
void
setUseHaveRev(boolean useHaveRev)
-
-
-
Constructor Detail
-
IntegrationOptions
public IntegrationOptions()
Default constructor; will generate a suitable IntegrationOptions object with typically-safe and useful default options values for straightforward file-to-file integrations.
-
IntegrationOptions
public IntegrationOptions(boolean useHaveRev, boolean baselessMerge, boolean displayBaseDetails, boolean propagateType, boolean dontCopyToClient, boolean force, boolean bidirectionalInteg, boolean reverseMapping, java.lang.String[] deletedOptions)
Explicit-value constructor.- Parameters:
useHaveRev
- causes the target files to be left at the revision currently on the client (the '#have' revision)baselessMerge
- enables integration between files that have no integration historydisplayBaseDetails
- displays the base file name and revision which will be used in subsequent resolves if a resolve is neededpropagateType
- makes the source file's filetype propagate to the target filedontCopyToClient
- makes the integration work faster by not copying newly branched files to the clientforce
- if true, forces integrate to act without regard for previous integration historybidirectionalInteg
- causes the branch view to work bidirectionally, where the scope of the command is limited to integrations whose 'from' files match fromFile[revRange]reverseMapping
- reverse the mappings in the branch view, with the target files and source files exchanging place. The branchSpec parameter will be required in the associated integration call.deletedOptions
- if non-null, must contain zero or more non-null entries with individual values "d", "Dt", "Ds", or "Di"; null, inconsistent, or conflicting option values here will have unspecified and potentially incorrect effects.
-
-
Method Detail
-
isUseHaveRev
public boolean isUseHaveRev()
-
setUseHaveRev
public void setUseHaveRev(boolean useHaveRev)
-
isBaselessMerge
public boolean isBaselessMerge()
-
setBaselessMerge
public void setBaselessMerge(boolean baselessMerge)
-
isDisplayBaseDetails
public boolean isDisplayBaseDetails()
-
setDisplayBaseDetails
public void setDisplayBaseDetails(boolean displayBaseDetails)
-
isPropagateType
public boolean isPropagateType()
-
setPropagateType
public void setPropagateType(boolean propagateType)
-
isDontCopyToClient
public boolean isDontCopyToClient()
-
setDontCopyToClient
public void setDontCopyToClient(boolean dontCopyToClient)
-
isForce
public boolean isForce()
-
setForce
public void setForce(boolean force)
-
isBidirectionalInteg
public boolean isBidirectionalInteg()
-
setBidirectionalInteg
public void setBidirectionalInteg(boolean bidirectionalInteg)
-
getDeletedOptions
public java.lang.String[] getDeletedOptions()
-
setDeletedOptions
public void setDeletedOptions(java.lang.String[] deletedOptions)
-
isReverseMapping
public boolean isReverseMapping()
-
setReverseMapping
public void setReverseMapping(boolean reverseMapping)
-
getMaxFiles
public int getMaxFiles()
-
setMaxFiles
public void setMaxFiles(int maxFiles)
-
-