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.ImplPluggable implementation of the storage of element properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener l)Add a property change listener.voidaddVetoableChangeListener(VetoableChangeListener l)Add a vetoable change listener.voidattachToElement(PersistenceElement element)Called to attach the implementation to a specific element.StringgetName()Get the name of this persistence element.voidremovePropertyChangeListener(PropertyChangeListener l)Remove a property change listener.voidremoveVetoableChangeListener(VetoableChangeListener l)Remove a vetoable change listener.voidsetName(String name)Set the name of this persistence element.
-
-
-
Field Detail
-
ADD
static final int ADD
Add some items.- See Also:
- Constant Field Values
-
REMOVE
static final int REMOVE
Remove some items.- See Also:
- Constant Field Values
-
SET
static final int SET
Set some items, replacing the old ones.- See Also:
- Constant Field Values
-
-
Method Detail
-
attachToElement
void attachToElement(PersistenceElement element)
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
void addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener.- Parameters:
l- the listener to add
-
removePropertyChangeListener
void removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener.- Parameters:
l- the listener to remove
-
addVetoableChangeListener
void addVetoableChangeListener(VetoableChangeListener l)
Add a vetoable change listener.- Parameters:
l- the listener to add
-
removeVetoableChangeListener
void removeVetoableChangeListener(VetoableChangeListener l)
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
void setName(String name) throws ModelException
Set the name of this persistence element.- Parameters:
name- the name- Throws:
ModelException- if impossible
-
-