byucc.edif
Class StringTypedValue

java.lang.Object
  extended by byucc.edif.NewTypedValue
      extended by byucc.edif.StringTypedValue
All Implemented Interfaces:
EdifOut, java.io.Serializable

public class StringTypedValue
extends NewTypedValue
implements java.io.Serializable

Signifies that the EDIF file has a String value type.

Version:
$Id: StringTypedValue.java,v 1.10 2004/08/27 19:16:42 tsa6 Exp $
Author:
Welson Sun, Mike Wirthlin, Tyler Anderson
See Also:
Serialized Form

Field Summary
private  java.lang.String _stringValue
          The String value of this Object
 
Constructor Summary
StringTypedValue(java.lang.String value)
          Constructs a StringTypedValue Object with the specified value.
 
Method Summary
 java.lang.Object clone()
          Returns a clone or copy of this object.
 java.lang.String getStringValue()
          Returns the String value of this object
 void setStringValue(java.lang.String value)
          Sets the String value of this StringTypedValue Object.
 void toEdif(EdifPrintWriter epw)
          Writes this object in EDIF format to the passed-in PrintWriter
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_stringValue

private java.lang.String _stringValue
The String value of this Object

Constructor Detail

StringTypedValue

public StringTypedValue(java.lang.String value)
Constructs a StringTypedValue Object with the specified value.

Parameters:
value - The value of the new StringTypedValue Object
Method Detail

clone

public java.lang.Object clone()
Returns a clone or copy of this object.

Specified by:
clone in class NewTypedValue
Returns:
An Object representing a clone or copy of this StringTypedValue Object

getStringValue

public java.lang.String getStringValue()
Returns the String value of this object

Returns:
A String representing this Object's StringTypedValue

setStringValue

public void setStringValue(java.lang.String value)
Sets the String value of this StringTypedValue Object.

Parameters:
value - The String value to set this object to

toEdif

public void toEdif(EdifPrintWriter epw)
Writes this object in EDIF format to the passed-in PrintWriter

Specified by:
toEdif in interface EdifOut
Parameters:
epw - The EdifPrintWriter Object that the EDIF will be written to.

toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A String representing this object's value