public class PromptSetDefinition
extends java.lang.Object
Constructor and Description |
---|
PromptSetDefinition(org.w3c.dom.Element doc)
Internal use.
|
PromptSetDefinition(PromptSetDefinition promptSetDefinition)
This constructor is required for creating a copy of the PromptSetDefinition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getElementIDs()
Returns an array of Prompt element IDs.
|
java.lang.String |
getId() |
UC4ObjectName |
getName() |
java.lang.String |
getValue(java.lang.String elementID)
Returns the value of the specified ID.
|
java.lang.String[] |
getValues(java.lang.String elementID)
Returns the values of the specified ID.
|
boolean |
hasAlternativeView(java.lang.String elementID)
Returns
true if the value of the specified prompt element is
shown in an alternative view. |
int |
hashCode() |
boolean |
hasList(java.lang.String elementID)
Returns true if the the specified ID contains an array of values
otherwise false.
|
void |
setAlternativeValue(java.lang.String elementID,
java.lang.String value)
Sets a value for the specified prompt element.
|
void |
setPasswordValue(java.lang.String elementID,
java.lang.String value)
Sets a value for the specified prompt element and encrypts it.
|
void |
setValue(java.lang.String elementID,
java.lang.String value)
Sets a value for the specified prompt element.
|
void |
setValues(java.lang.String elementID,
java.lang.String[] values)
Sets values as an array for the specified prompt element.
|
public PromptSetDefinition(org.w3c.dom.Element doc)
doc
- XML documentpublic PromptSetDefinition(PromptSetDefinition promptSetDefinition)
promptSetDefinition
- PromptSetDefinition
public UC4ObjectName getName()
public java.lang.String getId()
public java.lang.String[] getElementIDs()
public void setValue(java.lang.String elementID, java.lang.String value)
elementID
- ID of the elementvalue
- Valuepublic void setPasswordValue(java.lang.String elementID, java.lang.String value)
elementID
- ID of the elementvalue
- Valuepublic void setAlternativeValue(java.lang.String elementID, java.lang.String value)
getValue()
method to read the result back.elementID
- ID of the elementvalue
- Valuepublic void setValues(java.lang.String elementID, java.lang.String[] values)
elementID
- ID of the elementvalues
- Array of valuespublic boolean hasAlternativeView(java.lang.String elementID)
true
if the value of the specified prompt element is
shown in an alternative view. In this case the User Interface shows a
text field instead of a control corresponding to the type (check box,
time control, ...) The text field can be used to enter the name of a
Script variable (for example &MYVARIABLE1).elementID
- ID of the elementpublic java.lang.String getValue(java.lang.String elementID)
elementID
- ID of the elementpublic java.lang.String[] getValues(java.lang.String elementID)
elementID
- ID of the elementpublic boolean hasList(java.lang.String elementID)
elementID
- the ID of the elementpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object