Package com.microstrategy.web.transform
Class StyleImpl
- java.lang.Object
-
- com.microstrategy.utils.config.AbstractConfigurationElement
-
- com.microstrategy.web.transform.AbstractStyleCatalogElement
-
- com.microstrategy.web.transform.StyleImpl
-
- All Implemented Interfaces:
ConfigurationElement,ConfigurationFile,Style,java.lang.Cloneable
public class StyleImpl extends AbstractStyleCatalogElement implements Style
This class implements the Style interface, which exposes information about a single style.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
AbstractConfigurationElement.FilteredList
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringATT_DESCRIPTIONprotected static java.lang.StringATT_NAMEprotected static java.lang.StringATT_TRANSFORMprotected static java.lang.StringNODE_STYLE-
Fields inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
ATT_CONFIG_SRC, ATT_DELETED, ATT_POSITION, ATT_PROTOTYPE, ATT_USE_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description StyleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclearCaches()This method is invoked whenever the structure of the style catalog has changed and caches to other objects in the structure needs to be updated.ActualParametersgetActualParams()Returns the Actual parameters associated with this style.java.lang.StringgetDescription()Returns the description of the style object.protected java.lang.StringgetKeyAttribute()This method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override thegetKeyandsetKeymethods.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)Sets the name of the style.voidsetTransformDefn(TransformDefn transformDefn)Sets the transform definition object of the style.voidsetTransformName(java.lang.String value)Associates a the transform definition with this style based on its name-
Methods inherited from class com.microstrategy.web.transform.AbstractStyleCatalogElement
copyContents, getStyleCatalog, hasChanged, reload, resetChanged, setStrAttribute
-
Methods inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
addFileSource, applyCustomization, applyCustomizations, cleanUpDeletedElements, clone, delete, deltas, deltas, equalAtts, equalElements, equalNodeValues, equals, equalsIncludingDeletedElements, exportAttributesToXML, exportElementsToXML, exportNodeValueToXML, getAttribute, getAttributes, getBoolAttribute, getChildKey, getConfigSrc, getDTDFileName, getElement, getElement, getElements, getFileLoader, getIntAttribute, getIntAttribute, getKey, getLineNumber, getList, getNextKey, getNodeName, getNodeValue, getNodeValue, getOrCreateElement, getParent, getPosition, getPrototype, getRegisteredClass, getSelfInitPath, getSource, getStrAttribute, getUseDefault, getXMLParserParameters, getXMLSerializerParameters, hashCode, hashCodeAtts, hashCodeElements, hashCodeNodeValues, hasRegisteredClass, initAttributesFromXML, initDefaultAttributes, initElementFromXML, initElementsFromXML, initFromFile, initFromResource, initFromXML, initFromXML, initNodeValueFromXML, initPrototype, isActive, isCustomized, isDeleted, isDirty, isInSource, isKeyAttribute, load, mergeChanges, newChildInstance, newSource, original, populate, printAttributes, printElements, printNodeValue, refreshLists, registerClass, registerElement, registerElement, registerElementList, reloadPrototype, removeAttribute, removeDefaults, replaceList, restore, save, save, saveChangesAs, saveConfig, saveFlatXML, saveNode, saveSource, setAttribute, setBoolAttribute, setChildOriginals, setConfigSrc, setCustomized, setElement, setFileLoader, setIntAttribute, setKey, setLineNumber, setNodeName, setNodeValue, setPosition, setPrototype, setSelfInitPath, setUseDefault, setUseValidation, throwConfigParseException, toString, toXML, toXML, toXML, toXML, useNodeValue, useValidation
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microstrategy.utils.config.ConfigurationElement
getAttribute, getAttributes, getElement, getElements, getKey, getNodeName, getStrAttribute, initFromXML, reload, toXML
-
-
-
-
Field Detail
-
ATT_NAME
protected static final java.lang.String ATT_NAME
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_DESCRIPTION
protected static final java.lang.String ATT_DESCRIPTION
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_TRANSFORM
protected static final java.lang.String ATT_TRANSFORM
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
NODE_STYLE
protected static final java.lang.String NODE_STYLE
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
clearCaches
protected void clearCaches()
Description copied from class:AbstractStyleCatalogElementThis method is invoked whenever the structure of the style catalog has changed and caches to other objects in the structure needs to be updated.- Overrides:
clearCachesin classAbstractStyleCatalogElement- Since:
- MicroStrategy Web 9.0.0
-
getName
public java.lang.String getName()
Description copied from interface:StyleReturns the name of the style object.
-
setName
public void setName(java.lang.String _name)
Description copied from interface:StyleSets the name of the style.
-
setName
public void setName(java.lang.String _name, boolean overwrite) throws java.lang.IllegalArgumentExceptionDescription copied from interface:StyleSets the name of the style.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:StyleReturns the description of the style object.- Specified by:
getDescriptionin interfaceStyle- Returns:
- description of the style object.
-
setDescription
public void setDescription(java.lang.String desc)
Description copied from interface:StyleSets the description of the style object.- Specified by:
setDescriptionin interfaceStyle- Parameters:
desc- the description of the style object.
-
getTransformName
public java.lang.String getTransformName()
Description copied from interface:StyleReturns the name of the transform definition associated with this style- Specified by:
getTransformNamein interfaceStyle- Returns:
- name of the transform defn.
- Since:
- MicroStrategy Web 9.0.0
-
setTransformName
public void setTransformName(java.lang.String value)
Description copied from interface:StyleAssociates a the transform definition with this style based on its name- Specified by:
setTransformNamein interfaceStyle- Since:
- MicroStrategy Web 9.0.0
-
getTransformDefn
public TransformDefn getTransformDefn()
Description copied from interface:StyleReturns the transform definition object associated with this style.- Specified by:
getTransformDefnin interfaceStyle- Returns:
- the
TransformDefnobject associated with the style.
-
setTransformDefn
public void setTransformDefn(TransformDefn transformDefn) throws java.lang.IllegalArgumentException
Description copied from interface:StyleSets the transform definition object of the style.- Specified by:
setTransformDefnin interfaceStyle- Parameters:
transformDefn- theTransformDefnobject to set.- Throws:
java.lang.IllegalArgumentException- thrown if the transform definition object is null.
-
getActualParams
public ActualParameters getActualParams()
Description copied from interface:StyleReturns the Actual parameters associated with this style.- Specified by:
getActualParamsin interfaceStyle- Returns:
- the
ActualParametersobject associated with this style.
-
getLayouts
public Layouts getLayouts()
Description copied from interface:StyleGets the collection of layouts associated with this style.- Specified by:
getLayoutsin interfaceStyle- Returns:
- The
Layoutscollection. - Since:
- MicroStrategy Web 8.0.0
-
isResolved
public boolean isResolved()
Description copied from interface:StyleReturns whether all the required formal parameters of the transform have actual values associated with them.- Specified by:
isResolvedin interfaceStyle- Returns:
- whether the transform is resolved or not.
-
isResolved
public boolean isResolved(StyleRequestContext context)
Description copied from interface:StyleReturns 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.- Specified by:
isResolvedin interfaceStyle- 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
-
isLayoutAware
public boolean isLayoutAware()
Description copied from interface:StyleThis method returnstrueif the underlying transform is "layout aware". This translates into saying whether the underlyingTransformimplements theLayoutTransforminterface.- Specified by:
isLayoutAwarein interfaceStyle- Returns:
- True if the underlying transform is layout aware.
- Since:
- MicroStrategy Web 8.0.0
-
getKeyAttribute
protected java.lang.String getKeyAttribute()
Description copied from class:AbstractConfigurationElementThis method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override thegetKeyandsetKeymethods.- Specified by:
getKeyAttributein classAbstractConfigurationElement- Since:
- MicroStrategy Web 9.0.0
-
-