public static class OldStyleParams.Param
extends java.lang.Object
| Constructor and Description |
|---|
Param(java.lang.String name)
Create a
Param instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName()
Return the display name of this
Param |
java.lang.String |
getName()
Get the name of this
Param |
java.lang.String |
getValue()
Get the value of this
Param |
boolean |
hasBeenModified()
Return
true if this instance has been modified. |
void |
resetModified()
Reset the modified flag for this instance such that
hasBeenModified()
will return false. |
void |
setDisplayName(java.lang.String newName)
Set the display name for this
Param |
void |
setName(java.lang.String newName)
Set the name of this
Param |
void |
setValue(java.lang.String newValue)
Set the value of this
Param |
org.w3c.dom.Element |
toXML(org.w3c.dom.Node parent)
Construct an XML representation of this
Param
Note that the act of creating an XML representation does not reset this instance's
modified flag. |
public Param(java.lang.String name)
throws java.lang.IllegalArgumentException
Param instance.name - name of the parameter (and name of XML element)java.lang.IllegalArgumentException - if name does not match the XML Name productionpublic boolean hasBeenModified()
true if this instance has been modified.
The instance is considered to have been modified if a change was made
that affects the persistent representation since:
resetModified() was last calledtrue or falseresetModified(),
toXML(org.w3c.dom.Node)public void resetModified()
hasBeenModified()
will return false.hasBeenModified()public org.w3c.dom.Element toXML(org.w3c.dom.Node parent)
Param
Note that the act of creating an XML representation does not reset this instance's
modified flag. It must be reset by calling resetModified().parent - Node under which to build representationhasBeenModified(),
resetModified()public java.lang.String getName()
Parampublic void setName(java.lang.String newName)
throws java.lang.IllegalArgumentException
ParamnewName - namejava.lang.IllegalArgumentException - if newName doesn't match the XML Name productionpublic java.lang.String getDisplayName()
Paramnull)public void setDisplayName(java.lang.String newName)
ParamnewName - display namepublic java.lang.String getValue()
Parampublic void setValue(java.lang.String newValue)
ParamnewValue - value