public class PersistenceElementCollection extends Object
| Constructor and Description |
|---|
PersistenceElementCollection()
Create new PersistenceElementCollection with no owner, property, or
template.
|
PersistenceElementCollection(PersistenceElementImpl owner,
String propertyName,
Object[] template)
Creates new PersistenceElementCollection
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeElements(List elements,
int action)
Change the set of elements.
|
void |
changeElements(PersistenceElement[] elements,
int action)
Change the set of elements.
|
PersistenceElement |
getElement(String name)
Returns the element with the supplied name from the collection of
elements maintained by this collection.
|
PersistenceElement[] |
getElements()
Returns the collection of elements maintained by this holder in the form
of an array.
|
PersistenceElementImpl |
getOwner()
Returns the owner of this collection.
|
String |
getPropertyName()
Returns the property name of this collection.
|
Object[] |
getTemplate()
Returns the template for the array of this collection.
|
void |
setElements(PersistenceElement[] elements)
Set the collection of elements maintained by this holder to the
supplied array.
|
void |
setOwner(PersistenceElementImpl owner)
Set the owner of this collection to the supplied implementation.
|
void |
setPropertyName(String propertyName)
Set the property name of this collection to the supplied name.
|
void |
setTemplate(Object[] template)
Set the template for the array of this collection to the supplied
array.
|
public PersistenceElementCollection()
public PersistenceElementCollection(PersistenceElementImpl owner, String propertyName, Object[] template)
public void changeElements(PersistenceElement[] elements, int action) throws ModelException
elements - the new elementsaction - PersistenceElement.Impl.ADD,
PersistenceElement.Impl.REMOVE, or
PersistenceElement.Impl.SETModelException - if impossiblepublic void changeElements(List elements, int action) throws ModelException
elements - the new elementsaction - PersistenceElement.Impl.ADD,
PersistenceElement.Impl.REMOVE, or
PersistenceElement.Impl.SETModelException - if impossiblepublic PersistenceElement[] getElements()
public PersistenceElement getElement(String name)
name - the name to matchnull if none
existspublic PersistenceElementImpl getOwner()
public void setOwner(PersistenceElementImpl owner)
owner - the owner of this collectionpublic Object[] getTemplate()
public void setTemplate(Object[] template)
template - the typed template of this collectionpublic String getPropertyName()
public void setPropertyName(String propertyName)
propertyName - the property name for this collectionpublic void setElements(PersistenceElement[] elements)
elements - the collection of elements maintained by this holderCopyright © 2013. All Rights Reserved.