de.mguennewig.pobjects.metadata
Class RecordEntry
java.lang.Object
de.mguennewig.pobjects.metadata.Column
de.mguennewig.pobjects.metadata.FormEntry
de.mguennewig.pobjects.metadata.ValueEntry
de.mguennewig.pobjects.metadata.RecordEntry
- Direct Known Subclasses:
- RadioEntry
public class RecordEntry
- extends ValueEntry
A special kind of form entry, which adds a fixed set of form entries.
- Author:
- Michael Günnewig
|
Constructor Summary |
RecordEntry(java.lang.String name,
FormEntry[] children)
Creates a new record entry with standard layout. |
|
Method Summary |
FormEntry |
getChildEntry(int index)
Returns the form entry specification for the n-th element of the record. |
int |
getNumChildEntries()
Returns the number of form entries belonging to this record. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RecordEntry
public RecordEntry(java.lang.String name,
FormEntry[] children)
- Creates a new record entry with standard layout.
- Parameters:
name - A unique string, which represents this form entry.children - The form entry specifications for the elements of the
record.
- Throws:
java.lang.IllegalArgumentException - if no child entry declarations are given
getChildEntry
public final FormEntry getChildEntry(int index)
- Returns the form entry specification for the n-th element of the record.
- Parameters:
index - The index starting with zero, into the list of form entries.
- Throws:
java.lang.ArrayIndexOutOfBoundsException - if index doesn't exist
getNumChildEntries
public final int getNumChildEntries()
- Returns the number of form entries belonging to this record.