|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 Contextpublic void setPresenceMap(PresenceMap genericPresenceMap)
ContextPresenceMap.
setPresenceMap in interface ContextgenericPresenceMap - Instance of PresenceMap.Context.savePresenceMap()public void savePresenceMap()
Context
savePresenceMap in interface ContextContext.savePresenceMap()public void setCurrentTemplate(Template template)
Context
setCurrentTemplate in interface Contexttemplate - Instance of template.Context.setCurrentTemplate(com.epam.mdp.full.template.types.Template)public Template getCurrentTemplate()
Context
getCurrentTemplate in interface ContextContext.getCurrentTemplate()public void resetDictionaries()
Context
resetDictionaries in interface ContextContext.resetDictionaries()
public void setValue(Type type,
ITypeValue value)
Context
setValue in interface Contexttype - 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 Contexttype - Type of value.
Context.getValue(com.epam.mdp.full.template.types.Type)public TemplateContainer getContainer()
Context
getContainer in interface ContextContext.getContainer()public void setContainer(TemplateContainer templateContainer)
Context
setContainer in interface ContexttemplateContainer - Instance of TemplateContainerContext.setContainer(com.epam.mdp.full.template.TemplateContainer)public boolean isInitialized(Type type)
Context
isInitialized in interface Contexttype - Instance of Type.
Context.isInitialized(com.epam.mdp.full.template.types.Type)public boolean isPresentInStream()
Context
isPresentInStream in interface ContextContext.isPresentInStream()public void restorePresenceMap()
Context
restorePresenceMap in interface ContextContext.restorePresenceMap()public PresenceMap getPresenceMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||