Interface IFragmentDefinition
- All Superinterfaces:
Serializable
Base interface for fragment definition
- Author:
- bchapoton
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(IContentDefinition child) Add a child to the fragmentvoidRemove 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 namebooleanvoidremoveChild(IContentDefinition child) Remove a child to the fragmentvoidsetDescription(String description) Set the descriptionvoidsetDisplayConditionsFormula(String displayConditionsFormula) Set the display conditions formulavoidsetEmptyField(boolean emptyField) voidSet the labelvoidSet 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)
-