Package com.microstrategy.web.blocks
Class BlockPropertyAnnotationGroups
- java.lang.Object
-
- com.microstrategy.web.blocks.BlockPropertyAnnotationGroups
-
public class BlockPropertyAnnotationGroups extends java.lang.ObjectThis class holds a collections of annotation groups. A BlockProperty can hold any number of annotations, organized into named groups. These annotations are used by downstream tools (typically renderers). An annotation will not affect the way that a BlockProperty stores a value. Syntactically, any number of annotation groups can be specified, separating each by spaces.- Since:
- MicroStrategy Web 9.0.0
- See Also:
BlockPropertyAnnotationGroup,BlockPropertyAnnotation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPropertyAnnotationGroupgetGroup(int index)Returns the annotation group at the specified index.BlockPropertyAnnotationGroupgetGroup(java.lang.String groupName, boolean create)Returns the annotation group with the specified name.booleanhasGroup(java.lang.String groupName)Returns whether there is a group with the supplied name.intnumGroups()Returns the number of annotation groups.
-
-
-
Method Detail
-
numGroups
public int numGroups()
Returns the number of annotation groups.- Returns:
- The number of
BlockPropertyAnnotationGroupinstances.
-
getGroup
public BlockPropertyAnnotationGroup getGroup(int index)
Returns the annotation group at the specified index.- Parameters:
index- The index of the annotation group to return.- Returns:
- The
BlockPropertyAnnotationGroupat the specified index. - Throws:
java.lang.IllegalArgumentException- is thrown if there is no annotation group at this index.
-
getGroup
public BlockPropertyAnnotationGroup getGroup(java.lang.String groupName, boolean create)
Returns the annotation group with the specified name.- Parameters:
groupName- The name of the annotation group to return.create- If the annotation does not exist, then this parameter indicates whether one should be created.- Returns:
- The
BlockPropertyAnnotationGroupwith the specified name (or a new one if 'create' is true) ornullif no annotation group exists with the supplied name (and 'create' is false).
-
hasGroup
public boolean hasGroup(java.lang.String groupName)
Returns whether there is a group with the supplied name.- Parameters:
groupName- The name of the group.- Returns:
- True if there is an annotation group with this name.
-
-