public class

BlockConfig

extends AbstractConfigurationElement
java.lang.Object
   ↳ com.microstrategy.utils.config.AbstractConfigurationElement
     ↳ com.microstrategy.web.blocks.config.BlockConfig

Class Overview

THIS CLASS IS NOT SUPPORTED FOR USE IN CUSTOM APPLICATION DEVELOPMENT. THE CLASS IS SUBJECT TO CHANGE IN FUTURE RELEASES AND SOME METHODS AND PROPERTIES MAY NOT BE SUITABLE FOR CUSTOM DEVELOPMENT.

Summary

Constants
String ATT_ANNOTATION
String ATT_BLOCK_NAME
String ATT_INHERITS
String ATT_LISTACTION
String ATT_LISTELEMKEY
String ATT_LISTITEM
String NODE_BLOCK
[Expand]
Inherited Constants
From class com.microstrategy.utils.config.AbstractConfigurationElement
Public Constructors
BlockConfig()
BlockConfig(String name)
BlockConfig(Node root)
Constructor that takes a Node parameter.
Public Methods
void addProperty(Property property)
String getAnnotation()
Assignments getAssignment(String mode)
List<Assignments> getAssignments()
Definition getDefinition()
List<String> getDependentBlockNames()
String getInherits()
Object getKey()
Default implementation for getKey().
String getListAction()
String getListElementKey()
String getListItem()
String getName()
List<Property> getProperties()
Property getProperty(Object propertyName)
void setAnnotation(String annotation)
void setAssignment(Assignments assignment)
void setDefiniton(Definition definition)
void setInherits(String inherits)
void setInitPath(String path)
This method is used only if a new Element is created programmatically using the conifguration editor.
void setListAction(String action)
void setListElementKey(String key)
void setListItem(String item)
void setName(String name)
Protected Methods
String getDTDFileName()
Returns the name of a DTD file that will be added as SystemID to the XML resulting from serializing the contents of this ConfigurationElement into a file; null by default.
String getKeyAttribute()
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 the getKey and setKey methods.
boolean isKeyAttribute(String name)
Returns true is the name is that of the key attribute.
[Expand]
Inherited Methods
From class com.microstrategy.utils.config.AbstractConfigurationElement
From class java.lang.Object
From interface com.microstrategy.utils.config.ConfigurationElement
From interface com.microstrategy.utils.config.ConfigurationFile

Constants

public static final String ATT_ANNOTATION

Constant Value: "annotation"

public static final String ATT_BLOCK_NAME

Constant Value: "name"

public static final String ATT_INHERITS

Constant Value: "inherits"

public static final String ATT_LISTACTION

Constant Value: "listAction"

public static final String ATT_LISTELEMKEY

Constant Value: "listElementKey"

public static final String ATT_LISTITEM

Constant Value: "listItem"

public static final String NODE_BLOCK

Constant Value: "block"

Public Constructors

public BlockConfig ()

public BlockConfig (String name)

public BlockConfig (Node root)

Constructor that takes a Node parameter.

Parameters
root The root node.

Public Methods

public void addProperty (Property property)

public String getAnnotation ()

public Assignments getAssignment (String mode)

public List<Assignments> getAssignments ()

public Definition getDefinition ()

public List<String> getDependentBlockNames ()

public String getInherits ()

public Object getKey ()

Default implementation for getKey(). It assumes a single attribute can be used to uniquely identify this element among its siblings; the attribute to use is specified by the getKeyAttribute() method.

Returns
  • If getKeyAttribute() is empty returns null, otherwise it returns the value of the given attribute.

public String getListAction ()

public String getListElementKey ()

public String getListItem ()

public String getName ()

public List<Property> getProperties ()

public Property getProperty (Object propertyName)

public void setAnnotation (String annotation)

public void setAssignment (Assignments assignment)

public void setDefiniton (Definition definition)

public void setInherits (String inherits)

public void setInitPath (String path)

This method is used only if a new Element is created programmatically using the conifguration editor.

Parameters
path The path for newly created BlockConfig

public void setListAction (String action)

public void setListElementKey (String key)

public void setListItem (String item)

public void setName (String name)

Protected Methods

protected String getDTDFileName ()

Returns the name of a DTD file that will be added as SystemID to the XML resulting from serializing the contents of this ConfigurationElement into a file; null by default. This method should be extended if the concrete instance of an element has a predefined DTD file associated.

protected String getKeyAttribute ()

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 the getKey and setKey methods.

protected boolean isKeyAttribute (String name)

Returns true is the name is that of the key attribute.