Interface FieldElementHolder
- All Known Implementing Classes:
ConcurrencyGroupElement,FieldGroupElement,PersistenceClassElement
public interface FieldElementHolder
- Version:
- %I%
- Author:
- raccah
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(PersistenceFieldElement field) Add the supplied field to the collection of fields maintained by this holder.voidaddFields(PersistenceFieldElement[] fields) Add the supplied fields to the collection of fields maintained by this holder.booleanTests whether the supplied field is in the collection of fields maintained by this holder.Returns the field with the supplied name from the collection of fields maintained by this holder.Returns the collection of fields maintained by this holder in the form of an array.voidRemove the supplied field from the collection of fields maintained by this holder.voidremoveFields(PersistenceFieldElement[] fields) Removed the supplied fields from the collection of fields maintained by this holder.voidsetFields(PersistenceFieldElement[] fields) Sets the collection of fields maintained by this holder to the contents of the supplied array.
-
Method Details
-
addField
Add the supplied field to the collection of fields maintained by this holder.- Parameters:
field- the field to be added- Throws:
ModelException- if impossible
-
addFields
Add the supplied fields to the collection of fields maintained by this holder.- Parameters:
fields- the array of fields to be added- Throws:
ModelException- if impossible
-
removeField
Remove the supplied field from the collection of fields maintained by this holder.- Parameters:
field- the field to be removed- Throws:
ModelException- if impossible
-
removeFields
Removed the supplied fields from the collection of fields maintained by this holder.- Parameters:
fields- the array of fields to be removed- Throws:
ModelException- if impossible
-
getFields
PersistenceFieldElement[] getFields()Returns the collection of fields maintained by this holder in the form of an array.- Returns:
- the fields maintained by this holder
-
setFields
Sets the collection of fields maintained by this holder to the contents of the supplied array.- Parameters:
fields- the fields maintained by this holder- Throws:
ModelException- if impossible
-
getField
Returns the field with the supplied name from the collection of fields maintained by this holder.- Parameters:
name- the name to match- Returns:
- the field with the supplied name,
nullif none exists
-
containsField
Tests whether the supplied field is in the collection of fields maintained by this holder.- Parameters:
field- the field to be tested
-