java.lang.Object | |
↳ | com.microstrategy.web.blocks.DefaultBlockVisitor |
![]() |
![]() |
A default implementation of the BlockVisitor
interface.
All methods are "no ops". Methods that return a boolean value return
true. This class provides a simple way to implement the BlockVisitor
interface by only overriding those methods that you are interested in.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DefaultBlockVisitor() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
visitBlockEnd(Block block, BlockTarget parent)
Invoked for each Block after all of its properties are visited.
| ||||||||||
boolean |
visitBlockStart(Block block, BlockTarget parent)
Invoked for each Block before any of its properties are visited.
| ||||||||||
boolean |
visitCompositeProperty(BlockProperty blockProperty, Block parent, boolean firstAssignedProperty)
Invoked for each composite (Block or BlockList) Block Property.
| ||||||||||
void |
visitListEnd(BlockList blockList, BlockTarget parent)
Invoked at the end of a BlockList.
| ||||||||||
boolean |
visitListStart(BlockList blockList, BlockTarget parent)
Invoked at the beginning of a BlockList.
| ||||||||||
void |
visitScalarProperty(BlockProperty blockProperty, Block parent, boolean firstAssignedProperty)
Invoked for each scalar (non-Block, non-BlockList) Block Property.
| ||||||||||
void |
visitUnassignedProperty(BlockProperty blockProperty, Block parent)
Invoked for each unassigned block property.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Invoked for each Block after all of its properties are visited.
block | The Block being visited. |
---|---|
parent | The BlockTarget that contains the supplied Block.
|
Invoked for each Block before any of its properties are visited.
block | The Block being visited. |
---|---|
parent | The BlockTarget that contains the supplied Block. |
visitBlockEnd(Block, BlockTarget)
.
Invoked for each composite (Block or BlockList) Block Property. In
particular, it is only invoked for BlockProperty instances whose value is
non-null
.
blockProperty | The BlockProperty that has an assigned value. |
---|---|
parent | The Block that contains this BlockProperty. |
firstAssignedProperty | Whether or not this is the first assigned property of the Block. |
Invoked at the end of a BlockList.
blockList | The BlockList that we are visiting. |
---|---|
parent | The BlockTarget that contains the supplied BlockList.
|
Invoked at the beginning of a BlockList.
blockList | The BlockList that we are visiting. |
---|---|
parent | The BlockTarget that contains the supplied BlockList. |
Invoked for each scalar (non-Block, non-BlockList) Block Property. In
particular, it is only invoked for BlockProperty instances whose value is
non-null
.
blockProperty | The BlockProperty that has an assigned value. |
---|---|
parent | The Block that contains this BlockProperty. |
firstAssignedProperty | Whether or not this is the first assigned property of the Block. |
Invoked for each unassigned block property. An "unassigned" BlockProperty
is one whose value is null
.
blockProperty | The BlockProperty that has an unassigned value. |
---|---|
parent | The Block that contains this BlockProperty.
|