|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | 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(java.lang.Object another)
Compares this resource to the resource in the specified object. |
long |
getID()
Gets a 64-bit hashcode for a resource. |
java.lang.String[] |
getKeys()
Gets keys for the resource. |
Resource |
getParentResource()
Gets a Resource object that represents the parent of the current
resource. |
java.lang.String |
getType()
Gets the type of this resource. |
java.lang.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. |
java.lang.String |
toString()
Returns a string representation of this resource. |
Method Detail |
public boolean equals(java.lang.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 java.lang.String toString()
public int hashCode()
public java.lang.String getType()
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 long getID()
public java.lang.String[] getKeys()
public java.lang.String[] getValues()
getKeys
because the latter depends only on the type of the
resource.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |