Interface PersistenceElement.Impl
- All Known Subinterfaces:
ConcurrencyGroupElement.Impl,FieldGroupElement.Impl,PersistenceClassElement.Impl,PersistenceFieldElement.Impl,PersistenceMemberElement.Impl,RelationshipElement.Impl
- All Known Implementing Classes:
ConcurrencyGroupElementImpl,FieldGroupElementImpl,PersistenceClassElementImpl,PersistenceElementImpl,PersistenceFieldElementImpl,PersistenceMemberElementImpl,RelationshipElementImpl
- Enclosing class:
- PersistenceElement
public static interface PersistenceElement.Impl
Pluggable implementation of the storage of element properties.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a property change listener.voidAdd a vetoable change listener.voidattachToElement(PersistenceElement element) Called to attach the implementation to a specific element.getName()Get the name of this persistence element.voidRemove a property change listener.voidRemove a vetoable change listener.voidSet the name of this persistence element.
-
Field Details
-
ADD
static final int ADDAdd some items.- See Also:
-
REMOVE
static final int REMOVERemove some items.- See Also:
-
SET
static final int SETSet some items, replacing the old ones.- See Also:
-
-
Method Details
-
attachToElement
Called to attach the implementation to a specific element. Will be called in the element's constructor. Allows implementors of this interface to store a reference to the holder class, useful for implementing the property change listeners.- Parameters:
element- the element to attach to
-
addPropertyChangeListener
Add a property change listener.- Parameters:
l- the listener to add
-
removePropertyChangeListener
Remove a property change listener.- Parameters:
l- the listener to remove
-
addVetoableChangeListener
Add a vetoable change listener.- Parameters:
l- the listener to add
-
removeVetoableChangeListener
Remove a vetoable change listener.- Parameters:
l- the listener to remove
-
getName
String getName()Get the name of this persistence element.- Returns:
- the name
-
setName
Set the name of this persistence element.- Parameters:
name- the name- Throws:
ModelException- if impossible
-