public abstract class PromptElement
extends java.lang.Object
Constructor and Description |
---|
PromptElement() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCustomField()
Returns the custom field of this Prompt Element.
|
java.lang.String |
getMessageInsert()
This method returns a message insert for the message number returned by
getMessageNumber . |
int |
getMessageNumber()
This method returns a message number in case a Prompt is executed but its value is not valid.
|
java.lang.String |
getProperty(java.lang.String name)
Returns the value of a property by its name.
|
java.lang.String |
getTooltip()
Returns the tooltip of this Prompt Element.
|
java.lang.String |
getValue()
Returns the default value of this prompt element.
|
java.lang.String[] |
getValues()
Returns the list of values if the "Array" property is set.
|
java.lang.String |
getVariable()
Returns the variable name that can be used in the Automation Engine Script.
|
boolean |
hasList()
Returns
true if the prompt element contains a list of values. |
boolean |
isAltView()
Is this prompt using a variable as default value.
|
void |
setAltView(boolean altview)
Is this prompt using a variable as default value
|
void |
setCustomField(java.lang.String customField)
Sets the custom field of this Prompt Element.
|
void |
setTooltip(java.lang.String tooltip)
Sets the tooltip of this Prompt Element.
|
void |
setValue(java.lang.String value)
Sets the default value of this prompt element.
|
void |
setValues(java.lang.String[] values)
Sets the list of values if the "Array" property is set.
|
void |
setVariable(java.lang.String variable)
Sets the variable name that can be used in the Automation Engine Script.
|
java.lang.String |
toString() |
void |
updateDefaultValue(org.w3c.dom.Element element)
Internal use.
|
public java.lang.String getTooltip()
public void setTooltip(java.lang.String tooltip)
tooltip
- Tooltip textpublic java.lang.String getCustomField()
public void setCustomField(java.lang.String customField)
customField
- Custom fieldpublic java.lang.String getVariable()
public void setValue(java.lang.String value)
value
- Default valuepublic void setValues(java.lang.String[] values)
values
- Array of Strings containing the valuespublic java.lang.String[] getValues()
public java.lang.String getValue()
public void setVariable(java.lang.String variable)
variable
- Name of the Script variablepublic boolean hasList()
true
if the prompt element contains a list of values.public java.lang.String getProperty(java.lang.String name)
name
- Name of the propertypublic void updateDefaultValue(org.w3c.dom.Element element)
element
- DOM elementpublic java.lang.String toString()
toString
in class java.lang.Object
public int getMessageNumber()
public java.lang.String getMessageInsert()
getMessageNumber
.null
or an empty Stringpublic void setAltView(boolean altview)
altview
- true to allow variables as inputpublic boolean isAltView()