Package com.almis.awe.model.entities
Class Element
java.lang.Object
com.almis.awe.model.entities.Element
- All Implemented Interfaces:
Copyable
,XMLNode
,Serializable
- Direct Known Subclasses:
AbstractAction
,Component
,Dependency
,DependencyElement
,GroupHeader
,Include
,Menu
,Message
,Screen
,Tag
,View
Element decorator
Used to parse all tags from screen XML files with XStream
- Author:
- Pablo GARCIA - 24/JUN/2010
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddElement
(T element) Add an element to the listorg.stringtemplate.v4.ST
generateHelpTemplate
(org.stringtemplate.v4.STGroup group, String label, boolean developers) Generates the output HTML of the elementorg.stringtemplate.v4.ST
generateHelpTemplate
(org.stringtemplate.v4.STGroup group, String label, String templateName, boolean developers) Generates the help template of the elementorg.stringtemplate.v4.ST
generateTemplate
(org.stringtemplate.v4.STGroup group) Generates the output HTML of the elementfinal <T> List<T>
getChildrenByType
(Class<T>... elementClassList) Returns the children element list of a desired TYPEReturns the children element listgetElementsById
(String identifier) Returns the children element list of a desired id<T> List<T>
getElementsByType
(boolean processDialog, Class<T>... elementClassList) Returns the children element list of a desired TYPEfinal <T> List<T>
getElementsByType
(Class<T>... elementClassList) Returns the children element list of a desired TYPERetrieve help templategetReportStructure
(List<Element> printElementList, String label, com.fasterxml.jackson.databind.node.ObjectNode parameters, String dataSuffix) Get print element list (to be overwritten)Retrieve element template (To be overwritten)
-
Constructor Details
-
Element
public Element()
-
-
Method Details
-
getElementList
Returns the children element list- Type Parameters:
T
- element list- Returns:
- Children List
-
addElement
Add an element to the list- Type Parameters:
T
- element object typeG
- return element type- Parameters:
element
- element to add- Returns:
- element
-
generateTemplate
public org.stringtemplate.v4.ST generateTemplate(org.stringtemplate.v4.STGroup group) Generates the output HTML of the element- Parameters:
group
- String Template Group- Returns:
- Code
-
generateHelpTemplate
public org.stringtemplate.v4.ST generateHelpTemplate(org.stringtemplate.v4.STGroup group, String label, boolean developers) Generates the output HTML of the element- Parameters:
group
- String Template Grouplabel
- Parent labeldevelopers
- Help for developers- Returns:
- Code
-
generateHelpTemplate
public org.stringtemplate.v4.ST generateHelpTemplate(org.stringtemplate.v4.STGroup group, String label, String templateName, boolean developers) Generates the help template of the element- Parameters:
group
- String Template Grouplabel
- Parent labeltemplateName
- String Template namedevelopers
- Help for developers- Returns:
- Code
-
getTemplate
Retrieve element template (To be overwritten)- Returns:
- Element template
-
getHelpTemplate
Retrieve help template- Returns:
- Help template
-
getElementsByType
Returns the children element list of a desired TYPE- Type Parameters:
T
- element class type- Parameters:
elementClassList
- Element class- Returns:
- Children List
-
getElementsByType
Returns the children element list of a desired TYPE- Type Parameters:
T
- element class type- Parameters:
elementClassList
- element classprocessDialog
- flag to check dialog elements- Returns:
- Children List
-
getChildrenByType
Returns the children element list of a desired TYPE- Type Parameters:
T
- element class type- Parameters:
elementClassList
- element class- Returns:
- Children List
-
getElementsById
Returns the children element list of a desired id- Parameters:
identifier
- Element identifier- Returns:
- Children List
-
getReportStructure
public List<Element> getReportStructure(List<Element> printElementList, String label, com.fasterxml.jackson.databind.node.ObjectNode parameters, String dataSuffix) Get print element list (to be overwritten)- Parameters:
printElementList
- Print element listlabel
- Previous labelparameters
- ParametersdataSuffix
- data suffix- Returns:
- Print bean
-
getElementKey
- Specified by:
getElementKey
in interfaceXMLNode
- Returns:
- the elementKey
-