de.mguennewig.pobjects.metadata
Class RecordEntry

java.lang.Object
  extended by de.mguennewig.pobjects.metadata.Column
      extended by de.mguennewig.pobjects.metadata.FormEntry
          extended by de.mguennewig.pobjects.metadata.ValueEntry
              extended by 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

Field Summary
 
Fields inherited from class de.mguennewig.pobjects.metadata.ValueEntry
RENDER_AS_DISABLED, RENDER_AS_HIDDEN, RENDER_AS_INPUT, RENDER_AS_TEXT
 
Fields inherited from class de.mguennewig.pobjects.metadata.FormEntry
ADD_METHOD, CHANGED_METHOD, CLASS_NAME, LAYOUT_NO_HEADER_CELL, LAYOUT_PULL_IN, LAYOUT_PULL_IN_CELL, LAYOUT_STANDARD
 
Fields inherited from class de.mguennewig.pobjects.metadata.Column
GET_METHOD, GET_METHOD_VISUAL, MEMBER_ATTR, MEMBER_ATTR_TYPE, MEMBER_NAME, SET_METHOD
 
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 de.mguennewig.pobjects.metadata.ValueEntry
getRenderAs
 
Methods inherited from class de.mguennewig.pobjects.metadata.FormEntry
getLayout, name
 
Methods inherited from class de.mguennewig.pobjects.metadata.Column
getDescription, getIndex, getName, getSchemaName, getType, setDescription, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.