If the block contains variables, these variables must be set before the block is added. If the block contains subblocks (nested blocks), the subblocks must be added before this block is added. If multiple blocks exist with the specified name, an instance is added for each block occurrence.
@param blockName the name of the block to be added. Case-insensitive.
@param isOptional specifies whether an exception should be thrown when theblock does not exist in the template. If isOptional
is false
and the block does not exist, an exception is thrown.
@throws BlockNotDefinedException when no block with the specified nameexists in the template and isOptional
is false
.
true
, if this block is covered
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|