Interface IFragmentDefinition
- All Superinterfaces:
Serializable
Base interface for fragment definition
- Author:
- bchapoton
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(IContentDefinition child) Add a child to the fragmentvoid
Remove all childrenclone
(IBlockDefinition parentBlockDefinition) Clone the fragment definitionGet the fragment's childrenGet the descriptionGet the display conditions formulagetId()
Get the idgetLabel()
Get the labelgetName()
Get the nameboolean
void
removeChild
(IContentDefinition child) Remove a child to the fragmentvoid
setDescription
(String description) Set the descriptionvoid
setDisplayConditionsFormula
(String displayConditionsFormula) Set the display conditions formulavoid
setEmptyField
(boolean emptyField) void
Set the labelvoid
Set the name
-
Method Details
-
getId
String getId()Get the id- Returns:
- id
-
getLabel
String getLabel()Get the label- Returns:
- label
-
setLabel
Set the label- Parameters:
label
-
-
getDescription
String getDescription()Get the description- Returns:
- description
-
setDescription
Set the description- Parameters:
description
-
-
getName
String getName()Get the name- Returns:
- name
-
setName
Set the name- Parameters:
name
-
-
getDisplayConditionsFormula
String getDisplayConditionsFormula()Get the display conditions formula- Returns:
- formula
-
setDisplayConditionsFormula
Set the display conditions formula- Parameters:
displayConditionsFormula
-
-
getChildren
List<IContentDefinition> getChildren()Get the fragment's children- Returns:
- children
-
addChild
Add a child to the fragment- Parameters:
child
-
-
removeChild
Remove a child to the fragment- Parameters:
child
-
-
clearChildren
void clearChildren()Remove all children -
clone
Clone the fragment definition- Parameters:
parentBlockDefinition
-- Returns:
- duplicate IFragmentDefinition
-
isEmptyField
boolean isEmptyField() -
setEmptyField
void setEmptyField(boolean emptyField)
-