byucc.edif
Class NumberTypedValue

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

public class NumberTypedValue
extends NewTypedValue
implements java.io.Serializable

Signifies that the EDIF file has a Number value type.

Version:
$Id: NumberTypedValue.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  EdifNumber _numberValue
          This field represents the number value of this NumberTypedValue Object.
 
Constructor Summary
NumberTypedValue(EdifNumber value)
          Constructs a NumberTypedValue Object with the specified value.
 
Method Summary
 java.lang.Object clone()
          Creates a clone of this object and returns it.
 EdifNumber getNumberValue()
          Returns the number value of this object.
 void setNumberValue(EdifNumber value)
          Sets the Number value of this Object.
 void toEdif(EdifPrintWriter epw)
          Converts this object to EDIF format and writes it to the passed-in EdifPrintWriter Object.
 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

_numberValue

private EdifNumber _numberValue
This field represents the number value of this NumberTypedValue Object.

Constructor Detail

NumberTypedValue

public NumberTypedValue(EdifNumber value)
Constructs a NumberTypedValue Object with the specified value.

Parameters:
value - The EdifNumber value this object's number value will be set to
Method Detail

clone

public java.lang.Object clone()
Creates a clone of this object and returns it.

Specified by:
clone in class NewTypedValue
Returns:
An Object that is a copy or clone of this NumberTypedValue Object

getNumberValue

public EdifNumber getNumberValue()
Returns the number value of this object.

Returns:
An EdifNumber Object representing the number value of this NumberTypedValue Object

setNumberValue

public void setNumberValue(EdifNumber value)
Sets the Number value of this Object.

Parameters:
value - The EdifNumber value to set the value of this Object to

toEdif

public void toEdif(EdifPrintWriter epw)
Converts this object to EDIF format and writes it to the passed-in EdifPrintWriter Object.

Specified by:
toEdif in interface EdifOut
Parameters:
epw - The EdifPrintWriter object that will write the EDIF representation of this NumberTypedValue Object.

toString

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

Overrides:
toString in class java.lang.Object
Returns:
a String Object representing this NumberTypedValue Object