|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sas.hls.resource.repository.RepositoryResource
public abstract class RepositoryResource
Abstract parent class for resources in the repository.
Constructor Summary | |
---|---|
RepositoryResource(String identifier,
String objectType,
String path,
Date lastModified,
List<Attribute> attributes)
It is not intended or recommended that the consumer of the API construct these objects. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one. |
Attribute |
getAttribute(String name)
Return the attribute with the provided name. |
List<Attribute> |
getAttributes()
Return the list of attributes associated with this repository resource. |
String |
getIdentifier()
Get the identifier of this object. |
Date |
getLastModifiedDate()
Return the date this repository resource was last modified. |
String |
getObjectType()
Get the object type of this item. |
String |
getPath()
Return the path to this repository resource. |
int |
hashCode()
Return a hash code value for the object. |
void |
setAttributes(List<Attribute> attributes)
|
String |
toString()
Return a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RepositoryResource(String identifier, String objectType, String path, Date lastModified, List<Attribute> attributes)
RepositoryResource
objects returned by the API.
identifier
- The identifier of this repository resource.objectType
- The object type of this repository resource.path
- The path of this resource in the repository.lastModified
- The date this repository resource was last modified.attributes
- The attributes defined on this repository resource.Method Detail |
---|
public String getIdentifier()
Identifiable
getIdentifier
in interface Identifiable
public String getObjectType()
Identifiable
getObjectType
in interface Identifiable
public String getPath()
public Date getLastModifiedDate()
public List<Attribute> getAttributes()
public Attribute getAttribute(String name)
name
- The name of the attribute being requested
null
if it does not exist.public void setAttributes(List<Attribute> attributes)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |