|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.cp.resources.builder.AbstractCustomResource
public abstract class AbstractCustomResource
This provides a skeletal implementation of the
CustomResource interface, to
minimize the required effort for implementing this interface.
This class especially overrides Object.equals(Object)
and Object.hashCode() methods.
This interface is designed to be implemented by clients. |
Constructor Summary | |
---|---|
AbstractCustomResource(java.util.Collection<java.lang.String> aCategories,
java.net.URI aUri,
ObjectID aObjectID)
Initializes this class |
|
AbstractCustomResource(CustomResourceBuilder.ResourceParameters params)
Initializes this class from the parameters |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.Collection<java.lang.String> |
getCategories()
Returns the categories this resource belongs to. |
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 |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.portal.cp.resources.Resource |
---|
getCreated, getLastModified |
Methods inherited from interface com.ibm.portal.Localized |
---|
getDescription, getLocales, getTitle |
Constructor Detail |
---|
public AbstractCustomResource(java.util.Collection<java.lang.String> aCategories, java.net.URI aUri, ObjectID aObjectID)
aCategories
- The categories of the custom resource, never null
, but may be emptyaUri
- The URI
of the resourceaObjectID
- The ObjectID
of the resourcepublic AbstractCustomResource(CustomResourceBuilder.ResourceParameters params)
params
- The parameters, must not be null
.Method Detail |
---|
public java.util.Collection<java.lang.String> getCategories() throws ModelException
CustomResource
getCategories
in interface CustomResource
ModelException
public ObjectID getObjectID()
Resource
ObjectID
of this resource.
getObjectID
in interface Resource
getObjectID
in interface Identifiable
ObjectID
of this resource.public java.lang.String getSchemeSpecificPart()
Resource
Resource.getTypeSchema()
this forms the URI
which identifies
this resource.
getSchemeSpecificPart
in interface Resource
public java.lang.String getTypeSchema()
Resource
Resource.getSchemeSpecificPart()
this forms the URI
which
identifies this resource.
getTypeSchema
in interface Resource
public java.net.URI getURI() throws java.net.URISyntaxException
Resource
getURI
in interface Resource
null
java.net.URISyntaxException
- - if the URL cannot be constructedpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |