com.microstrategy.web.transform.StyleCatalog |
![]() |
The StyleCatalog interface presents the methods that a caller needs to manage the state of a style catalog.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
deleteTransformDefnFromStyles(TransformDefn trDef, boolean removeStyles)
Cleans all the possible associatios made to the TransformDefn object specified.
| ||||||||||
abstract BeanDefn |
getBeanDefn(TransformDefn tDefn)
Returns the BeanDefn for a bean supported by this transform.
| ||||||||||
abstract BeanDefns |
getBeanDefns()
Returns the BeanDefns collection.
| ||||||||||
abstract String |
getDescription()
Returns the textual description of the style catalog.
| ||||||||||
abstract String |
getFileName()
Returns the file name used by the style catalog.
| ||||||||||
abstract LayoutParserDefns |
getLayoutParserDefns()
Gets the collection of layout parser definition objects.
| ||||||||||
abstract LayoutSourceDefns |
getLayoutSourceDefns()
Gets the collection of layout source definition objects.
| ||||||||||
abstract MapperDefns |
getMapperDefns()
Returns the collection fo mapper definitions.
| ||||||||||
abstract String |
getName()
Returns the name of the style catalog.
| ||||||||||
abstract SourceLookup |
getSourceLookup(String source)
Returns the registered SourceLookup object with the specified name.
| ||||||||||
abstract StyleMaps |
getStyleMaps()
Returns the collection of style maps.
| ||||||||||
abstract Styles |
getStyles()
Returns the Styles collection.
| ||||||||||
abstract Transform |
getTransformByStyle(String styleName, StyleRequestContext context)
Returns the transform object associated with the specified style.
| ||||||||||
abstract Transform |
getTransformByStyle(String styleName)
Returns the transform object associated with the specified style.
| ||||||||||
abstract TransformDefns |
getTransformDefns()
Returns the TransformDefns collection.
| ||||||||||
abstract String |
getVersion()
Returns the current version of the styleCatalog
| ||||||||||
abstract boolean |
hasChanged()
Returns whether the style catalog has changed.
| ||||||||||
abstract Styles |
listStyles(TransformDefn trDef, int sortBy)
Lists all styles for a specified transform.
| ||||||||||
abstract Styles |
listStylesForBean(String beanName, int sortBy)
Lists styles filtered by the bean type and/or sorted
by bean type.
| ||||||||||
abstract TransformDefns |
listTransformDefns(String beanName, int sortBy)
Lists transform definitions filtered by the bean type and/or sorted
by bean type.
| ||||||||||
abstract void |
reset()
Reloads the previous style catalog file - undoing any in-memory changes reverting back to the file definition. | ||||||||||
abstract void |
save()
Saves the contents of the style catalog to disk.
| ||||||||||
abstract StyleCatalog |
saveAs(String fileName, boolean overwrite)
Saves the contents of the style catalog in a new instance and to disk.
| ||||||||||
abstract void |
setDescription(String description)
Sets the textual description of the style catalog.
| ||||||||||
abstract void |
setFileName(String fileName)
Sets the name of the file used by the style catalog.
| ||||||||||
abstract void |
setName(String name)
Sets the name of the style catalog.
| ||||||||||
abstract void |
setSourceLookup(String source, SourceLookup sourceLookup)
Registers a SourceLookup object with the specified key.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Cleans all the possible associatios made to the TransformDefn object specified. It will have the option to remove all the Style objects associated with this TransformDefn object.
trDef | the TransformDefn object you want to remove. |
---|---|
removeStyles | inicates whether you want to remove the styles associated with this TransformDefn object or not. |
IllegalArgumentException | thrown if the TransformDefn object is null. |
---|
Returns the BeanDefn for a bean supported by this transform.
BeanDefn
for a bean supported by this transform.
Returns the BeanDefns collection.
BeanDefns
object.
Returns the textual description of the style catalog.
Returns the file name used by the style catalog.
Gets the collection of layout parser definition objects.
Gets the collection of layout source definition objects.
Returns the collection fo mapper definitions.
MapperDefns
a collection of MapperDefn
.Returns the name of the style catalog.
Returns the registered SourceLookup object with the specified name.
source | the name used to look up the SourceLookup object. |
---|
Returns the transform object associated with the specified style.
styleName | the name of the style. |
---|---|
context | the StyleRequestContext object used to resolve dynamic actual parameter values. |
Transform
object.WebTransformException | thrown if there is an error getting a new instance of the transform |
---|---|
IllegalArgumentException | thrown if the style name was not found in this style catalog. |
Returns the transform object associated with the specified style.
styleName | the name of the style. |
---|
Transform
object.WebTransformException | thrown if there is an error getting a new instance of the transform |
---|---|
IllegalArgumentException | thrown if the style name was not found in this style catalog. |
Returns the TransformDefns collection.
TransformDefns
object.
Returns the current version of the styleCatalog
Returns whether the style catalog has changed.
Lists all styles for a specified transform. Styles will be sorted according to the sortBy value.
trDef | the TransformDefn object used to filter the list of styles. |
---|---|
sortBy | Defines sorting order. From EnumSortBy |
IllegalArgumentException | thrown if the sortBy parameter is invalid or the TransformDefn object is null. |
---|
Lists styles filtered by the bean type and/or sorted by bean type.
beanName | the filer bean type. Must be a valid bean type or FILTER_NONE, in which case no filtering will be performed. |
---|---|
sortBy | Defines sorting order. From EnumSortBy |
IllegalArgumentException | thrown if the sortBy parameter is invalid. |
---|
Lists transform definitions filtered by the bean type and/or sorted by bean type.
beanName | the filer bean type. Must be a valid bean type or FILTER_NONE, in which case no filtering will be performed. |
---|---|
sortBy | Defines sorting order. From EnumSortBy |
IllegalArgumentException | thrown if the sortBy parameter is invalid. |
---|
Reloads the previous style catalog file - undoing any in-memory changes reverting back to the file definition. Nothing happens if a style catalog was not previously loaded.
WebTransformException |
---|
Saves the contents of the style catalog to disk.
WebTransformException | thrown if an error saving to the file occurs. |
---|
Saves the contents of the style catalog in a new instance and to disk.
fileName | the name of the file for the new StyleCatalog object. |
---|---|
overwrite | whether it overwrites the file if already exists. |
WebTransformException | thrown if an error saving to the file occurs. |
---|---|
IllegalArgumentException | thrown if the file name exists and it can't overwrite it. |
Sets the textual description of the style catalog.
description | the description of the style catalog. |
---|
Sets the name of the file used by the style catalog.
fileName | the file name used by the style catalog. |
---|
Sets the name of the style catalog.
name | the name of the style catalog. |
---|
Registers a SourceLookup object with the specified key.
source | the key mapped to the SourceLookup object |
---|---|
sourceLookup | the SourceLookup object to register |