Package com.microstrategy.web.transform
Class ActualParameterImpl
- java.lang.Object
-
- com.microstrategy.utils.config.AbstractConfigurationElement
-
- com.microstrategy.web.transform.AbstractStyleCatalogElement
-
- com.microstrategy.web.transform.ActualParameterImpl
-
- All Implemented Interfaces:
ConfigurationElement,ConfigurationFile,ActualParameter,java.lang.Cloneable
public class ActualParameterImpl extends AbstractStyleCatalogElement implements ActualParameter
- 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_NAMEprotected static java.lang.StringATT_ORDERprotected static java.lang.StringATT_SOURCEprotected static java.lang.StringATT_TYPEprotected static java.lang.StringATT_VALUEprotected static java.lang.StringNODE_ACTUAL_PARAMETER-
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 ActualParameterImpl()
-
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.java.lang.StringgetCatalogValue()Returns the value of the actual parameter as registered in theStyleCatalogobject.FormalParametergetFormalParam()Returns the formal parameter object associated with the actual parameter.FormalParametergetFormalParam(Transform t)Returns the formal parameter object of a supplied Transform that is associated with the actual parameter.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.StringgetName()Returns the name of the actual parameter object.intgetOrder()Returns the precedence of the actual parameter.java.lang.StringgetSource()Returns the source name to look up theSourceLookupobject registered in the currentStyleCatalogobject.protected TransformDefngetTransformDefn()intgetType()java.lang.ObjectgetValue()Returns the value of the actual parameter.java.lang.ObjectgetValue(StyleRequestContext context)Returns the value of the actual parameter in the given contextbooleanhasValue()Returns whether the actual parameter has a value.booleanhasValue(StyleRequestContext context)Returns whether the actual parameter has a value based on the context.booleanisMatched()Returns whether the name of the actual parameter matches a formal parameter and if its value is valid for the corresponding formal parameter.booleanisMatched(StyleRequestContext context)Returns whether the name of the actual parameter matches a formal parameter and if its value is valid for the corresponding formal parameter in the given context.voidsetCatalogValue(java.lang.String value)Sets the value of the actual parameter to be saved in theStyleCatalogobject.voidsetFormalParam(FormalParameter param)Associates the formal parameter object with this actual parameter.voidsetName(java.lang.String value)voidsetOrder(int order)Sets a precedence to the actual parameter.voidsetSource(java.lang.String source)Sets the source name to look up theSourceLookupobject registered in the currentStyleCatalogobject.voidsetValue(java.lang.Object value)Sets the value of the actual parameter.-
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
-
NODE_ACTUAL_PARAMETER
protected static final java.lang.String NODE_ACTUAL_PARAMETER
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_NAME
protected static final java.lang.String ATT_NAME
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_TYPE
protected static final java.lang.String ATT_TYPE
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_VALUE
protected static final java.lang.String ATT_VALUE
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_ORDER
protected static final java.lang.String ATT_ORDER
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_SOURCE
protected static final java.lang.String ATT_SOURCE
- 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:ActualParameterReturns the name of the actual parameter object.- Specified by:
getNamein interfaceActualParameter- Returns:
- the name of the actual parameter object.
-
setName
public void setName(java.lang.String value)
- Since:
- MicroStrategy Web 9.0.0
-
getFormalParam
public FormalParameter getFormalParam(Transform t)
Description copied from interface:ActualParameterReturns the formal parameter object of a supplied Transform that is associated with the actual parameter.- Specified by:
getFormalParamin interfaceActualParameter- Parameters:
t- The Transform object to use for finding formal parameters.- Returns:
- the
FormalParameterobject associated with the acutal parameter.
-
getFormalParam
public FormalParameter getFormalParam()
Description copied from interface:ActualParameterReturns the formal parameter object associated with the actual parameter.- Specified by:
getFormalParamin interfaceActualParameter- Returns:
- the
FormalParameterobject associated with the acutal parameter.
-
setFormalParam
public void setFormalParam(FormalParameter param) throws java.lang.IllegalArgumentException
Description copied from interface:ActualParameterAssociates the formal parameter object with this actual parameter.- Specified by:
setFormalParamin interfaceActualParameter- Parameters:
param- theFormalParameterobject associated with this actual parameter.- Throws:
java.lang.IllegalArgumentException
-
isMatched
public boolean isMatched()
Description copied from interface:ActualParameterReturns whether the name of the actual parameter matches a formal parameter and if its value is valid for the corresponding formal parameter.- Specified by:
isMatchedin interfaceActualParameter- Returns:
- whether the name matches or not with a formal parameter.
-
isMatched
public boolean isMatched(StyleRequestContext context)
Description copied from interface:ActualParameterReturns whether the name of the actual parameter matches a formal parameter and if its value is valid for the corresponding formal parameter in the given context.- Specified by:
isMatchedin interfaceActualParameter- Returns:
- whether the name matches or not with a formal parameter.
- Since:
- MicroStrategy Web 8.0.0
-
getCatalogValue
public java.lang.String getCatalogValue()
Description copied from interface:ActualParameterReturns the value of the actual parameter as registered in theStyleCatalogobject.- Specified by:
getCatalogValuein interfaceActualParameter- Returns:
- the value of the actual parameter.
- Since:
- MicroStrategy Web 9.0.0
-
setCatalogValue
public void setCatalogValue(java.lang.String value)
Description copied from interface:ActualParameterSets the value of the actual parameter to be saved in theStyleCatalogobject.- Specified by:
setCatalogValuein interfaceActualParameter- Parameters:
value- the value of the actual parameter.- Since:
- MicroStrategy Web 9.0.0
-
getValue
public java.lang.Object getValue()
Description copied from interface:ActualParameterReturns the value of the actual parameter.- Specified by:
getValuein interfaceActualParameter- Returns:
- the value of the actual parameter.
-
getValue
public java.lang.Object getValue(StyleRequestContext context)
Description copied from interface:ActualParameterReturns the value of the actual parameter in the given context- Specified by:
getValuein interfaceActualParameter- Returns:
- the value of the actual parameter.
- Since:
- MicroStrategy Web 8.0.0
-
hasValue
public boolean hasValue()
Description copied from interface:ActualParameterReturns whether the actual parameter has a value.- Specified by:
hasValuein interfaceActualParameter- Returns:
- whether the actual parameter has a value.
-
hasValue
public boolean hasValue(StyleRequestContext context)
Description copied from interface:ActualParameterReturns whether the actual parameter has a value based on the context.- Specified by:
hasValuein interfaceActualParameter- Returns:
- whether the actual parameter has a value.
- Since:
- MicroStrategy Web 8.0.0
-
setValue
public void setValue(java.lang.Object value) throws java.lang.IllegalArgumentExceptionDescription copied from interface:ActualParameterSets the value of the actual parameter.- Specified by:
setValuein interfaceActualParameter- Parameters:
value- the value of the actual parameter.- Throws:
java.lang.IllegalArgumentException- thrown if the value is null.
-
getOrder
public int getOrder()
Description copied from interface:ActualParameterReturns the precedence of the actual parameter. This precedence is used to resolve which actual parameter to use if there are multiple actual parameters matching the same formal parameter. Higher this number, higher precedence.- Specified by:
getOrderin interfaceActualParameter- Returns:
- the precedence of the actual parameter.
- Since:
- MicroStrategy Web 8.0.0
-
setOrder
public void setOrder(int order)
Description copied from interface:ActualParameterSets a precedence to the actual parameter. This precedence is used to resolve which actual parameter to use if there are multiple actual parameters matching the same formal parameter. Higher this number, higher precedence.- Specified by:
setOrderin interfaceActualParameter- Parameters:
order- the precedence of the actual parameter.- Since:
- MicroStrategy Web 8.0.0
-
getSource
public java.lang.String getSource()
Description copied from interface:ActualParameterReturns the source name to look up theSourceLookupobject registered in the currentStyleCatalogobject.- Specified by:
getSourcein interfaceActualParameter- Returns:
- the source name to look up the SourceLookup object.
- Since:
- MicroStrategy Web 8.0.0
-
setSource
public void setSource(java.lang.String source)
Description copied from interface:ActualParameterSets the source name to look up theSourceLookupobject registered in the currentStyleCatalogobject.- Specified by:
setSourcein interfaceActualParameter- Parameters:
source- the source name to look up the SourceLookup object.- Since:
- MicroStrategy Web 8.0.0
-
getType
public int getType()
- Since:
- MicroStrategy Web 9.0.0
-
getTransformDefn
protected TransformDefn getTransformDefn()
- Since:
- MicroStrategy Web 9.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
-
-