|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Part
Describes a part of a policy.
All complex objects in a policy implement the part interface.
Method Summary | |
---|---|
boolean |
equals(Object obj)
Check if this policy part is equivalent to the one specified. |
int |
hashCode()
Returns the hash code of this policy part. |
boolean |
isValid(PartProblemReporter reporter)
Check if this part and all parts contained are valid. |
String |
toString()
Returns a string representation of this policy part. |
Method Detail |
---|
boolean isValid(PartProblemReporter reporter)
Instead of enforcing that a part is valid at all times a part may be invalid (for example while loading a policy from a file or while editing a part). Use this method to assert that a part is valid.
reporter
- optional callback where violiations are reported, may be null
if the caller is not interested in details about the violations.
true
if the part and all parts contained are valid,
false
if this part or at least one part contained are invalid.boolean equals(Object obj)
A part is considered equivalent to this part if it's state is equivalent to the state of this part and all parts contained are equivalent to the parts contained in this policy part.
equals
in class Object
obj
- the policy part to compare this policy part to.hashCode()
int hashCode()
In addition to the general contract for Object.hashCode()
the hash code
of a policy part should not make use of the default object hash code. Instead the
hash code of a policy part should only be calculated according to the contents of
the policy part in such a way that different instances of a policy part with the
same content return the same hash code.
hashCode
in class Object
equals(Object)
String toString()
The string representation is purely informational and provides summary of the part
in the following form: PartName [serial=value, ...]
. The string representation
starts with the simple implementation class name
and is
followed by its details in square brackets.
toString
in class Object
Object.toString()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:10
Copyright (c) 2002-2007 Ergon Informatik AG