Package com.microstrategy.web.transform
Class LayoutImpl
- java.lang.Object
-
- com.microstrategy.utils.config.AbstractConfigurationElement
-
- com.microstrategy.web.transform.AbstractStyleCatalogElement
-
- com.microstrategy.web.transform.LayoutImpl
-
- All Implemented Interfaces:
ConfigurationElement,ConfigurationFile,Layout,java.lang.Cloneable
public class LayoutImpl extends AbstractStyleCatalogElement implements Layout
This class implements the Layout interface in the Style Catalog.- Since:
- MicroStrategy Web 8.0.0
-
-
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_LAYOUT_SOURCEprotected static java.lang.StringATT_ORDERprotected static java.lang.StringNODE_LAYOUT-
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 LayoutImpl()
-
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.ObjectgetKey()Default implementation forgetKey().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.LayoutTaggetLayoutDefinition(LayoutParser desiredParser)This method returns the in-memory representation of the layout definition to use with this specific style.java.lang.StringgetLayoutLocator()This method returns the layout locator string associated with this layout.LayoutSourceDefngetLayoutSourceDefn()This method returns theLayoutSourceDefnobject associated with this layout.java.lang.StringgetLayoutSourceName()Return the name of the LayoutSourceDefn currently associated with this Layout.intgetOrder()This method returns the precedence order of this specific layout.voidsetLayoutLocator(java.lang.String layoutLocator)This method sets the layout locator (String) associated with this layout.voidsetLayoutSourceDefn(LayoutSourceDefn layoutSourceDefn)This method sets theLayoutSourceDefnobject associated with this layout.voidsetLayoutSourceName(java.lang.String value)Associates a LayoutSourceDefn with this Layout based on its name.voidsetOrder(int order)This method sets the precedence order of this specific layout.protected booleanuseNodeValue()Controls whether this element will use the node value as a property.-
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, 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, 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, getNodeName, getStrAttribute, initFromXML, reload, toXML
-
-
-
-
Field Detail
-
ATT_LAYOUT_SOURCE
protected static final java.lang.String ATT_LAYOUT_SOURCE
- 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
-
NODE_LAYOUT
protected static final java.lang.String NODE_LAYOUT
- 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
-
getLayoutSourceDefn
public LayoutSourceDefn getLayoutSourceDefn()
Description copied from interface:LayoutThis method returns theLayoutSourceDefnobject associated with this layout. The underlyingLayoutSourceobject instance is used to perform the actual retrieval of the layout definition.- Specified by:
getLayoutSourceDefnin interfaceLayout- Returns:
- The
LayoutSourceDefnobject associated with this layout.
-
setLayoutSourceDefn
public void setLayoutSourceDefn(LayoutSourceDefn layoutSourceDefn)
Description copied from interface:LayoutThis method sets theLayoutSourceDefnobject associated with this layout. The underlyingLayoutSourceobject instance is used to perform the actual retrieval of the layout definition.- Specified by:
setLayoutSourceDefnin interfaceLayout- Parameters:
layoutSourceDefn- TheLayoutSourceDefnobject instance to use.
-
getLayoutSourceName
public java.lang.String getLayoutSourceName()
Description copied from interface:LayoutReturn the name of the LayoutSourceDefn currently associated with this Layout.- Specified by:
getLayoutSourceNamein interfaceLayout- Since:
- MicroStrategy Web 9.0.0
-
setLayoutSourceName
public void setLayoutSourceName(java.lang.String value)
Description copied from interface:LayoutAssociates a LayoutSourceDefn with this Layout based on its name.- Specified by:
setLayoutSourceNamein interfaceLayout- Since:
- MicroStrategy Web 9.0.0
-
getOrder
public int getOrder()
Description copied from interface:LayoutThis method returns the precedence order of this specific layout. The higher the number, the earlier it will get evaluated.
-
setOrder
public void setOrder(int order)
Description copied from interface:LayoutThis method sets the precedence order of this specific layout. The higher the number, the earlier it will get evaluated.
-
getLayoutDefinition
public LayoutTag getLayoutDefinition(LayoutParser desiredParser) throws WebTransformException
Description copied from interface:LayoutThis method returns the in-memory representation of the layout definition to use with this specific style. This object may be the result of a parse operation or it may have been previously cached (and simply returned).- Specified by:
getLayoutDefinitionin interfaceLayout- Parameters:
desiredParser- If a layout definition needs to be parsed, then use the suppliedLayoutParserobject.- Returns:
- The in-memory representation of the layout definition (in the form of a root
- Throws:
WebTransformException- thrown if there is any error occurred.LayoutTagtag).
-
getLayoutLocator
public java.lang.String getLayoutLocator()
Description copied from interface:LayoutThis method returns the layout locator string associated with this layout.- Specified by:
getLayoutLocatorin interfaceLayout- Returns:
- The layout "location" as a String.
-
setLayoutLocator
public void setLayoutLocator(java.lang.String layoutLocator)
Description copied from interface:LayoutThis method sets the layout locator (String) associated with this layout.- Specified by:
setLayoutLocatorin interfaceLayout- Parameters:
layoutLocator- The string representation of the layout location. The actual syntax is defined by theLayoutSourceobject it is associated with.
-
useNodeValue
protected boolean useNodeValue()
Description copied from class:AbstractConfigurationElementControls whether this element will use the node value as a property. For example, nodes defined as:
can expose a property which will return the node's value (This is the node vale). When this is the case, though, the element can't have any sub elements. They're mutually exclusive.<a att="1">This is the node value</a>- Overrides:
useNodeValuein classAbstractConfigurationElement- Returns:
falseby default. Override this method if you want to associate the node value with some property.- 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
-
getKey
public java.lang.Object getKey()
Description copied from class:AbstractConfigurationElementDefault implementation forgetKey(). It assumes a single attribute can be used to uniquely identify this element among its siblings; the attribute to use is specified by thegetKeyAttribute()method.- Specified by:
getKeyin interfaceConfigurationElement- Overrides:
getKeyin classAbstractConfigurationElement- Returns:
- If
getKeyAttribute()is empty returnsnull, otherwise it returns the value of the given attribute. - Since:
- MicroStrategy Web 9.0.0
-
-