fdda.model
Class PropertyFactory

java.lang.Object
  |
  +--fdda.model.PropertyFactory

public final class PropertyFactory
extends Object

A factory class that creates Properties.

Author:
Jörg Rüdenauer

Method Summary
static Property createProperty(String name, String type)
          Creates a new property with the specified name of the specified type.
static Property createProperty(String name, String type, String displayedName, String description)
          Creates a new property with the specified name of the specified type.
static PropertyType createPropertyType(String typeName)
          Creates a PropertyType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createPropertyType

public static PropertyType createPropertyType(String typeName)
Creates a PropertyType. If such a PropertyType was previously created, the already created instance is returned (Singleton-like). All exceptions are caught; if an exception occurs, null is returned.

Parameters:
typeName - the name of the type, e.g. 'String' or 'Integer'.
Returns:
the new PropertyType
See Also:
PropertyType

createProperty

public static Property createProperty(String name,
                                      String type)
Creates a new property with the specified name of the specified type. The property initially has no values.

Parameters:
name - the name of the property
type - the type of the property
Returns:
the new Property

createProperty

public static Property createProperty(String name,
                                      String type,
                                      String displayedName,
                                      String description)
Creates a new property with the specified name of the specified type. The property initially has no values.

Parameters:
name - the name of the property
type - the type of the property
displayedName - the displayed name of the property
description - a description of the property, user-readable.
Returns:
the new Property


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.