Class TextModuleFirstLevelGroupItem
- java.lang.Object
-
- com.novomind.ecom.api.imail.agent.frontend.editor.TextModuleFirstLevelGroupItem
-
- All Implemented Interfaces:
com.novomind.ecom.common.api.attribute.Named
public final class TextModuleFirstLevelGroupItem extends java.lang.Object implements com.novomind.ecom.common.api.attribute.Named
Represents a persistent or non persistent text module first level group item.- Since:
- 12.12
-
-
Constructor Summary
Constructors Constructor Description TextModuleFirstLevelGroupItem(TextModuleFirstLevelGroup textModuleFirstLevelGroup)
Constructs aTextModuleFirstLevelGroupItem
on a persistentTextModuleFirstLevelGroup
.TextModuleFirstLevelGroupItem(java.lang.String name, java.util.List<TextModule> textModules)
Constructs aTextModuleFirstLevelGroupItem
with a name and a list ofTextModule
children.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TextModuleNode>
getChildTextModuleNodes()
Returns a list of the child text module nodes.java.lang.String
getName()
Returns the name of theTextModuleFirstLevelGroupItem
java.util.Optional<TextModuleFirstLevelGroup>
getTextModuleFirstLevelGroup()
Returns the optional persistentTextModuleFirstLevelGroup
wrapped by thisTextModuleFirstLevelGroupItem
.
-
-
-
Constructor Detail
-
TextModuleFirstLevelGroupItem
public TextModuleFirstLevelGroupItem(java.lang.String name, java.util.List<TextModule> textModules)
Constructs aTextModuleFirstLevelGroupItem
with a name and a list ofTextModule
children.- Parameters:
name
- the name of the item.textModules
- the list ofTextModule
of the group.- Since:
- 12.12
-
TextModuleFirstLevelGroupItem
public TextModuleFirstLevelGroupItem(TextModuleFirstLevelGroup textModuleFirstLevelGroup)
Constructs aTextModuleFirstLevelGroupItem
on a persistentTextModuleFirstLevelGroup
.- Parameters:
textModuleFirstLevelGroup
- the persistentTextModuleFirstLevelGroup
to be wrapped by this item.- Since:
- 12.12
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of theTextModuleFirstLevelGroupItem
- Specified by:
getName
in interfacecom.novomind.ecom.common.api.attribute.Named
- Returns:
- the name of the
TextModuleFirstLevelGroupItem
- Since:
- 12.12
-
getChildTextModuleNodes
public java.util.List<TextModuleNode> getChildTextModuleNodes()
Returns a list of the child text module nodes.- Returns:
- the list of the child text module nodes.
- Since:
- 12.12
-
getTextModuleFirstLevelGroup
public java.util.Optional<TextModuleFirstLevelGroup> getTextModuleFirstLevelGroup()
Returns the optional persistentTextModuleFirstLevelGroup
wrapped by thisTextModuleFirstLevelGroupItem
.- Returns:
- the optional persistent
TextModuleFirstLevelGroup
wrapped by thisTextModuleFirstLevelGroupItem
. - Since:
- 12.12
-
-