{ } }
Tree PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.portal.cp.resources.builder
Class AbstractCustomResourcejava.lang.Objectcom.ibm.portal.cp.resources.builder.AbstractCustomResource
- All Implemented Interfaces:
- CustomResource, Resource, Identifiable, Localized, TimeStamped
public abstract class AbstractCustomResource- extends java.lang.Object
- implements CustomResource
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.
- Since:
- 7.0.0
- Note:
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 classAbstractCustomResource(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 objectint 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 AbstractCustomResource
public AbstractCustomResource(java.util.Collection<java.lang.String> aCategories, java.net.URI aUri, ObjectID aObjectID)
- Initializes this class
- Parameters:
- aCategories - The categories of the custom resource, never null , but may be empty
- aUri - The URI of the resource
- aObjectID - The ObjectID of the resource
AbstractCustomResource
public AbstractCustomResource(CustomResourceBuilder.ResourceParameters params)
- Initializes this class from the parameters
- Parameters:
- params - The parameters, must not be null.
Method Detail getCategories
public java.util.Collection<java.lang.String> getCategories() throws ModelException
- Description copied from interface: CustomResource
- Returns the categories this resource belongs to.
- Specified by:
- getCategories in interface CustomResource
- Returns:
- The categories this resource belongs to.
- Throws:
- ModelException
getObjectID
public ObjectID getObjectID()
- Description copied from interface: Resource
- Returns the ObjectID of this resource.
- Specified by:
- getObjectID in interface Resource
- Specified by:
- getObjectID in interface Identifiable
- Returns:
- The ObjectID of this resource.
getSchemeSpecificPart
public java.lang.String getSchemeSpecificPart()
- Description copied from interface: Resource
- Returns the scheme specific part of this resource. Together with Resource.getTypeSchema() this forms the URI which identifies this resource.
- Specified by:
- getSchemeSpecificPart in interface Resource
- Returns:
- The scheme specific part of this resource.
getTypeSchema
public java.lang.String getTypeSchema()
- Description copied from interface: Resource
- Returns the (type) schema of this resource. Together with Resource.getSchemeSpecificPart() this forms the URI which identifies this resource.
- Specified by:
- getTypeSchema in interface Resource
- Returns:
- The (type) schema of this resource.
getURI
public java.net.URI getURI() throws java.net.URISyntaxException
- Description copied from interface: Resource
- Returns the unique identifier of the object
- Specified by:
- getURI in interface Resource
- Returns:
- URI of the object, never null
- Throws:
- java.net.URISyntaxException - - if the URL cannot be constructed
hashCode
public int hashCode()
- Overrides:
- hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
- equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
Tree PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD