|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Resource
A resource, i.e. an entity uniquely identifiable (addressable) via an
ObjectID
or a URI
. A URI
is comprised
of a (type) schema and an scheme specific part. The (type) schema and the
scheme specific part are simple, unmanaged String
s.
NoteIt is essential to implement the equals
and the
hashCode
methods, a simple implementation might just delegate to
the ObjectID
implementation.
This interface is designed to be implemented by clients. |
Method Summary | |
---|---|
java.util.Date |
getCreated()
Returns a creation date related to the context used to create this Resource instance. |
java.util.Date |
getLastModified()
Returns a modification date related to the context used to create this Resource instance. |
ObjectID |
getObjectID()
Returns the ObjectID of this resource. |
java.lang.String |
getSchemeSpecificPart()
Returns the scheme specific part of this resource. |
java.lang.String |
getTypeSchema()
Returns the (type) schema of this resource. |
java.net.URI |
getURI()
Returns the unique identifier of the object |
Methods inherited from interface com.ibm.portal.Localized |
---|
getDescription, getLocales, getTitle |
Method Detail |
---|
ObjectID getObjectID()
ObjectID
of this resource.
getObjectID
in interface Identifiable
ObjectID
of this resource.java.lang.String getTypeSchema()
getSchemeSpecificPart()
this forms the URI
which
identifies this resource.
java.lang.String getSchemeSpecificPart()
getTypeSchema()
this forms the URI
which identifies
this resource.
java.net.URI getURI() throws java.net.URISyntaxException
null
java.net.URISyntaxException
- - if the URL cannot be constructedjava.util.Date getCreated()
Resource
instance.
getCreated
in interface TimeStamped
null
.java.util.Date getLastModified()
Resource
instance.
getLastModified
in interface TimeStamped
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |