org.omus.data
Class StringField
java.lang.Object
|
+--org.omus.data.DataField
|
+--org.omus.data.StringField
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class StringField
- extends DataField
The class corresponding to String objects in ActionScript.
- See Also:
- Serialized Form
|
Constructor Summary |
StringField(java.lang.String n,
java.lang.String v)
Creates a new StringField with the specified name and value. |
|
Method Summary |
void |
accept(FieldVisitor fv)
Accepts a visitor. |
java.lang.String |
getString()
Returns the value of this StringField. |
void |
setString(java.lang.String newValue)
Sets the value of this StringField to the specified string. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringField
public StringField(java.lang.String n,
java.lang.String v)
- Creates a new StringField with the specified name and value.
getString
public java.lang.String getString()
- Returns the value of this StringField.
setString
public void setString(java.lang.String newValue)
- Sets the value of this StringField to the specified string.
accept
public void accept(FieldVisitor fv)
- Description copied from class:
DataField
- Accepts a visitor. The visitor pattern is useful if you want to extend
the functionality of all DataFields without modifying their API.
- Overrides:
accept in class DataField
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object