edu.berkeley.guir.papier_mache.assoc
Interface AssociationFactory

All Superinterfaces:
edu.berkeley.guir.lib.util.ToShortStringable
All Known Implementing Classes:
AssociationTreeTable, ClassInstanceFactory, DefaultAssociationFactory, MarbleAnswering, ShapeAnalogueFactory, StringFactory, UserAssociationFactory, VisualAnalogueFactory

public interface AssociationFactory
extends edu.berkeley.guir.lib.util.ToShortStringable

An interface that creates AssociationElts.

Author:
Jack Li ( jack(AT)eecs{DOT}berkeley{DOT}edu )

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 interface edu.berkeley.guir.lib.util.ToShortStringable
toShortString
 

Method Detail

createAssociationEltForPhob

AssociationElt createAssociationEltForPhob(Phob phob)
Create an AssociationElt based on the given phob

Parameters:
phob - used to decide what type of AssociationElt to create
Returns:
the created AssociatoinElt

setParameter

void setParameter(java.lang.String paramName,
                  java.lang.String paramValue)
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.

Parameters:
paramName - the name of the parameter to set
paramValue - the value of the parameter