org.nodal.model
Interface RecordContent

All Superinterfaces:
Content
All Known Subinterfaces:
RecordNode, RecordNode.Editor
All Known Implementing Classes:
BareRecord, RecordFilter

public interface RecordContent
extends Content

The specific interface for accessing the content of a Node of type RecordType.

A Record consists of a fixed set of fields, each with a Name and an associated type.

Author:
Lee Iverson
See Also:
Content

Nested Class Summary
static interface RecordContent.Editor
          Encapsulates the ability to edit RecordContent objects.
 
Method Summary
 Getter field(Name name)
          Return a Getter for the field named.
 Getter field(java.lang.String name)
          Return a Getter for the field named.
 java.lang.Object getField(Name name)
          Return the Object stored in the name field.
 java.lang.Object getField(java.lang.String name)
          Return the Object stored in the name field.
 boolean hasField(Name fieldName)
          Checks for validity of a field Name.
 boolean hasField(java.lang.String fieldName)
          Checks for validity of a field named fieldName.
 
Methods inherited from interface org.nodal.model.Content
getValue, invert, isValidProperty, properties, size, type, value
 

Method Detail

hasField

public boolean hasField(Name fieldName)
Checks for validity of a field Name.

Parameters:
fieldName - the Name of the field
Returns:
true if this record has this field

hasField

public boolean hasField(java.lang.String fieldName)
Checks for validity of a field named fieldName.

Parameters:
fieldName - the Name of the field
Returns:
true if this record has this field

field

public Getter field(Name name)
Return a Getter for the field named.


field

public Getter field(java.lang.String name)
Return a Getter for the field named.


getField

public java.lang.Object getField(Name name)
Return the Object stored in the name field.


getField

public java.lang.Object getField(java.lang.String name)
Return the Object stored in the name field.