Constructor and Description |
---|
PacketContext() |
Modifier and Type | Method and Description |
---|---|
TemplateContainer |
getContainer()
Returns instance of templates container.
|
Template |
getCurrentTemplate()
Returns current template.
|
PresenceMap |
getPresenceMap()
Gets presence map.
|
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 genericPresenceMap)
Sets instance of
PresenceMap . |
void |
setValue(Type type,
ITypeValue value)
Sets value into context.
|
public void setPresenceMap(PresenceMap genericPresenceMap)
Context
PresenceMap
.setPresenceMap
in interface Context
genericPresenceMap
- Instance of PresenceMap
.Context.savePresenceMap()
public void savePresenceMap()
Context
savePresenceMap
in interface Context
Context.savePresenceMap()
public void setCurrentTemplate(Template template)
Context
setCurrentTemplate
in interface Context
template
- Instance of template.Context.setCurrentTemplate(com.epam.fast.full.template.types.Template)
public Template getCurrentTemplate()
Context
getCurrentTemplate
in interface Context
Context.getCurrentTemplate()
public void resetDictionaries()
Context
resetDictionaries
in interface Context
Context.resetDictionaries()
public void setValue(Type type, ITypeValue value)
Context
setValue
in interface Context
type
- Type of value.value
- The value.Context.setValue(Type, ITypeValue)
public ITypeValue getValue(Type type)
Context
getValue
in interface Context
type
- Type of value.Context.getValue(Type)
public TemplateContainer getContainer()
Context
getContainer
in interface Context
Context.getContainer()
public void setContainer(TemplateContainer templateContainer)
Context
setContainer
in interface Context
templateContainer
- Instance of TemplateContainer
Context.setContainer(com.epam.fast.full.template.TemplateContainer)
public boolean isInitialized(Type type)
Context
isInitialized
in interface Context
type
- Instance of Type
.Context.isInitialized(com.epam.fast.full.template.types.Type)
public boolean isPresentInStream()
Context
isPresentInStream
in interface Context
Context.isPresentInStream()
public void restorePresenceMap()
Context
restorePresenceMap
in interface Context
Context.restorePresenceMap()
public PresenceMap getPresenceMap()
Copyright © 2000-2017 EPAM Systems. All Rights Reserved.