biz.onixs.fix.fast.template
Class TemplateImpl

java.lang.Object
  extended by biz.onixs.fix.fast.template.TemplateImpl
All Implemented Interfaces:
Template

public class TemplateImpl
extends Object
implements Template


Constructor Summary
TemplateImpl()
           
 
Method Summary
 Template copy()
           
 void decode(DecodingContext context)
          Decodes FAST data to FIX message.
 byte[] encode(EncodingContext context)
          Encodes FIX message to binary FAST data.
 void fillTemplateRef(String name, Template template)
           
 String getDictionaryId()
          Returns template dictionary id.
 FieldInstr[] getFieldInstrs()
           
 String getFixMessageType()
          Returns FIX message type for this template.
 String getId()
          Returns template id.
 String getName()
          Returns template name.
 boolean occupiesPresenceMap()
           
 void setDictionaryId(String dictionaryId)
           
 void setFieldInstrs(FieldInstr[] fieldInstrs)
           
 void setId(String id)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateImpl

public TemplateImpl()
Method Detail

getId

public String getId()
Description copied from interface: Template
Returns template id.

Specified by:
getId in interface Template
Returns:
template id

getName

public String getName()
Description copied from interface: Template
Returns template name.

Specified by:
getName in interface Template
Returns:
template name

getDictionaryId

public String getDictionaryId()
Description copied from interface: Template
Returns template dictionary id.

Specified by:
getDictionaryId in interface Template
Returns:
template dictionary id

setDictionaryId

public void setDictionaryId(String dictionaryId)

setId

public void setId(String id)

setName

public void setName(String name)

getFieldInstrs

public FieldInstr[] getFieldInstrs()

setFieldInstrs

public void setFieldInstrs(FieldInstr[] fieldInstrs)

getFixMessageType

public String getFixMessageType()
Description copied from interface: Template
Returns FIX message type for this template.

Specified by:
getFixMessageType in interface Template
Returns:
FIX message type

decode

public void decode(DecodingContext context)
            throws FastException
Description copied from interface: Template
Decodes FAST data to FIX message.

Specified by:
decode in interface Template
Parameters:
context - decoding data
Throws:
FastException - if decoding failed

encode

public byte[] encode(EncodingContext context)
              throws FastException
Description copied from interface: Template
Encodes FIX message to binary FAST data.

Specified by:
encode in interface Template
Parameters:
context - encoding data
Returns:
encoded binary FAST data
Throws:
FastException - if encoding failed

copy

public Template copy()
Specified by:
copy in interface Template

fillTemplateRef

public void fillTemplateRef(String name,
                            Template template)
Specified by:
fillTemplateRef in interface Template

occupiesPresenceMap

public boolean occupiesPresenceMap()
Specified by:
occupiesPresenceMap in interface Template

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2012 Onix Solutions. All Rights Reserved.