com.sas.hls.resource
Class ResourceSpecification

java.lang.Object
  extended by com.sas.hls.resource.ResourceSpecification
All Implemented Interfaces:
Serializable

public class ResourceSpecification
extends Object
implements Serializable

The specification of a resource to be created, or which already exists.

See Also:
Serialized Form

Nested Class Summary
static class ResourceSpecification.ResourceType
          The allowed type of resources that can be specified.
 
Constructor Summary
ResourceSpecification(String path)
          Constructor
ResourceSpecification(String path, String version, boolean includeSubFolders)
          Constructor
ResourceSpecification(String path, String version, ResourceSpecification.ResourceType type, boolean includeSubFolders)
          Constructor
 
Method Summary
 boolean equals(Object obj)
           
 String getPath()
          Get the specified path.
 ResourceSpecification.ResourceType getType()
          Get the resource type specified.
 String getVersion()
          Get the specified version.
 int hashCode()
           
 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(ResourceSpecification.ResourceType type)
          Set the resource type specified.
 void setVersion(String version)
          Set the specified version.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceSpecification

public ResourceSpecification(String path,
                             String version,
                             boolean includeSubFolders)
Constructor

Parameters:
path - path of the resource
version - the version label of the resource
includeSubFolders -

ResourceSpecification

public ResourceSpecification(String path,
                             String version,
                             ResourceSpecification.ResourceType type,
                             boolean includeSubFolders)
Constructor

Parameters:
path - path of the resource
version - the version label of the resource
type - the type of the resource
includeSubFolders -

ResourceSpecification

public ResourceSpecification(String path)
Constructor

Parameters:
path - path of the resource
Method Detail

getPath

public String getPath()
Get the specified path.

Returns:
the path

setPath

public void setPath(String path)
Set the specified path.

Parameters:
path - the path to set

getVersion

public String getVersion()
Get the specified version.

Returns:
the version

setVersion

public void setVersion(String version)
Set the specified version.

Parameters:
version - the version to set

isIncludeSubFolders

public boolean isIncludeSubFolders()
Is the includeSubFolders value set to true?

Returns:
the includeSubFolders value

setIncludeSubFolders

public void setIncludeSubFolders(boolean includeSubFolders)
Set the includeSubFolders value

Parameters:
includeSubFolders - the includeSubFolders value to set

getType

public ResourceSpecification.ResourceType getType()
Get the resource type specified.

Returns:
the type

setType

public void setType(ResourceSpecification.ResourceType type)
Set the resource type specified.

Parameters:
type - the type to set

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2012, SAS Institute Inc., Cary, NC, USA