com.sas.hls.resource.repository
Class RepositoryResource

java.lang.Object
  extended by 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

Field Summary
protected  List<Attribute> attributes
           
protected  Date lastModifiedDate
           
protected  String path
           
 
Constructor Summary
RepositoryResource(String path, Date lastModified, List<Attribute> attributes)
           
 
Method Summary
 boolean equals(Object obj)
           
 Attribute getAttribute(String name)
           
 List<Attribute> getAttributes()
           
 Date getLastModifiedDate()
           
 String getPath()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

path

protected String path

lastModifiedDate

protected Date lastModifiedDate

attributes

protected List<Attribute> attributes
Constructor Detail

RepositoryResource

public RepositoryResource(String path,
                          Date lastModified,
                          List<Attribute> attributes)
Parameters:
path - Path of the resource in the repository
lastModified - The date the resource was last modified
attributes - Attributes defined on the resource.
Method Detail

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