step
Interface StepRecord
- All Superinterfaces:
- Serializable, StepObject
- All Known Implementing Classes:
- EncoderEvent, MetaRecord
- public interface StepRecord
- extends StepObject
The common interface for all STEP record objects.
In addition to implementing the StepObject
interface and
fieldIterator()
method, every STEP record class should
implement the following features:
- The class should create a definition object (
RecordDef
) and
register the definition as the
prototype definition for the record.
This operation is normally performed as part of the static (class)
initializer.
- The class should provide a
RecordFactory
object for creating
new instances from a set of field data. The factory should be added to
the default definition object.
The factory is normally implemented as an inner class of the record.
NOTE: The ordering of serialized fields, in particular with respect to
inheritance, is not strictly defined (or enforced). The only constraint is
that both the FieldIterator
and RecordFactory
must use the
same ordering.
TYPE
public static final Type TYPE
fieldIterator
public FieldIterator fieldIterator()
- Get an iterator for serial access to this record's fields.
NOTE: The order in which fields are accessed by the iterator should be
compatible with the factory associated with this record.
- See Also:
RecordFactory