public static class RestorableSupport.StateObject extends Object
stateObject elements in an XML state document, as defined by RestorableSupport. The name and simple String value of a
stateObject can be queried or set through StateObject. This also serves as a context through which
nested stateObjects can be found or created.| Constructor and Description |
|---|
StateObject(Element element) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of this StateObject as a String, or null if this StateObject has no name.
|
String |
getValue()
Returns the value of this StateObject as a String, or null if this StateObject has no value.
|
void |
setName(String name)
Sets the name of this StateObject to the specified String.
|
void |
setValue(String value)
Sets the value of this StateObject to the specified String.
|
public StateObject(Element element)
public String getName()
public String getValue()
public void setName(String name)
name - the new name of this StateObject.IllegalArgumentException - If name is null.public void setValue(String value)
value - String value that replaces this StateObject's value.IllegalArgumentException - If value is null.