com.epam.mdp.full.context
Interface Context

All Known Implementing Classes:
PacketContext

public interface Context

Class for managers data during process of encode/decode FAST messages.


Method Summary
 TemplateContainer getContainer()
          Returns instance of templates container.
 Template getCurrentTemplate()
          Returns current template.
 java.net.URI getPathToTemplates()
           
 ITypeValue getValue(Type type)
          Returns value from context by type.
 boolean isInitialized(Type type)
          Checks if initialized context dictionary for input type.
 boolean isPresentInStream()
          Checks if present current value in stream of FAST message.
 void resetDictionaries()
          Resets the context's dictionaries.
 void restorePresenceMap()
          Restores presence map.
 void savePresenceMap()
          Saves presence map.
 void setContainer(TemplateContainer templateContainer)
          Sets instance of templates container.
 void setCurrentTemplate(Template template)
          Sets input template to current.
 void setPresenceMap(PresenceMap presenceMap)
          Sets instance of PresenceMap.
 void setValue(Type type, ITypeValue value)
          Sets value into context.
 

Method Detail

getPathToTemplates

java.net.URI getPathToTemplates()

isPresentInStream

boolean isPresentInStream()
Checks if present current value in stream of FAST message.

Returns:
true if present.

setPresenceMap

void setPresenceMap(PresenceMap presenceMap)
Sets instance of PresenceMap.

Parameters:
presenceMap - Instance of PresenceMap.

setValue

void setValue(Type type,
              ITypeValue value)
Sets value into context.

Parameters:
type - Type of value.
value - The value.

getValue

ITypeValue getValue(Type type)
Returns value from context by type.

Parameters:
type - Type of value.
Returns:
The value.

getContainer

TemplateContainer getContainer()
Returns instance of templates container.

Returns:
template container

setContainer

void setContainer(TemplateContainer templateContainer)
Sets instance of templates container.

Parameters:
templateContainer - Instance of TemplateContainer

isInitialized

boolean isInitialized(Type type)
Checks if initialized context dictionary for input type.

Parameters:
type - Instance of Type.
Returns:
true if initialized.

restorePresenceMap

void restorePresenceMap()
Restores presence map.


savePresenceMap

void savePresenceMap()
Saves presence map.


setCurrentTemplate

void setCurrentTemplate(Template template)
Sets input template to current.

Parameters:
template - Instance of template.

getCurrentTemplate

Template getCurrentTemplate()
Returns current template.

Returns:
Instance of current templates.

resetDictionaries

void resetDictionaries()
Resets the context's dictionaries.



Copyright © 2000-2014 EPAM Systems. All Rights Reserved.