|
![]() |
||||||||
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 |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener to this part bean. |
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. |
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, isValid, toString |
Method Detail |
---|
SerialNumber getSerialNumber()
Class<? extends PartBean> getPartBeanType()
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 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 |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:49
Copyright (c) 2002-2007 Ergon Informatik AG