net.sf.xtvdclient.xtvd.datatypes
Class Part

java.lang.Object
  extended by net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
      extended by net.sf.xtvdclient.xtvd.datatypes.Part
All Implemented Interfaces:
java.lang.Comparable

public class Part
extends AbstractDataType

A bean that represents a part record. The part record is a child element of schedules/schedule.


Field Summary
 
Fields inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
END_OF_LINE
 
Constructor Summary
Part()
          Default constructor.
Part(int number, int total)
          Create a new instance of the class and initialise the required instance variables with the specified values.
 
Method Summary
 int getNumber()
          Returns number.
 int getTotal()
          Returns total.
 void setNumber(int number)
          Set number.
 void setTotal(int total)
          Set total.
 java.lang.String toString()
          Over-ridden implementation.
 
Methods inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
compareTo, equals, replaceSpecialCharacters, replaceSpecialCharacters
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Part

public Part()
Default constructor. Not particularly useful, except if you wish to create an instance of the class, that will be re-used to associate with different part records.


Part

public Part(int number,
            int total)
Create a new instance of the class and initialise the required instance variables with the specified values.

Parameters:
number - The number value to set.
total - The total value to set.
Method Detail

toString

public java.lang.String toString()
Over-ridden implementation. Return an XML representation of the class fields in the same format as in the original XTVD document.

Overrides:
toString in class java.lang.Object
Returns:
The XML representation of the map record.

getNumber

public final int getNumber()
Returns number.

Returns:
The value/reference of/to number.

setNumber

public final void setNumber(int number)
Set number.

Parameters:
number - The value to set.

getTotal

public final int getTotal()
Returns total.

Returns:
The value/reference of/to total.

setTotal

public final void setTotal(int total)
Set total.

Parameters:
total - The value to set.