net.fortuna.ical4j.model.component
Class AbstractComponentFactory

java.lang.Object
  extended by groovy.util.AbstractFactory
      extended by net.fortuna.ical4j.model.component.AbstractComponentFactory
All Implemented Interfaces:
groovy.lang.GroovyObject, groovy.util.Factory
Direct Known Subclasses:
AvailableFactory, DaylightFactory, StandardFactory, VAlarmFactory, VAvailabilityFactory, VEventFactory, VFreeBusyFactory, VJournalFactory, VTimeZoneFactory, VToDoFactory, VVenueFactory

public abstract class AbstractComponentFactory
extends groovy.util.AbstractFactory
implements groovy.lang.GroovyObject

$Id$ Created on: 03/08/2009

Author:
fortuna

Constructor Summary
AbstractComponentFactory()
           
 
Method Summary
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 Object newInstance(groovy.util.FactoryBuilderSupport builder, Object name, Object value, Map attributes)
           
protected abstract  Object newInstance(PropertyList properties)
           
 void setChild(groovy.util.FactoryBuilderSupport build, Object parent, Object child)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class groovy.util.AbstractFactory
isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractComponentFactory

public AbstractComponentFactory()
Method Detail

newInstance

public Object newInstance(groovy.util.FactoryBuilderSupport builder,
                          Object name,
                          Object value,
                          Map attributes)
                   throws InstantiationException,
                          IllegalAccessException
Specified by:
newInstance in interface groovy.util.Factory
Throws:
InstantiationException
IllegalAccessException

newInstance

protected abstract Object newInstance(PropertyList properties)

setChild

public void setChild(groovy.util.FactoryBuilderSupport build,
                     Object parent,
                     Object child)
Specified by:
setChild in interface groovy.util.Factory
Overrides:
setChild in class groovy.util.AbstractFactory

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2004-2011 Micronode. All Rights Reserved.