uk.me.parabola.imgfmt.mps
Class ProductBlock

java.lang.Object
  extended by uk.me.parabola.imgfmt.mps.Block
      extended by uk.me.parabola.imgfmt.mps.ProductBlock

public class ProductBlock
extends Block

A block describing a particular product. Not sure how this relates to the map set.

Author:
Steve Ratcliffe

Constructor Summary
ProductBlock()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getDescription()
           
 int getFamilyId()
           
 int getProductId()
           
 int hashCode()
           
 void setDescription(java.lang.String description)
           
 void setFamilyId(int familyId)
           
 void setProductId(int productId)
           
protected  void writeBody(StructuredOutputStream out)
          Writes the body to the output stream given.
 
Methods inherited from class uk.me.parabola.imgfmt.mps.Block
write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductBlock

public ProductBlock()
Method Detail

writeBody

protected void writeBody(StructuredOutputStream out)
                  throws java.io.IOException
Description copied from class: Block
Writes the body to the output stream given.

Specified by:
writeBody in class Block
Parameters:
out - The stream to write to.
Throws:
java.io.IOException

setFamilyId

public void setFamilyId(int familyId)

getFamilyId

public int getFamilyId()

setProductId

public void setProductId(int productId)

getProductId

public int getProductId()

setDescription

public void setDescription(java.lang.String description)

getDescription

public java.lang.String getDescription()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object