edu.byu.ece.edif.core
Class StringTypedValue

java.lang.Object
  extended by edu.byu.ece.edif.core.StringTypedValue
All Implemented Interfaces:
EdifOut, EdifTypedValue, java.io.Serializable

public class StringTypedValue
extends java.lang.Object
implements EdifTypedValue

Represents a String value type in an EDIF structure.

Version:
$Id:StringTypedValue.java 198 2008-04-16 21:14:21Z jamesfcarroll $
See Also:
Serialized Form

Field Summary
private  java.lang.String _stringValue
          The String value of this Object
 
Constructor Summary
StringTypedValue(java.lang.String value)
          Construct a StringTypedValue Object with the specified value.
 
Method Summary
 boolean equals(EdifTypedValue value)
           
 java.lang.String getStringValue()
          Return the String value of this object
 void toEdif(EdifPrintWriter epw)
          Write this object in EDIF format to the passed-in PrintWriter
 java.lang.String toString()
          Return a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, 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)
Construct a StringTypedValue Object with the specified value.

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

equals

public boolean equals(EdifTypedValue value)
Specified by:
equals in interface EdifTypedValue

getStringValue

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

Returns:
A String representing this Object's StringTypedValue

toEdif

public void toEdif(EdifPrintWriter epw)
Write 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()
Return a String representation of this object.

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