Package com.microstrategy.web.transform
Class TransformDefnImpl
- java.lang.Object
-
- com.microstrategy.utils.config.AbstractConfigurationElement
-
- com.microstrategy.web.transform.AbstractStyleCatalogElement
-
- com.microstrategy.web.transform.TransformDefnImpl
-
- All Implemented Interfaces:
ConfigurationElement,ConfigurationFile,TransformDefn,java.lang.Cloneable
public class TransformDefnImpl extends AbstractStyleCatalogElement implements TransformDefn
- 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_CLASSprotected static java.lang.StringATT_LAYOUT_PARSERprotected static java.lang.StringATT_NAMEprotected static java.lang.StringATT_PROG_IDprotected static java.lang.StringNODE_TRANSFORM_DEFN-
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 TransformDefnImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckParamValue(FormalParameter formalParam, java.lang.Object value)Checks whether the value can be used with the underlying transform.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.java.lang.StringgetDescription()Returns the description of the transform associated with the transform definition object.FormalParametersgetFormalParams()Returns the formal parameters associated with this transform.java.lang.StringgetImplClassName()Returns the fully qualified Java Class of the transform associated with the transform definition object.java.lang.StringgetImplProgID()Gets the COM program ID associated with the transform definition 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.java.lang.StringgetLayoutParser()Returns the name of the current LayoutParserDefn associated with this TransformDefn.LayoutParserDefngetLayoutParserDefn()Gets the layout parser definition object associated with this transform, if one exists.java.lang.StringgetName()Returns the name of the transform definition object.java.lang.StringgetSupportedBeanType()Returns a class name of the root class/interface supported by this transform.TransformgetTransform()Returns the Transform instance associated with this object.booleanisValid()Returns whether the transform can be instantiated.voidsetImplClassName(java.lang.String _className)Sets the fully qualified java class of the transform definition object.voidsetImplProgID(java.lang.String _progID)Sets the COM program ID of the transform definition object.voidsetLayoutParser(java.lang.String value)Associates a LayoutParserDefn with this TransformDefn based on its name.voidsetLayoutParserDefn(LayoutParserDefn layoutParserDefn)Sets the layout parser definition object to associate with this transform.voidsetName(java.lang.String _name)Sets the name of the TransformDefn object.booleansupports(java.lang.Class beanClass)Returns true if the transform supports objects of specified type.booleansupports(java.lang.String beanClassName)Returns true if the transform supports objects of specified type.-
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_CLASS
protected static final java.lang.String ATT_CLASS
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_PROG_ID
protected static final java.lang.String ATT_PROG_ID
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_LAYOUT_PARSER
protected static final java.lang.String ATT_LAYOUT_PARSER
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
NODE_TRANSFORM_DEFN
protected static final java.lang.String NODE_TRANSFORM_DEFN
- 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:TransformDefnReturns the name of the transform definition object.- Specified by:
getNamein interfaceTransformDefn- Returns:
- name of the transform definition object.
-
setName
public void setName(java.lang.String _name)
Description copied from interface:TransformDefnSets the name of the TransformDefn object.- Specified by:
setNamein interfaceTransformDefn- Parameters:
_name- the name of the TransformDefn.
-
getDescription
public java.lang.String getDescription() throws WebTransformExceptionDescription copied from interface:TransformDefnReturns the description of the transform associated with the transform definition object.- Specified by:
getDescriptionin interfaceTransformDefn- Returns:
- description of the transform.
- Throws:
WebTransformException- thrown if there was an error getting the description (e.g. Transform did not exist).
-
getImplProgID
public java.lang.String getImplProgID()
Description copied from interface:TransformDefnGets the COM program ID associated with the transform definition object.- Specified by:
getImplProgIDin interfaceTransformDefn- Returns:
- COM program ID associated with the transform definition object.
-
setImplProgID
public void setImplProgID(java.lang.String _progID)
Description copied from interface:TransformDefnSets the COM program ID of the transform definition object.- Specified by:
setImplProgIDin interfaceTransformDefn- Parameters:
_progID- the COM program ID to set.
-
getImplClassName
public java.lang.String getImplClassName()
Description copied from interface:TransformDefnReturns the fully qualified Java Class of the transform associated with the transform definition object.- Specified by:
getImplClassNamein interfaceTransformDefn- Returns:
- fully qualified Java class.
-
setImplClassName
public void setImplClassName(java.lang.String _className)
Description copied from interface:TransformDefnSets the fully qualified java class of the transform definition object.- Specified by:
setImplClassNamein interfaceTransformDefn- Parameters:
_className- the fully qualified class name to set.
-
getLayoutParser
public java.lang.String getLayoutParser()
Description copied from interface:TransformDefnReturns the name of the current LayoutParserDefn associated with this TransformDefn.- Specified by:
getLayoutParserin interfaceTransformDefn- Since:
- MicroStrategy Web 9.0.0
-
setLayoutParser
public void setLayoutParser(java.lang.String value)
Description copied from interface:TransformDefnAssociates a LayoutParserDefn with this TransformDefn based on its name.- Specified by:
setLayoutParserin interfaceTransformDefn- Since:
- MicroStrategy Web 9.0.0
-
getFormalParams
public FormalParameters getFormalParams() throws WebTransformException
Description copied from interface:TransformDefnReturns the formal parameters associated with this transform.- Specified by:
getFormalParamsin interfaceTransformDefn- Returns:
- formal parameters of the transform.
- Throws:
WebTransformException- thrown if there was an error getting the formal params (e.g. Transform did not exist).
-
isValid
public boolean isValid()
Description copied from interface:TransformDefnReturns whether the transform can be instantiated.- Specified by:
isValidin interfaceTransformDefn- Returns:
- whether the transform can be instantiated.
-
checkParamValue
public void checkParamValue(FormalParameter formalParam, java.lang.Object value) throws java.lang.IllegalArgumentException
Description copied from interface:TransformDefnChecks whether the value can be used with the underlying transform.- Specified by:
checkParamValuein interfaceTransformDefn- Parameters:
formalParam- the formal parameter used to check the value.value- the value wanted to be checked.- Throws:
java.lang.IllegalArgumentException- thrown if the value is not valid.
-
getSupportedBeanType
public java.lang.String getSupportedBeanType()
Description copied from interface:TransformDefnReturns a class name of the root class/interface supported by this transform. We assume here that each transform supports only beans belonging to one class hierarchy.- Specified by:
getSupportedBeanTypein interfaceTransformDefn- Returns:
- a class name of the root class/interface supported by this transform.
-
supports
public boolean supports(java.lang.Class beanClass)
Description copied from interface:TransformDefnReturns true if the transform supports objects of specified type.- Specified by:
supportsin interfaceTransformDefn- Parameters:
beanClass- the Java Class object representing bean type.- Returns:
- true if the transform supports objects of specified type.
-
supports
public boolean supports(java.lang.String beanClassName)
Description copied from interface:TransformDefnReturns true if the transform supports objects of specified type.- Specified by:
supportsin interfaceTransformDefn- Parameters:
beanClassName- the bean class name.- Returns:
- true if the transform supports objects of specified type.
-
getTransform
public Transform getTransform()
Description copied from interface:TransformDefnReturns the Transform instance associated with this object.- Specified by:
getTransformin interfaceTransformDefn- Returns:
- The Transform instance associated with this object.
-
getLayoutParserDefn
public LayoutParserDefn getLayoutParserDefn()
Description copied from interface:TransformDefnGets the layout parser definition object associated with this transform, if one exists.- Specified by:
getLayoutParserDefnin interfaceTransformDefn- Returns:
- The layout parser to use with this transform.
- Since:
- MicroStrategy Web 8.0.0
-
setLayoutParserDefn
public void setLayoutParserDefn(LayoutParserDefn layoutParserDefn)
Description copied from interface:TransformDefnSets the layout parser definition object to associate with this transform.- Specified by:
setLayoutParserDefnin interfaceTransformDefn- Parameters:
layoutParserDefn- The layout parser to use with this transform.- 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
-
-