|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.layout.TemplatesRegister
public class TemplatesRegister
This class stores templates used by ModelConstructor
and
PersonalModelConstructor
objects to prepare layout of system
response returned to the user.
All templates are described in db/templates.owl file.
ModelConstructor
,
PersonalModelConstructor
Constructor Summary | |
---|---|
TemplatesRegister()
|
Method Summary | |
---|---|
LayoutStructure |
get(String actionName)
Returns template for the given action. |
LayoutStructure |
getCopy(String actionName)
Creates copy of registered template. |
void |
register(String actionName,
LayoutStructure template)
Registers template under the given name of action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplatesRegister()
Method Detail |
---|
public void register(String actionName, LayoutStructure template)
actionName
- is the name of actiontemplate
- is the template to be registered.public LayoutStructure get(String actionName)
actionName
- is the name of action under which the required template has
been registered
null
if no template for the
given actionpublic LayoutStructure getCopy(String actionName) throws TemplateNotRegistered
actionName
- is the name of action under which the required template has
been registered
TemplateNotRegistered
- when there is not template for the given action
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |