public class ObjectFieldDefinition extends FieldDefinition
FieldDefinition implementation for ObjectField. The compression instruction is not used
for the respective ObjectField as the actual payload serialization is performed outside the Field
methods| Modifier and Type | Field and Description |
|---|---|
static IBuffer.TransportDirective |
DefaultDirective
The default transport directive currently set to
IBuffer.TransportDirective.Full |
static String |
DefaultMimeType
The default MIME type currently set to text/plain
|
DefaultChunkSize, DefaultDoCompress| Constructor and Description |
|---|
ObjectFieldDefinition()
Creates a new instance
|
ObjectFieldDefinition(String name)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
extendDeflate(DataOutput out)
Method to be implemented by class extenders to deflate additional information
|
boolean |
extendEquals(Object obj)
Method to be implemented by extenders to check if two instances are equal
|
void |
extendFromXML(Element element) |
void |
extendInflate(DataInput in)
Method to be implemented by the class extenders to inflate additional information previously deflated
|
void |
extendToXML(Document doc,
Element element) |
IBuffer.TransportDirective |
getTransportDirective()
Retrieves the transport directive to be used during transfer
|
void |
setTransportDirective(IBuffer.TransportDirective directive)
Sets the transport directive to be used during transfer
|
deflate, equals, fromXML, getChunkSize, getMimeType, getName, inflate, isCompress, setChunkSize, setCompress, setMimeType, setName, toXMLpublic static final String DefaultMimeType
public static final IBuffer.TransportDirective DefaultDirective
IBuffer.TransportDirective.Fullpublic ObjectFieldDefinition()
public ObjectFieldDefinition(String name)
name - the field definition namepublic void setTransportDirective(IBuffer.TransportDirective directive)
The set IBuffer.TransportDirective is not affected. Only the default IBuffer.TransportDirective.Full is supported
setTransportDirective in class FieldDefinitiondirective - the directive to be usedFieldDefinition.setTransportDirective(gr.uoa.di.madgik.grs.buffer.IBuffer.TransportDirective)public IBuffer.TransportDirective getTransportDirective()
The default IBuffer.TransportDirective.Full is returned
getTransportDirective in class FieldDefinitionFieldDefinition.getTransportDirective()public boolean extendEquals(Object obj)
extendEquals in class FieldDefinitionobj - the instance to check for equalityFieldDefinition.extendEquals(java.lang.Object)public void extendDeflate(DataOutput out) throws GRS2RecordSerializationException
extendDeflate in class FieldDefinitionout - the stream to deflate toGRS2RecordSerializationException - A serialization error occurredFieldDefinition.extendDeflate(java.io.DataOutput)public void extendInflate(DataInput in) throws GRS2RecordSerializationException
extendInflate in class FieldDefinitionin - the stream to inflate fromGRS2RecordSerializationException - A deserialization error occurredFieldDefinition.extendInflate(java.io.DataInput)public void extendToXML(Document doc, Element element) throws GRS2RecordSerializationException
extendToXML in class FieldDefinitionGRS2RecordSerializationExceptionpublic void extendFromXML(Element element) throws GRS2RecordSerializationException
extendFromXML in class FieldDefinitionGRS2RecordSerializationExceptionCopyright © 2014. All Rights Reserved.