public class RepositoryCheckinSpecification extends Object implements Serializable
In general, a specification with a version type of MAJOR
indicates that the major number
field is incremented by one. A version type of MINOR
indicates that the minor number field is
incremented by one. A version type of CUSTOM
enables you to specify the next version
number.
When specifying a CUSTOM
check in specification, the specified number must be greater than
the current version of the file.
Constructor and Description |
---|
RepositoryCheckinSpecification()
Default constructor.
|
RepositoryCheckinSpecification(boolean enableVersioningForNewFiles,
VersionType versionType,
String customVersion)
Constructor.
|
RepositoryCheckinSpecification(boolean enableVersioningForNewFiles,
VersionType versionType,
String customVersion,
String comment)
Constructor.
|
RepositoryCheckinSpecification(String comment)
Constructor.
|
RepositoryCheckinSpecification(String comment,
VersionType versionType)
Constructor.
|
RepositoryCheckinSpecification(String comment,
VersionType versionType,
String customVersion)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getComment()
Gets the description of the version to create.
|
String |
getCustomVersion()
Gets the version to use, if the version type is
CUSTOM . |
VersionType |
getVersionType()
Gets the method to generate the next version.
|
int |
hashCode() |
boolean |
isEnableVersioningForNewFiles()
Gets whether new files are versioned when created.
|
void |
setComment(String comment)
Sets the description of the version to create.
|
void |
setCustomVersion(String customVersion)
Sets the version, if the version type is
CUSTOM . |
void |
setEnableVersioningForNewFiles(boolean enableVersioningForNewFiles)
Sets whether new files are versioned when they are created.
|
void |
setVersionType(VersionType versionType)
Sets the method to generate the next version.
|
String |
toString() |
public RepositoryCheckinSpecification()
public RepositoryCheckinSpecification(String comment)
comment
- A description of the version to create.public RepositoryCheckinSpecification(String comment, VersionType versionType)
comment
- A description of the version to create.versionType
- The method to generate the next version.public RepositoryCheckinSpecification(String comment, VersionType versionType, String customVersion)
comment
- A description of the version to create.versionType
- The method to generate the next version.customVersion
- The version, if the version type is CUSTOM
.public RepositoryCheckinSpecification(boolean enableVersioningForNewFiles, VersionType versionType, String customVersion)
enableVersioningForNewFiles
- Indicates whether to version new files.versionType
- The method to generate the next version.customVersion
- The version, if the version type is CUSTOM
.public RepositoryCheckinSpecification(boolean enableVersioningForNewFiles, VersionType versionType, String customVersion, String comment)
enableVersioningForNewFiles
- Indicates whether to version new files.comment
- A description of the version.versionType
- The method to generate the next version.customVersion
- The version, if the version type is CUSTOM
.public VersionType getVersionType()
public void setVersionType(VersionType versionType)
versionType
- The method to generate the next version.public String getCustomVersion()
CUSTOM
.CUSTOM
.public void setCustomVersion(String customVersion)
CUSTOM
.customVersion
- The version, if the version type is CUSTOM
.public String getComment()
public void setComment(String comment)
comment
- The description of the version to create.public boolean isEnableVersioningForNewFiles()
public void setEnableVersioningForNewFiles(boolean enableVersioningForNewFiles)
enableVersioningForNewFiles
- Indicator whether new files are versioned when they are created.<i>Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA</i>