| com.microstrategy.web.transform.StyleMap |
Known Indirect Subclasses
|
The StyleMap interface represents a collection of "style mapping clauses" that are evaluated for a particular style in this Style Catalog. "style mapping clauses" include zero or multiple mapping conditions and 0 or 1 default condition. default condition will be always eveluated as the last clause, and it will be met.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
clear()
Clears the collection of style map clause objects.
| ||||||||||
| abstract int |
getCount()
Returns the number of
StyleMapClause objects in this collection. | ||||||||||
| abstract StyleMapClause |
getStyleMapClause(int index)
Gets the
StyleMapClause, both mapping conditions and default conditions,
associated with supplied index. | ||||||||||
| abstract String |
getStyleName()
Returns the style name that this map exists for.
| ||||||||||
| abstract String |
mapStyle(String origStyleName, StyleRequestContext context)
Maps the original style name to a new one, based on the "style map
clauses" contained in this map along with any contextual data.
| ||||||||||
| abstract StyleMapCondition |
newStyleMapCondition(String toStyle)
Creates a new style map condition object that, if the conditions were
satifisfied, would map the style to the specified name.
| ||||||||||
| abstract void |
remove(int index)
Removes the
StyleMapClause object at the specified index. | ||||||||||
| abstract StyleMapDefault |
setStyleMapDefault(String toStyle)
Sets a new style map default object that maps the style to the
specified name.
| ||||||||||
| abstract void |
setStyleName(String styleName)
Sets the style name that this map exists for.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.microstrategy.utils.config.ConfigurationElement
| |||||||||||
Clears the collection of style map clause objects.
| UnsupportedOperationException | This exception is thrown if the Style Catalog is in "read only" mode. |
|---|
Returns the number of StyleMapClause objects in this collection.
Gets the StyleMapClause, both mapping conditions and default conditions,
associated with supplied index. A valid
index begins at 0 and continues to getCount() - 1.
| index | The index of the StyleMapClause to return. |
|---|
StyleMapClause at the supplied index.| IndexOutOfBoundsException | This exception is thown if the argument is outside the range of a valid index. |
|---|
Returns the style name that this map exists for.
Maps the original style name to a new one, based on the "style map clauses" contained in this map along with any contextual data.
| origStyleName | The original style name. |
|---|---|
| context | The StyleRequestContext object that contain
context data. |
Creates a new style map condition object that, if the conditions were satifisfied, would map the style to the specified name.
| toStyle | The name of the style to use if the conditions were met. |
|---|
StyleMapCondition object.| UnsupportedOperationException | This exception is thrown if the Style Catalog is in "read only" mode. |
|---|
Removes the StyleMapClause object at the specified index.
| index | The index of the style map clause object to remove. |
|---|
| IndexOutOfBoundsException | This exception is thown if the argument is outside the range of a valid index. |
|---|---|
| UnsupportedOperationException | This exception is thrown if the Style Catalog is in "read only" mode. |
Sets a new style map default object that maps the style to the specified name.
| toStyle | The name of the style to use. |
|---|
StyleMapDefault object.| UnsupportedOperationException | This exception is thrown if the Style Catalog is in "read only" mode. |
|---|
Sets the style name that this map exists for.
| styleName | The name of the style that this map exists for. |
|---|