|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PartBean
Mutable part that has JavaBean property and serial number support.
Method Summary | |
---|---|
void |
accept(List<PartBean> parents,
MultiPartBeanVisitor visitor)
Allows traversing the model according to the visitor pattern. |
void |
accept(PartBeanVisitor visitor)
Allows traversing the model according to the visitor pattern. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener to this part bean. |
boolean |
checkLocalPartConsistency(PartProblemReporter reporter)
Checks the local consistency of this part. |
boolean |
equalSerialNumber(PartBean part)
Compares the serial number of this part to the one of the specified part. |
PartBean |
findBySerialNumber(SerialNumber serialNumber)
Returns the part bean corresponding to the specified serial number. |
Class<? extends PartBean> |
getPartBeanType()
Returns the primary part bean interface class that this part implements. |
SerialNumber |
getSerialNumber()
Returns the serial number of this part. |
boolean |
instanceOf(Class<? extends PartBean> type)
Returns true if this part bean is instance of type. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener from this part bean. |
String |
toShortString()
Returns the serial number string representation of this class. |
Methods inherited from interface org.openpermis.policy.Part |
---|
equals, hashCode, toString |
Method Detail |
---|
boolean checkLocalPartConsistency(PartProblemReporter reporter)
Nothing is said about consistency of this part in a global policy wide sense. This function is used to implement Policy.isPolicyConsistent()
SerialNumber getSerialNumber()
Class<? extends PartBean> getPartBeanType()
boolean instanceOf(Class<? extends PartBean> type)
true
if this part bean is instance of type.
type
- the type to check for.
true
if this part bean is instance of type.boolean equalSerialNumber(PartBean part)
part
- the part bean whose serial number to compare to this one.
true
if the specified part has the same serial number as this one,
false
otherwise.PartBean findBySerialNumber(SerialNumber serialNumber)
If the part bean contains other part beans, it searches its child beans recursively.
serialNumber
- the SerialNumber
of the part bean to return.
PartBean
or null
if no
matching part bean is found.String toShortString()
The simplified string representation only consists only of the
simple implementation class name
of this part followed
by the serial number in square brackets.
void accept(PartBeanVisitor visitor)
Each part bean must call method visitor.visit(this)
visitor
- a PartBeanVisitor
.void accept(List<PartBean> parents, MultiPartBeanVisitor visitor)
Each part bean must call method visitor.visit(this)
parents
- the path of parents of this part.visitor
- a PartBeanVisitor
.void addPropertyChangeListener(PropertyChangeListener listener)
The change listener will be notified whenever this part or a sub part that is contained in this part changes.
Changes of parts contained are forwarded with a property change event that is using
null
as old and new value.
The same listener
object may be added more than once, and will be called as many
times as it is added.
If the listener
is null
, no action is taken.
listener
- the listener to be added, may be null
.void removePropertyChangeListener(PropertyChangeListener listener)
If the same listener
was added more than once, it will be notified one less
time after being removed.
If the listener
is null
, or was never added, no action is taken.
listener
- the listener to be removed, may be null
.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG