com.codestreet.messageforge
Class RFldFactory

java.lang.Object
  extended bycom.codestreet.messageforge.RFldFactory

public class RFldFactory
extends java.lang.Object

Factory class to create field instances.

Author:
Jawaid Hakim.

Constructor Summary
RFldFactory()
           
 
Method Summary
static RFld createField(java.lang.String xmlTag, java.lang.String name, java.lang.String id)
          Create a new field instance of the specified type with the specified name.
static java.lang.Class getClass(java.lang.String xmlTag)
          Get the java.lang.class object corresponding to the specified XML field tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFldFactory

public RFldFactory()
Method Detail

createField

public static RFld createField(java.lang.String xmlTag,
                               java.lang.String name,
                               java.lang.String id)
                        throws FactoryException
Create a new field instance of the specified type with the specified name.

Parameters:
xmlTag - Field type. This is XML tag of the desired field type.
name - Field name.
id - Field Id.
Returns:
New field instance.
Throws:
FactoryException

getClass

public static final java.lang.Class getClass(java.lang.String xmlTag)
Get the java.lang.class object corresponding to the specified XML field tag.

Parameters:
xmlTag - XML tag of field.
Returns:
java.lang.class object corresponding to the specified XML field tag. Returns null if the corresponding java.lang.class is not defined.


Copyright © 2003-2006 CodeStreet. All Rights Reserved.