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

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

public class ClusterTagBuilder
extends java.lang.Object

ClusterTagBuilder is used to construct ClusterTag objects


Constructor Summary
ClusterTagBuilder()
          Creates a new ClusterTagBuilder instance.
 
Method Summary
 void addCluster(ClusterTag cluster)
          addCluster adds a new cluster object to the end of this list.
 void addItem(ItemTag item)
          addItem adds a new item object to the end of this list.
 Extension build()
          build a new ClusterTag object
 void delCluster(ClusterTag cluster)
          delCluster removes a cluster from this list, if it is present
 void delItem(ItemTag item)
          delItem removes an item from this list, if it is present
 java.util.Vector getItemsAndClusters()
          getItemsAndClusters returns the vector representing the item and cluster objects associated with this object.
 java.lang.String getLat()
           
 java.lang.String getLon()
           
 java.lang.String getName()
           
 java.lang.String getSize()
           
 void reset()
          reset the builder to a default state, so it can be reused.
 void setLat(java.lang.String newLat)
           
 void setLon(java.lang.String newLon)
           
 void setName(java.lang.String newName)
           
 void setSize(java.lang.String newSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterTagBuilder

public ClusterTagBuilder()
Creates a new ClusterTagBuilder instance.

Method Detail

reset

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


setLat

public void setLat(java.lang.String newLat)

getLat

public java.lang.String getLat()

setLon

public void setLon(java.lang.String newLon)

getLon

public java.lang.String getLon()

setSize

public void setSize(java.lang.String newSize)

getSize

public java.lang.String getSize()

setName

public void setName(java.lang.String newName)

getName

public java.lang.String getName()

addItem

public void addItem(ItemTag item)
addItem adds a new item object to the end of this list.

Parameters:
item - an ItemTag value

delItem

public void delItem(ItemTag item)
delItem removes an item from this list, if it is present

Parameters:
item - an ItemTag value

addCluster

public void addCluster(ClusterTag cluster)
addCluster adds a new cluster object to the end of this list.

Parameters:
cluster - an ClusterTag value

delCluster

public void delCluster(ClusterTag cluster)
delCluster removes a cluster from this list, if it is present

Parameters:
cluster - an ClusterTag value

getItemsAndClusters

public java.util.Vector getItemsAndClusters()
getItemsAndClusters returns the vector representing the item and cluster objects associated with this object.

Returns:
a Vector value

build

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

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