java.lang.Object | ||
↳ | com.microstrategy.web.blocks.BlockTarget | |
↳ | com.microstrategy.web.blocks.BlockProperty |
This class represents a single Block property.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
accept(BlockVisitor visitor)
Accept a BlockVisitor to this BlockProperty.
| ||||||||||
BlockPropertyAnnotationGroups |
getAnnotationGroups(boolean create)
Returns the annotation groups associated with this Block
Property.
| ||||||||||
Object |
getExpandedValue(BlockContext bContext)
Gets the "expanded" value of the Block Property.
| ||||||||||
String |
getName()
Returns the name of this property.
| ||||||||||
String |
getType()
Returns the type of this property.
| ||||||||||
Object |
getValue()
Returns the value of this property.
| ||||||||||
boolean |
hasAnnotationGroups()
Returns whether there are any annotation groups associated with
this Block Property.
| ||||||||||
boolean |
hasMacros()
Returns whether the Block Property contains a macro or not.
| ||||||||||
boolean |
isScalarType()
Returns whether the property holds a scalar value (is of a
scalar type) as opposed a reference type.
| ||||||||||
void |
modifyTypeValue(String newTypeName, Object newValue)
Modify both the type and value of a Block Property.
| ||||||||||
void |
setValue(Object suppliedValue)
Sets the value of this property.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Accept a BlockVisitor to this BlockProperty. Depending on the type and value of this property, a certain method on the visitor is invoked:
visitUnassignedProperty(BlockProperty, Block)
is invoked.visitScalarProperty(BlockProperty, Block, boolean)
is invoked.visitCompositeProperty(BlockProperty, Block, boolean)
is invoked.visitor | The BlockVisitor to accept. |
---|
Returns the annotation groups associated with this Block Property.
create | If no annotation groups exists, this indicates whether a new set should be created. |
---|
BlockPropertyAnnotationGroups
object (if it exists or
the caller set 'create' to true); otherwise it is null.Gets the "expanded" value of the Block Property. If a Block
Property is assigned a string with macros embedded in it, then this
method expands those macro values and normalizes the result. If there
are no macro, this method returns the same as the getValue()
method.
bContext | The BlockContext object which supports the
expansion of macros references. |
---|
Returns the name of this property.
Returns the type of this property.
Returns the value of this property.
Returns whether there are any annotation groups associated with this Block Property.
Returns whether the Block Property contains a macro or not.
Returns whether the property holds a scalar value (is of a scalar type) as opposed a reference type.
Modify both the type and value of a Block Property.
newTypeName | The new type of the Block Property. |
---|---|
newValue | The new value of the Block Property. |
Sets the value of this property. In the process, it may "normalize" the value supplied. For example, if a String value is supplied to a Boolean property, it will try to normalize it to be a Boolean value.
suppliedValue | The supplied value of this property. |
---|