Class PopulateFilesOptions
- Since:
- 2012.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIf true, this is a 'bidirectional' populate.protected StringIf non-null, use a user-defined branch view.If non-null, use this as the description for the submitted changelist.protected booleanIf true, forces deleted files to be branched into the target.protected intIf positive, copy only the first maxFiles files.protected booleanIf true, don't actually do the populate.static final StringOptions: -d[description], -f, -m[max] -n, -o, -b[branch], -S[stream], -P[parentStream], -r, -s.protected StringIf non-null, specify a parent stream other than the stream's actual parent.protected booleanReverse the mappings in the branch view, with the target files and source files exchanging place.protected booleanIf true, return a list of files created by the populate command.protected StringIf non-null, use this stream's branch view.Fields inherited from class com.perforce.p4java.option.Options
immutable, optionList -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PopulateFilesOptions(String... options) Strings-based constructor; see 'p4 help [command]' for possible options.PopulateFilesOptions(String description, boolean forceBranchDeletedFiles, int maxFiles, boolean noUpdate, boolean showPopulatedFiles) Instantiates a new populate files options.PopulateFilesOptions(String description, boolean forceBranchDeletedFiles, int maxFiles, boolean noUpdate, boolean showPopulatedFiles, String branch, boolean reverseMapping, boolean bidirectional) Instantiates a new populate files options.PopulateFilesOptions(String description, boolean forceBranchDeletedFiles, int maxFiles, boolean noUpdate, boolean showPopulatedFiles, String stream, String parentStream, boolean reverseMapping) Instantiates a new populate files options. -
Method Summary
Modifier and TypeMethodDescriptionGets the branch.Gets the description.intGets the max files.Gets the parent stream.Gets the stream.booleanChecks if is bidirectional.booleanChecks if is force branch deleted files.booleanChecks if is no update.booleanChecks if is reverse mapping.booleanChecks if is show populated files.processOptions(IServer server) Process options.setBidirectional(boolean bidirectional) Sets the bidirectional.Sets the branch.setDescription(String description) Sets the description.setForceBranchDeletedFiles(boolean forceBranchDeletedFiles) Sets the force branch deleted files.setMaxFiles(int maxFiles) Sets the max files.setNoUpdate(boolean noUpdate) Sets the no update.setParentStream(String parentStream) Sets the parent stream.setReverseMapping(boolean reverseMapping) Sets the reverse mapping.setShowPopulatedFiles(boolean showPopulatedFiles) Sets the show populated files.Sets the stream.Methods inherited from class com.perforce.p4java.option.Options
getOptions, isImmutable, processFields, setImmutable, setOptions
-
Field Details
-
OPTIONS_SPECS
Options: -d[description], -f, -m[max] -n, -o, -b[branch], -S[stream], -P[parentStream], -r, -s.- See Also:
-
description
If non-null, use this as the description for the submitted changelist.Corresponds to -d flag.
-
maxFiles
protected int maxFilesIf positive, copy only the first maxFiles files.Corresponds to -m flag.
-
forceBranchDeletedFiles
protected boolean forceBranchDeletedFilesIf true, forces deleted files to be branched into the target. By default, deleted files are treated as nonexistent and simply skipped.Corresponds to -f flag.
-
noUpdate
protected boolean noUpdateIf true, don't actually do the populate.Corresponds to -n flag.
-
showPopulatedFiles
protected boolean showPopulatedFilesIf true, return a list of files created by the populate command.Corresponds to -o flag.
-
bidirectional
protected boolean bidirectionalIf true, this is a 'bidirectional' populate. The -s flag can be used with -b to cause fromFile to be treated as the source, and both sides of the user-defined branch view to be treated as the target, per the branch view mapping. Optional toFile arguments may be given to further restrict the scope of the target file set. -r is ignored when -s is used.Corresponds to -s flag.
-
reverseMapping
protected boolean reverseMappingReverse the mappings in the branch view, with the target files and source files exchanging place.Corresponds to the -r flag.
-
branch
If non-null, use a user-defined branch view. The source is the left side of the branch view and the target is the right side. With -r, the direction is reversed.Corresponds to -b flag.
-
stream
If non-null, use this stream's branch view. The source is the stream itself, and the target is the stream's parent. With -r, the direction is reversed. -P can be used to specify a parent stream other than the stream's actual parent. Note that to submit copied stream files, the current client must be dedicated to the target stream.Corresponds to -S flag.
-
parentStream
If non-null, specify a parent stream other than the stream's actual parent.Corresponds to -P flag.
-
-
Constructor Details
-
PopulateFilesOptions
public PopulateFilesOptions()Default constructor. -
PopulateFilesOptions
Strings-based constructor; see 'p4 help [command]' for possible 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.
- Parameters:
options- the options- See Also:
-
PopulateFilesOptions
public PopulateFilesOptions(String description, boolean forceBranchDeletedFiles, int maxFiles, boolean noUpdate, boolean showPopulatedFiles) Instantiates a new populate files options.- Parameters:
description- the descriptionforceBranchDeletedFiles- force branch of deleted filesmaxFiles- max filesnoUpdate- no updateshowPopulatedFiles- show populated files
-
PopulateFilesOptions
public PopulateFilesOptions(String description, boolean forceBranchDeletedFiles, int maxFiles, boolean noUpdate, boolean showPopulatedFiles, String branch, boolean reverseMapping, boolean bidirectional) Instantiates a new populate files options.- Parameters:
description- the descriptionforceBranchDeletedFiles- force branch of deleted filesmaxFiles- max filesnoUpdate- no updateshowPopulatedFiles- show populated filesbranch- the branchreverseMapping- reverse mappingbidirectional- bidirectional
-
PopulateFilesOptions
public PopulateFilesOptions(String description, boolean forceBranchDeletedFiles, int maxFiles, boolean noUpdate, boolean showPopulatedFiles, String stream, String parentStream, boolean reverseMapping) Instantiates a new populate files options.- Parameters:
description- the descriptionforceBranchDeletedFiles- force branch of deleted filesmaxFiles- max filesnoUpdate- no updateshowPopulatedFiles- show populated filesstream- the streamparentStream- the parent streamreverseMapping- reverse mapping
-
-
Method Details
-
processOptions
Process options.- Specified by:
processOptionsin classOptions- Parameters:
server- the server- Returns:
- the list
- Throws:
OptionsException- the options exception- See Also:
-
getDescription
Gets the description.- Returns:
- the description
-
setDescription
Sets the description.- Parameters:
description- the description- Returns:
- the populate files options
-
getMaxFiles
public int getMaxFiles()Gets the max files.- Returns:
- the max files
-
setMaxFiles
Sets the max files.- Parameters:
maxFiles- the max files- Returns:
- the populate files options
-
isForceBranchDeletedFiles
public boolean isForceBranchDeletedFiles()Checks if is force branch deleted files.- Returns:
- true, if is force branch deleted files
-
setForceBranchDeletedFiles
Sets the force branch deleted files.- Parameters:
forceBranchDeletedFiles- the force branch deleted files- Returns:
- the populate files options
-
isShowPopulatedFiles
public boolean isShowPopulatedFiles()Checks if is show populated files.- Returns:
- true, if is show populated files
-
setShowPopulatedFiles
Sets the show populated files.- Parameters:
showPopulatedFiles- the show populated files- Returns:
- the populate files options
-
isNoUpdate
public boolean isNoUpdate()Checks if is no update.- Returns:
- true, if is no update
-
setNoUpdate
Sets the no update.- Parameters:
noUpdate- the no update- Returns:
- the populate files options
-
isBidirectional
public boolean isBidirectional()Checks if is bidirectional.- Returns:
- true, if is bidirectional
-
setBidirectional
Sets the bidirectional.- Parameters:
bidirectional- the bidirectional- Returns:
- the populate files options
-
isReverseMapping
public boolean isReverseMapping()Checks if is reverse mapping.- Returns:
- true, if is reverse mapping
-
setReverseMapping
Sets the reverse mapping.- Parameters:
reverseMapping- the reverse mapping- Returns:
- the populate files options
-
getBranch
Gets the branch.- Returns:
- the branch
-
setBranch
Sets the branch.- Parameters:
branch- the branch- Returns:
- the populate files options
-
getStream
Gets the stream.- Returns:
- the stream
-
setStream
Sets the stream.- Parameters:
stream- the stream- Returns:
- the populate files options
-
getParentStream
Gets the parent stream.- Returns:
- the parent stream
-
setParentStream
Sets the parent stream.- Parameters:
parentStream- the parent stream- Returns:
- the populate files options
-