|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Resource
interface provides the definition for an object that represents
a resource that may be protected from unauthorized access.
Method Summary | |
boolean |
equals(Object another)
Compares this resource to the resource in the specified object. |
long |
getID()
Gets a 64-bit hashcode for a resource. |
String[] |
getKeys()
Gets keys for the resource. |
Resource |
getParentResource()
Gets a Resource object that represents the parent of the current
resource. |
String |
getType()
Gets the type of this resource. |
String[] |
getValues()
Gets the values corresponding to the keys of this resource's type. |
int |
hashCode()
Returns an identifier for the resource as a hash code. |
String |
toString()
Returns a string representation of this resource. |
Method Detail |
public boolean equals(Object another)
another
- another resource with which to compare this resource.
TRUE
indicates that the resource passed in is the same as that encapsulated
by this resource; a value of FALSE
indicates that it is
not the same.public long getID()
public String[] getKeys()
public Resource getParentResource()
Resource
object that represents the parent of the current
resource. If the resource does not have a parent, the value of
null
must be returned.
Resource
object of the parent resource.public String getType()
public String[] getValues()
getKeys
because the latter depends only on the type of the
resource.
public int hashCode()
public String toString()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |