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 ActualParametersgetActualParams()Returns the Actual parameters associated with this style.java.lang.StringgetDescription()Returns the description of the style object.LayoutsgetLayouts()Gets the collection of layouts associated with this style.java.lang.StringgetName()Returns the name of the style object.TransformDefngetTransformDefn()Returns the transform definition object associated with this style.java.lang.StringgetTransformName()Returns the name of the transform definition associated with this stylebooleanisLayoutAware()This method returnstrueif the underlying transform is "layout aware".booleanisResolved()Returns whether all the required formal parameters of the transform have actual values associated with them.booleanisResolved(StyleRequestContext context)Returns whether all the required formal parameters of the transform have actual values associated with them.voidsetDescription(java.lang.String desc)Sets the description of the style object.voidsetName(java.lang.String name)Sets the name of the style.voidsetName(java.lang.String name, boolean overwrite)Deprecated.The overwrite parameter should always be passed astrue.voidsetTransformDefn(TransformDefn transformDefn)Deprecated.The TransformDefn should not be explicitly set, it should be resolved automatically by the Style from the transform name.voidsetTransformName(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
void setName(java.lang.String name, boolean overwrite) throws java.lang.IllegalArgumentExceptionDeprecated.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 
TransformDefnobject associated with the style. 
 
- 
setTransformDefn
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- theTransformDefnobject 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 
ActualParametersobject 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 returnstrueif the underlying transform is "layout aware". This translates into saying whether the underlyingTransformimplements theLayoutTransforminterface.- 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 
Layoutscollection. - 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:
 Trueif the style is resolved.- Since:
 - MicroStrategy Web 8.0.0
 
 
 - 
 
 -