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.StringATT_IDstatic java.lang.StringATT_INDEXstatic java.lang.StringATT_NAMEstatic java.lang.StringATT_REQUIREDstatic java.lang.StringATT_TYPEstatic java.lang.StringATT_VALIDATORstatic java.lang.StringATT_VALUEstatic java.lang.StringNODE_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 intgetID()Return the id field value.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 attribute.intgetRequiredGroup()Returns the "required" attribute value.java.lang.StringgetType()Returns the type attribute.java.lang.StringgetValidator()Returns the validator attribute.java.lang.StringgetValue()Returns the value attribute.booleanisRequired()Returnstrueif the required-group value is different from 0 (i.e.voidsetID(int id)Set the id field valuevoidsetName(java.lang.String name)Set the name field valuevoidsetRequiredGroup(int required)Set the required field valuevoidsetType(java.lang.String type)Set the type field valuevoidsetValidator(java.lang.String validator)Set the validator field valuevoidsetValue(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: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
-
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()
Returnstrueif 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
-
-