edu.berkeley.guir.papier_mache.assoc
Class ClassInstanceFactory
java.lang.Object
edu.berkeley.guir.papier_mache.assoc.DefaultAssociationFactory
edu.berkeley.guir.papier_mache.assoc.ClassInstanceFactory
- All Implemented Interfaces:
- AssociationFactory, edu.berkeley.guir.lib.util.ToShortStringable
- public class ClassInstanceFactory
- extends DefaultAssociationFactory
With each creation, creates a new element of the same class type.
This software is distributed under the
Berkeley Software License.
- Author:
- Jack Li ( jack(AT)eecs{DOT}berkeley{DOT}edu ), Scott Klemmer ( srk(AT)cs.berkeley.edu )
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClassInstanceFactory
public ClassInstanceFactory(java.lang.Class assocEltClass)
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
toShortString
public java.lang.String toShortString()
- Description copied from class:
DefaultAssociationFactory
- Provides a short explanation of what this factory will create.
Should be overriden by subclasses.
- Specified by:
toShortString
in interface edu.berkeley.guir.lib.util.ToShortStringable
- Overrides:
toShortString
in class DefaultAssociationFactory