org.apache.fulcrum.intake.model
Class FieldFactory

java.lang.Object
  extended by org.apache.fulcrum.intake.model.FieldFactory

public abstract class FieldFactory
extends Object

Creates Field objects.

Version:
$Id: FieldFactory.java 670328 2008-06-22 09:34:11Z tv $
Author:
John McNally, Quinton McCombs, Colin Chalmers, Thomas Vandahl

Nested Class Summary
protected static class FieldFactory.FieldCtor
           
 
Constructor Summary
FieldFactory()
           
 
Method Summary
static Field getInstance(XmlField xmlField, Group xmlGroup)
          Creates a Field object appropriate for the type specified in the xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldFactory

public FieldFactory()
Method Detail

getInstance

public static final Field getInstance(XmlField xmlField,
                                      Group xmlGroup)
                               throws IntakeException
Creates a Field object appropriate for the type specified in the xml file.

Parameters:
xmlField - a XmlField value
Returns:
a Field value
Throws:
IntakeException - indicates that an unknown type was specified for a field.


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.