public class PromptSetDefinition
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PromptSetDefinition.PromptElementTable
Enum for all the various tables where prompt values can be stored
|
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() |
PromptSetDefinition.PromptElementTable |
getReadFromTable(java.lang.String elementID)
Returns the table the value is currently stored in
|
java.lang.String |
getReadFromTableName(java.lang.String elementID)
Returns the raw string name of the table the value is currently stored in
|
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.
|
boolean |
isDirty(java.lang.String elementID)
Is the given element dirty (changed by user before saving)
|
void |
resetPromptValue(java.lang.String elementID)
Sets values of the element to use the default.
|
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 |
setReadFromTable(java.lang.String elementID,
PromptSetDefinition.PromptElementTable table) |
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.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element tree) |
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 void resetPromptValue(java.lang.String elementID)
elementID
- ID of the elementpublic PromptSetDefinition.PromptElementTable getReadFromTable(java.lang.String elementID)
elementID
- ID of the elementPromptSetDefinition.PromptElementTable
of the table the value is read from, or null if none foundjava.lang.IllegalArgumentException
- if the value is not registered in the PromptSetDefinition.PromptElementTable
enum.public void setReadFromTable(java.lang.String elementID, PromptSetDefinition.PromptElementTable table)
public java.lang.String getReadFromTableName(java.lang.String elementID)
elementID
- ID of the elementjava.lang.NullPointerException
- in case the element is not containedpublic 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 elementprotected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element tree)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isDirty(java.lang.String elementID)