Package com.microstrategy.web.transform
Interface Style
-
- All Superinterfaces:
java.lang.Cloneable
,ConfigurationElement
- All Known Implementing Classes:
StyleImpl
public interface Style extends ConfigurationElement
The Style interface exposes information about a single style.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ActualParameters
getActualParams()
Returns the Actual parameters associated with this style.java.lang.String
getDescription()
Returns the description of the style object.Layouts
getLayouts()
Gets the collection of layouts associated with this style.java.lang.String
getName()
Returns the name of the style object.TransformDefn
getTransformDefn()
Returns the transform definition object associated with this style.java.lang.String
getTransformName()
Returns the name of the transform definition associated with this styleboolean
isLayoutAware()
This method returnstrue
if the underlying transform is "layout aware".boolean
isResolved()
Returns whether all the required formal parameters of the transform have actual values associated with them.boolean
isResolved(StyleRequestContext context)
Returns whether all the required formal parameters of the transform have actual values associated with them.void
setDescription(java.lang.String desc)
Sets the description of the style object.void
setName(java.lang.String name)
Sets the name of the style.void
setName(java.lang.String name, boolean overwrite)
Deprecated.The overwrite parameter should always be passed astrue
.void
setTransformDefn(TransformDefn transformDefn)
Deprecated.The TransformDefn should not be explicitly set, it should be resolved automatically by the Style from the transform name.void
setTransformName(java.lang.String value)
Associates a the transform definition with this style based on its name-
Methods inherited from interface com.microstrategy.utils.config.ConfigurationElement
getAttribute, getAttributes, getElement, getElements, getKey, getNodeName, getStrAttribute, initFromXML, reload, toXML
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of the style object.- Returns:
- name of the style object.
-
setName
@Deprecated void setName(java.lang.String name, boolean overwrite) throws java.lang.IllegalArgumentException
Deprecated.The overwrite parameter should always be passed astrue
. If there is already an style with the given name it should be automatically replaced.Sets the name of the style.- Parameters:
name
- the name of the style.overwrite
- whether an existing style with that name will be overwritten.- Throws:
java.lang.IllegalArgumentException
- thrown if the name is invalid or if it already exists and overwrite is false.
-
setName
void setName(java.lang.String name)
Sets the name of the style.- Parameters:
name
- the name of the style.- Throws:
java.lang.IllegalArgumentException
- thrown if the name is invalid or if it already exists and overwrite is false.- Since:
- MicroStrategy Web 9.0.0
-
getTransformName
java.lang.String getTransformName()
Returns the name of the transform definition associated with this style- Returns:
- name of the transform defn.
- Since:
- MicroStrategy Web 9.0.0
-
setTransformName
void setTransformName(java.lang.String value)
Associates a the transform definition with this style based on its name- Since:
- MicroStrategy Web 9.0.0
-
getDescription
java.lang.String getDescription()
Returns the description of the style object.- Returns:
- description of the style object.
-
setDescription
void setDescription(java.lang.String desc)
Sets the description of the style object.- Parameters:
desc
- the description of the style object.
-
getTransformDefn
TransformDefn getTransformDefn()
Returns the transform definition object associated with this style.- Returns:
- the
TransformDefn
object associated with the style.
-
setTransformDefn
@Deprecated void setTransformDefn(TransformDefn transformDefn) throws java.lang.IllegalArgumentException
Deprecated.The TransformDefn should not be explicitly set, it should be resolved automatically by the Style from the transform name.Sets the transform definition object of the style.- Parameters:
transformDefn
- theTransformDefn
object to set.- Throws:
java.lang.IllegalArgumentException
- thrown if the transform definition object is null.
-
getActualParams
ActualParameters getActualParams()
Returns the Actual parameters associated with this style.- Returns:
- the
ActualParameters
object associated with this style.
-
isResolved
boolean isResolved()
Returns whether all the required formal parameters of the transform have actual values associated with them.- Returns:
- whether the transform is resolved or not.
-
isLayoutAware
boolean isLayoutAware()
This method returnstrue
if the underlying transform is "layout aware". This translates into saying whether the underlyingTransform
implements theLayoutTransform
interface.- Returns:
- True if the underlying transform is layout aware.
- Since:
- MicroStrategy Web 8.0.0
-
getLayouts
Layouts getLayouts()
Gets the collection of layouts associated with this style.- Returns:
- The
Layouts
collection. - Since:
- MicroStrategy Web 8.0.0
-
isResolved
boolean isResolved(StyleRequestContext context)
Returns whether all the required formal parameters of the transform have actual values associated with them. A style is resolved if there is at least one actual parameter whose value matches the type of a required formal parameter.- Parameters:
context
- a StyleRequestContext object used to look up the dynamic actual parameter value.- Returns:
True
if the style is resolved.- Since:
- MicroStrategy Web 8.0.0
-
-