|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.mdp.full.context.PacketContext
public class PacketContext
The packet context.
Constructor Summary | |
---|---|
PacketContext()
|
|
PacketContext(java.net.URI pathToTemplates)
|
Method Summary | |
---|---|
TemplateContainer |
getContainer()
Returns instance of templates container. |
Template |
getCurrentTemplate()
Returns current template. |
java.net.URI |
getPathToTemplates()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacketContext()
public PacketContext(java.net.URI pathToTemplates)
Method Detail |
---|
public java.net.URI getPathToTemplates()
getPathToTemplates
in interface 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.mdp.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(com.epam.mdp.full.template.types.Type, com.epam.mdp.full.template.types.value.ITypeValue)
public ITypeValue getValue(Type type)
Context
getValue
in interface Context
type
- Type of value.
Context.getValue(com.epam.mdp.full.template.types.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.mdp.full.template.TemplateContainer)
public boolean isInitialized(Type type)
Context
isInitialized
in interface Context
type
- Instance of Type
.
Context.isInitialized(com.epam.mdp.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |