java.lang.Object | |
↳ | com.microstrategy.web.blocks.BlockPropertyAnnotationGroup |
A BlockProperty can hold any number of annotations organized by group names. This class represents a single group of annotations, organized by its name. Syntactically, a group name begins with a simple name (no spaces) followed by a colon (':') and any number of annotations, each separated by semicolon (';').
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BlockPropertyAnnotation |
addAnnotation(String name)
Adds a new annotation to this group.
| ||||||||||
BlockPropertyAnnotation |
getAnnotation(int index)
Returns a single annotation by its numeric index.
| ||||||||||
BlockPropertyAnnotation |
getAnnotation(String name, boolean create)
Returns the annotation with the supplied name.
| ||||||||||
String |
getGroupName()
Returns the group name.
| ||||||||||
boolean |
hasAnnotation(String name)
Returns whether there is annotation in this group by the
supplied name.
| ||||||||||
int |
numAnnotations()
Returns the number of annotations in this group.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds a new annotation to this group.
name | The name of the new annotation. |
---|
BlockPropertyAnnotation
that was created.IllegalArgumentException | is thrown if an annotation already exists by this name. |
---|
Returns a single annotation by its numeric index.
index | The numeric index of the annotation to return. |
---|
BlockPropertyAnnotation
at this index.IllegalArgumentException | is thrown if there is no annotation at this index. |
---|
Returns the annotation with the supplied name.
name | The name of the annotation to return. |
---|---|
create | If the annotation does not exist, whether to create a new one. |
BlockPropertyAnnotation
if it exists (or the caller
opted to create a new one) or null
if none exists.
Returns the group name.
Returns whether there is annotation in this group by the supplied name.
name | The name of the annotation to check. |
---|
Returns the number of annotations in this group.