Class ContractStructure
Object
ContractStructure
This is a helper object that is used to build up code-generated content of a Contract.
A single ContractStructure object represents a specified level in the Contract folder tree, i.e. it does not represent the full contract if you have multiple subfolder levels.
The level is defined by
The level is defined by
parentId
of the structure object.-
Nested Class Summary
Modifier and TypeClassDescriptionclass
A DTO that holds information about the new item (contract type or folder) to be created. -
Field Summary
Modifier and TypeFieldDescriptionThe list of items to add in this level of the contractThe level of the contract. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates and adds a new folderCreates and adds a new folderCreates and adds a new itemCreates and adds a new itemcreateFolder
(String label) Creates a new folder item, but does not add it to the listcreateItem
(String name) Creates a new "part" item but does not add it
-
Field Details
-
items
The list of items to add in this level of the contract -
parentId
The level of the contract. If parentId == null then the root level is used
-
-
Constructor Details
-
ContractStructure
public ContractStructure()
-
-
Method Details
-
createFolder
Creates a new folder item, but does not add it to the list- Parameters:
label
- The folder label- Returns:
- The new folder
-
addFolder
Creates and adds a new folder- Parameters:
label
- The folder label- Returns:
- The new folder
-
addFolder
Creates and adds a new folder- Parameters:
label
- The folder labelinputs
- New inputs of the folder- Returns:
- The new folder
-
createItem
Creates a new "part" item but does not add it- Parameters:
name
- The uniqueName of the new Contract Type- Returns:
- The new item
-
addItem
Creates and adds a new item- Parameters:
name
- The uniqueName of the new Contract Type- Returns:
- The new item
-
addItem
Creates and adds a new item- Parameters:
name
- The uniqueName of the new Contract Typeinputs
- New inputs of the item- Returns:
- The new item
-