Package com.microstrategy.web.beans
Class EventArgumentInfo
- java.lang.Object
-
- com.microstrategy.utils.config.AbstractConfigurationElement
-
- com.microstrategy.web.beans.EventArgumentInfo
-
- All Implemented Interfaces:
ConfigurationElement
,ConfigurationFile
,java.lang.Cloneable
public class EventArgumentInfo extends AbstractConfigurationElement
This class represents the "argument" node from the XML. Each argument is identified by its id. This is the deepest node in the xml and does not contain any child nodes Children : None. Attributes: "id" - The argument id "name" - The name of the argument "required" - // 0: not required // 1: required // 2+: required (group number) Key : "id" attribute.- Since:
- MicroStrategy Web 9.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 static java.lang.String
ATT_ID
static java.lang.String
ATT_INDEX
static java.lang.String
ATT_NAME
static java.lang.String
ATT_REQUIRED
static java.lang.String
ATT_TYPE
static java.lang.String
ATT_VALIDATOR
static java.lang.String
ATT_VALUE
static java.lang.String
NODE_EVENT_ARGUMENT
-
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 EventArgumentInfo()
Default constructor.EventArgumentInfo(int id)
Constructor: Set the id field for the argumentEventArgumentInfo(int id, java.lang.String name)
Set the id and name for the argument
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getID()
Return the id field value.protected java.lang.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 thegetKey
andsetKey
methods.java.lang.String
getName()
Returns the name attribute.int
getRequiredGroup()
Returns the "required" attribute value.java.lang.String
getType()
Returns the type attribute.java.lang.String
getValidator()
Returns the validator attribute.java.lang.String
getValue()
Returns the value attribute.boolean
isRequired()
Returnstrue
if the required-group value is different from 0 (i.e. it is required for this attribute to be in the request).void
setID(int id)
Set the id field valuevoid
setName(java.lang.String name)
Set the name field valuevoid
setRequiredGroup(int required)
Set the required field valuevoid
setType(java.lang.String type)
Set the type field valuevoid
setValidator(java.lang.String validator)
Set the validator field valuevoid
setValue(java.lang.String value)
Sets the value attribute.-
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, reload, 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, setStrAttribute, setUseDefault, setUseValidation, throwConfigParseException, toString, toXML, toXML, toXML, toXML, useNodeValue, useValidation
-
-
-
-
Field Detail
-
NODE_EVENT_ARGUMENT
public static final java.lang.String NODE_EVENT_ARGUMENT
- See Also:
- Constant Field Values
-
ATT_ID
public static final java.lang.String ATT_ID
- See Also:
- Constant Field Values
-
ATT_NAME
public static final java.lang.String ATT_NAME
- See Also:
- Constant Field Values
-
ATT_INDEX
public static final java.lang.String ATT_INDEX
- See Also:
- Constant Field Values
-
ATT_REQUIRED
public static final java.lang.String ATT_REQUIRED
- See Also:
- Constant Field Values
-
ATT_VALUE
public static final java.lang.String ATT_VALUE
- See Also:
- Constant Field Values
-
ATT_TYPE
public static final java.lang.String ATT_TYPE
- See Also:
- Constant Field Values
-
ATT_VALIDATOR
public static final java.lang.String ATT_VALIDATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EventArgumentInfo
public EventArgumentInfo()
Default constructor. Set the node name and register the child element
-
EventArgumentInfo
public EventArgumentInfo(int id)
Constructor: Set the id field for the argument- Parameters:
id
- The argument "id" for this object
-
EventArgumentInfo
public EventArgumentInfo(int id, java.lang.String name)
Set the id and name for the argument- Parameters:
id
- The argument "id" for this objectname
- The argument "name" for this object
-
-
Method Detail
-
getKeyAttribute
protected java.lang.String getKeyAttribute()
Description copied from class:AbstractConfigurationElement
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 thegetKey
andsetKey
methods.- Specified by:
getKeyAttribute
in classAbstractConfigurationElement
-
getID
public int getID()
Return the id field value.- Returns:
- The "id" associated with this argument
-
setID
public void setID(int id)
Set the id field value- Parameters:
id
- The new value for the "id" attribute
-
getName
public java.lang.String getName()
Returns the name attribute. This will be used as the name of the URL paramter associated with this attribute.
-
setName
public void setName(java.lang.String name)
Set the name field value- Parameters:
name
- The new value for the "name" attribute
-
getValue
public java.lang.String getValue()
Returns the value attribute. This will be used as the default for this argument.
-
setValue
public void setValue(java.lang.String value)
Sets the value attribute. This will be sued as the default value for this argument.
-
getRequiredGroup
public int getRequiredGroup()
Returns the "required" attribute value. This attribute identifies when the value of an attribute is required for the correct execution of the event. The possible values are:- 0: not required (default).
- 1: always required.
- 2+: required within a group. When several attributes shared the same "required" value, at least one of these attributes needs to be assigned a non-null value.
-
setRequiredGroup
public void setRequiredGroup(int required)
Set the required field value- Parameters:
required
- The new value for the "required" attribute
-
isRequired
public boolean isRequired()
Returnstrue
if the required-group value is different from 0 (i.e. it is required for this attribute to be in the request).
-
getType
public java.lang.String getType()
Returns the type attribute. This will be used as the data type of the parameter associated with this attribute.- Returns:
- type
-
setType
public void setType(java.lang.String type)
Set the type field value- Parameters:
name
- The new value for the "type" attribute
-
getValidator
public java.lang.String getValidator()
Returns the validator attribute. This will be used as the data type validator of the parameter associated with this attribute.- Returns:
- type
-
setValidator
public void setValidator(java.lang.String validator)
Set the validator field value- Parameters:
name
- The new value for the "validator" attribute
-
-