edu.berkeley.guir.papier_mache.assoc
Class StringFactory

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.assoc.DefaultAssociationFactory
      extended by edu.berkeley.guir.papier_mache.assoc.StringFactory
All Implemented Interfaces:
AssociationFactory, edu.berkeley.guir.lib.util.ToShortStringable

public class StringFactory
extends DefaultAssociationFactory


Constructor Summary
StringFactory()
           
 
Method Summary
 AssociationElt createAssociationEltForPhob(Phob phob)
          Create an AssociationElt based on the given phob
 void setParameter(java.lang.String paramName, java.lang.String paramValue)
          Used when unmarshalling an XML file.
 
Methods inherited from class edu.berkeley.guir.papier_mache.assoc.DefaultAssociationFactory
toShortString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringFactory

public StringFactory()
Method Detail

createAssociationEltForPhob

public AssociationElt createAssociationEltForPhob(Phob phob)
Description copied from interface: AssociationFactory
Create an AssociationElt based on the given phob

Specified by:
createAssociationEltForPhob in interface AssociationFactory
Specified by:
createAssociationEltForPhob in class DefaultAssociationFactory
Parameters:
phob - used to decide what type of AssociationElt to create
Returns:
the created AssociatoinElt

setParameter

public void setParameter(java.lang.String paramName,
                         java.lang.String paramValue)
Description copied from class: DefaultAssociationFactory
Used when unmarshalling an XML file. Subclasses implement this so that the unmarshaller can set all of the parameter fields. The default behavior is to throw an error that the parameter is not a field of the class. If a classifier does not accept a parameter, it should call super.setParameter(), which will invoke this error handler.

Specified by:
setParameter in interface AssociationFactory
Overrides:
setParameter in class DefaultAssociationFactory
Parameters:
paramName - the name of the parameter to set
paramValue - the value of the parameter