com.sas.hls.resource.repository
Class RepositoryResource
java.lang.Object
com.sas.hls.resource.repository.RepositoryResource
- All Implemented Interfaces:
- Resource, Serializable
- Direct Known Subclasses:
- RepositoryContainer, RepositoryFile
public abstract class RepositoryResource
- extends Object
- implements Resource
Abstract parent class for resources in the repository.
- See Also:
- Serialized Form
path
protected String path
lastModifiedDate
protected Date lastModifiedDate
attributes
protected List<Attribute> attributes
RepositoryResource
public RepositoryResource(String path,
Date lastModified,
List<Attribute> attributes)
- Parameters:
path
- Path of the resource in the repositorylastModified
- The date the resource was last modifiedattributes
- Attributes defined on the resource.
getPath
public String getPath()
- Returns:
- Path of the resource.
getLastModifiedDate
public Date getLastModifiedDate()
- Returns:
- Date the resource was last modified.
getAttributes
public List<Attribute> getAttributes()
- Returns:
- List of attributes defined on the resource.
getAttribute
public Attribute getAttribute(String name)
- Parameters:
name
- of the attribute being requested
- Returns:
- value of attribute with the provided name.
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