|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.grs.record.field.FieldDefinition
gr.uoa.di.madgik.grs.record.field.ObjectFieldDefinition
public class ObjectFieldDefinition
The 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
Field Summary | |
---|---|
static IBuffer.TransportDirective |
DefaultDirective
The default transport directive currently set to IBuffer.TransportDirective.Full |
static java.lang.String |
DefaultMimeType
The default MIME type currently set to text/plain |
Fields inherited from class gr.uoa.di.madgik.grs.record.field.FieldDefinition |
---|
DefaultChunkSize, DefaultDoCompress |
Constructor Summary | |
---|---|
ObjectFieldDefinition()
Creates a new instance |
|
ObjectFieldDefinition(java.lang.String name)
Creates a new instance |
Method Summary | |
---|---|
void |
extendDeflate(java.io.DataOutput out)
Method to be implemented by class extenders to deflate additional information |
boolean |
extendEquals(java.lang.Object obj)
Method to be implemented by extenders to check if two instances are equal |
void |
extendFromXML(org.w3c.dom.Element element)
|
void |
extendInflate(java.io.DataInput in)
Method to be implemented by the class extenders to inflate additional information previously deflated |
void |
extendToXML(org.w3c.dom.Document doc,
org.w3c.dom.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 |
Methods inherited from class gr.uoa.di.madgik.grs.record.field.FieldDefinition |
---|
deflate, equals, fromXML, getChunkSize, getMimeType, getName, inflate, isCompress, setChunkSize, setCompress, setMimeType, setName, toXML |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DefaultMimeType
public static final IBuffer.TransportDirective DefaultDirective
IBuffer.TransportDirective.Full
Constructor Detail |
---|
public ObjectFieldDefinition()
public ObjectFieldDefinition(java.lang.String name)
name
- the field definition nameMethod Detail |
---|
public void setTransportDirective(IBuffer.TransportDirective directive)
The set IBuffer.TransportDirective
is not affected. Only the default IBuffer.TransportDirective.Full
is supported
setTransportDirective
in class FieldDefinition
directive
- 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 FieldDefinition
FieldDefinition.getTransportDirective()
public boolean extendEquals(java.lang.Object obj)
extendEquals
in class FieldDefinition
obj
- the instance to check for equality
FieldDefinition.extendEquals(java.lang.Object)
public void extendDeflate(java.io.DataOutput out) throws GRS2RecordSerializationException
extendDeflate
in class FieldDefinition
out
- the stream to deflate to
GRS2RecordSerializationException
- A serialization error occurredFieldDefinition.extendDeflate(java.io.DataOutput)
public void extendInflate(java.io.DataInput in) throws GRS2RecordSerializationException
extendInflate
in class FieldDefinition
in
- the stream to inflate from
GRS2RecordSerializationException
- A deserialization error occurredFieldDefinition.extendInflate(java.io.DataInput)
public void extendToXML(org.w3c.dom.Document doc, org.w3c.dom.Element element) throws GRS2RecordSerializationException
extendToXML
in class FieldDefinition
GRS2RecordSerializationException
public void extendFromXML(org.w3c.dom.Element element) throws GRS2RecordSerializationException
extendFromXML
in class FieldDefinition
GRS2RecordSerializationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |