byucc.edif
Class IntegerTypedValue

java.lang.Object
  extended bybyucc.edif.NewTypedValue
      extended bybyucc.edif.IntegerTypedValue
All Implemented Interfaces:
EdifOut, java.io.Serializable

public class IntegerTypedValue
extends NewTypedValue
implements java.io.Serializable

Signifies that the EDIF file has an Integer value type.

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

Field Summary
private  int _integerValue
          Contains the value of this IntegerTypedValue Object
 
Constructor Summary
IntegerTypedValue(int value)
          Constructs an IntegerTypedValue Object with an intitial value as the passed-in value.
 
Method Summary
 java.lang.Object clone()
          Returns a clone or copy of this object.
 int getIntegerValue()
          Returns the Integer value of this Object.
 void setIntegerValue(int value)
          Sets the int 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

_integerValue

private int _integerValue
Contains the value of this IntegerTypedValue Object

Constructor Detail

IntegerTypedValue

public IntegerTypedValue(int value)
Constructs an IntegerTypedValue Object with an intitial value as the passed-in value.

Parameters:
value - The initial value of this IntegerTypedValue 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 IntegerTypedValue Object

getIntegerValue

public int getIntegerValue()
Returns the Integer value of this Object.

Returns:
An int specifying the value of this IntegerTypedValue Object.

setIntegerValue

public void setIntegerValue(int value)
Sets the int value of this Object.

Parameters:
value - The int 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 the EDIF data will be written to

toString

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

Returns:
A String representing this IntegerTypedValue Object