uk.me.parabola.imgfmt.mps
Class MapBlock

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

public class MapBlock
extends Block

A block describing an individual map. The family id, product id, series name, area name and map description can be set per map.

Author:
Steve Ratcliffe

Constructor Summary
MapBlock()
           
 
Method Summary
 java.lang.String getAreaName()
           
 int getFamilyId()
           
 java.lang.String getMapDescription()
           
 int getMapNumber()
           
 int getProductId()
           
 java.lang.String getSeriesName()
           
 void setAreaName(java.lang.String areaName)
           
 void setIds(int familyId, int productId)
           
 void setMapDescription(java.lang.String mapDescription)
           
 void setMapNumber(int mapNumber)
           
 void setSeriesName(java.lang.String seriesName)
           
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapBlock

public MapBlock()
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

setIds

public void setIds(int familyId,
                   int productId)

setSeriesName

public void setSeriesName(java.lang.String seriesName)

setMapNumber

public void setMapNumber(int mapNumber)

setMapDescription

public void setMapDescription(java.lang.String mapDescription)

setAreaName

public void setAreaName(java.lang.String areaName)

getFamilyId

public int getFamilyId()

getProductId

public int getProductId()

getMapNumber

public int getMapNumber()

getSeriesName

public java.lang.String getSeriesName()

getMapDescription

public java.lang.String getMapDescription()

getAreaName

public java.lang.String getAreaName()