edu.bonn.xulu.data
Class DynamicXuluObject.DefaultFactory

java.lang.Object
  extended by edu.bonn.xulu.io.AbstractFactory
      extended by edu.bonn.xulu.data.DynamicXuluObject.DefaultFactory
All Implemented Interfaces:
Factory, InstantiationFactory
Enclosing class:
DynamicXuluObject

public static class DynamicXuluObject.DefaultFactory
extends AbstractFactory
implements InstantiationFactory

Diese Klasse implementiert eine Standard-Instanz-Factory fuer DynamicXuluObject.

Version:
1.0
Author:
Martin Schmitz (University of Bonn/Germany)
See Also:
DynamicXuluObject.DEFAULT_FACTORY

Field Summary
 
Fields inherited from class edu.bonn.xulu.io.AbstractFactory
name
 
Constructor Summary
DynamicXuluObject.DefaultFactory()
           
 
Method Summary
 Class getInstanceType()
          Liefert DynamicXuluObject.class als die Klasse, die von newInstance(boolean) instanziiert wird.
 DynamicXuluObject newInstance(boolean dialog)
          Erzeugt eine neue leere Instanz von DynamicXuluObject.
 DynamicXuluObject newInstance(boolean dialog, Object sample)
          Erzeugt ein dynamisches Xulu-Objekt, das dieselben Eigenschaften hat, wie die Vorlage.
 
Methods inherited from class edu.bonn.xulu.io.AbstractFactory
checkExportDestinationObject, checkImportSourceObject, equals, equals, getInstantiationFactoryFromRegistry, getName, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.bonn.xulu.io.Factory
equals
 

Constructor Detail

DynamicXuluObject.DefaultFactory

public DynamicXuluObject.DefaultFactory()
Method Detail

getInstanceType

public Class getInstanceType()
Liefert DynamicXuluObject.class als die Klasse, die von newInstance(boolean) instanziiert wird.

Specified by:
getInstanceType in interface InstantiationFactory
See Also:
InstantiationFactory.newInstance(boolean)

newInstance

public DynamicXuluObject newInstance(boolean dialog)
Erzeugt eine neue leere Instanz von DynamicXuluObject.

Specified by:
newInstance in interface InstantiationFactory
Parameters:
dialog - wird nicht beachtet, da kein Dialog zum erzeugen einer leeren Standard-Instanz benoetigt wird

newInstance

public DynamicXuluObject newInstance(boolean dialog,
                                     Object sample)
Erzeugt ein dynamisches Xulu-Objekt, das dieselben Eigenschaften hat, wie die Vorlage. Der Inhalt der Eigenschaften wird jedoch nicht kopiert.

Specified by:
newInstance in interface InstantiationFactory
Parameters:
dialog - siehe newInstance(boolean)
sample - Vorlage
Throws:
IllegalArgumentException - falls es sich bei der Vorlage nicht um eine Properties-Instanz handelt