public class ItemSpecification extends Object implements Serializable
FILE
, a null
value for version indicates
the latest version. If type is FOLDER
, the version value will be ignored.Modifier and Type | Class and Description |
---|---|
static class |
ItemSpecification.Type
The allowed type that can be specified.
|
Constructor and Description |
---|
ItemSpecification(String path)
Constructor
|
ItemSpecification(String path,
String version)
Constructor
|
ItemSpecification(String path,
String version,
boolean includeSubFolders)
Constructor
|
ItemSpecification(String path,
String version,
ItemSpecification.Type type,
boolean includeSubFolders)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one.
|
String |
getPath()
Get the specified path.
|
ItemSpecification.Type |
getType()
Get the content type specified.
|
String |
getVersion()
Get the specified version.
|
int |
hashCode()
Return a hash code value for the object.
|
boolean |
isIncludeSubFolders()
Is the includeSubFolders value set to true?
|
void |
setIncludeSubFolders(boolean includeSubFolders)
Set the includeSubFolders value
|
void |
setPath(String path)
Set the specified path.
|
void |
setType(ItemSpecification.Type type)
Set the content type specified.
|
void |
setVersion(String version)
Set the specified version.
|
String |
toString() |
public ItemSpecification(String path, String version)
path
- path of the itemversion
- the version label of the itempublic ItemSpecification(String path, String version, boolean includeSubFolders)
path
- path of the itemversion
- the version label of the itemincludeSubFolders
- public ItemSpecification(String path, String version, ItemSpecification.Type type, boolean includeSubFolders)
path
- path of the itemversion
- the version label of the itemtype
- the type of the itemincludeSubFolders
- public ItemSpecification(String path)
path
- path of the itempublic String getPath()
public void setPath(String path)
path
- the path to setpublic String getVersion()
FILE
. Version will be
ignored if type is CONTAINER
.FILE
. Version will be
ignored if type is CONTAINER
.public void setVersion(String version)
FILE
. Version will be
ignored if type is CONTAINER
.version
- the version to set. Specifying null equates to the latest version if type is FILE
. Version will be
ignored if type is CONTAINER
.public boolean isIncludeSubFolders()
public void setIncludeSubFolders(boolean includeSubFolders)
includeSubFolders
- the includeSubFolders value to setpublic ItemSpecification.Type getType()
public void setType(ItemSpecification.Type type)
type
- the type to setpublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA