public class GenericRecordDefinition extends RecordDefinition implements Serializable
RecordDefinition extending class acts as a generic placeholder for record definitions. It does not add much in
the general definition provided by the RecordDefinition super class, other than supplying a readily available, non
abstract implementationdirective, Fields| Constructor and Description |
|---|
GenericRecordDefinition()
Create a new instance
|
GenericRecordDefinition(FieldDefinition[] fieldDefinitions)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(GenericRecordDefinition other) |
void |
extendDeflate(DataOutput out)
Method that needs to be implemented by the
RecordDefinition extenders to deflate any additional information
kept |
boolean |
extendEquals(Object obj)
Method that needs to be implemented by the
RecordDefinition extenders to extend the equality logic
based on additional logic contained in the implementations |
void |
extendFromXML(Element element) |
void |
extendInflate(DataInput in)
Method that needs to be implemented by the
RecordDefinition extenders to inflate any additional information
previously deflated by the respective extender method |
void |
extendToXML(Element element) |
copyFrom, deflate, equals, fromXML, getDefinition, getDefinition, getDefinitionSize, getTransportDirective, inflate, setTransportDirective, toXMLpublic GenericRecordDefinition()
RecordDefinition.RecordDefinition()public GenericRecordDefinition(FieldDefinition[] fieldDefinitions)
fieldDefinitions - the field definitions to set for the record definitionRecordDefinition#RecordDefinition(FieldDefinition[])public void copyFrom(GenericRecordDefinition other) throws GRS2RecordSerializationException
GRS2RecordSerializationExceptionpublic boolean extendEquals(Object obj)
RecordDefinition extenders to extend the equality logic
based on additional logic contained in the implementations
This method simply checks for type equality and does not base its decision an any other elements
extendEquals in class RecordDefinitionobj - the object to check equality forRecordDefinition.extendEquals(java.lang.Object)public void extendDeflate(DataOutput out) throws GRS2RecordSerializationException
RecordDefinition extenders to deflate any additional information
kept
nothing to add to deflate
extendDeflate in class RecordDefinitionout - the stream to deflate toGRS2RecordSerializationException - there was a serialization errorRecordDefinition.extendDeflate(java.io.DataOutput)public void extendInflate(DataInput in) throws GRS2RecordSerializationException
RecordDefinition extenders to inflate any additional information
previously deflated by the respective extender method
nothing to get from inflate
extendInflate in class RecordDefinitionin - the stream to inflate fromGRS2RecordSerializationException - there was a problem deserializing the definition stateRecordDefinition.extendInflate(java.io.DataInput)public void extendFromXML(Element element) throws GRS2RecordSerializationException
extendFromXML in class RecordDefinitionGRS2RecordSerializationExceptionpublic void extendToXML(Element element) throws GRS2RecordSerializationException
extendToXML in class RecordDefinitionGRS2RecordSerializationExceptionCopyright © 2014. All Rights Reserved.