edu.ou.kmi.buddyspace.plugins.maps.xml
Class MapTagBuilder

java.lang.Object
  |
  +--edu.ou.kmi.buddyspace.plugins.maps.xml.MapTagBuilder

public class MapTagBuilder
extends java.lang.Object

MapTagBuilder is used to construct MapTag objects


Constructor Summary
MapTagBuilder()
          Creates a new MapTagBuilder instance.
 
Method Summary
 void addLayer(LayerTag layer)
          addLayer adds a new layer object to the end of this list.
 Extension build()
          build a new MapTag object
 void delLayer(LayerTag layer)
          delLayer removes an layer from this list, if it is present
 java.lang.String getID()
           
 java.util.Vector getLayers()
          getLayers returns the vector representing the layer objects associated with this object.
 void reset()
          reset the builder to a default state, so it can be reused.
 void setID(java.lang.String newID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTagBuilder

public MapTagBuilder()
Creates a new MapTagBuilder instance.

Method Detail

reset

public void reset()
reset the builder to a default state, so it can be reused.


setID

public void setID(java.lang.String newID)

getID

public java.lang.String getID()

addLayer

public void addLayer(LayerTag layer)
addLayer adds a new layer object to the end of this list.

Parameters:
layer - an LayerTag value

delLayer

public void delLayer(LayerTag layer)
delLayer removes an layer from this list, if it is present

Parameters:
layer - an LayerTag value

getLayers

public java.util.Vector getLayers()
getLayers returns the vector representing the layer objects associated with this object.

Returns:
a Vector value

build

public Extension build()
                throws java.lang.InstantiationException
build a new MapTag object

Returns:
an Extension value
Throws:
java.lang.InstantiationException - if insufficient or incorrect data was proviced.