org.jaffa.rules.metadata
Class ClassMetaData

java.lang.Object
  extended byorg.jaffa.rules.metadata.ClassMetaData

public class ClassMetaData
extends Object

An instance of this class represents a domain object or DTO defined in the Rules config file.


Constructor Summary
ClassMetaData()
          Creates a new instance.
 
Method Summary
 void addField(FieldMetaData field)
          Add a field.
 void clearFields()
          Clears the fields.
 String getClassName()
          Getter for the property className.
 FieldMetaData getField(String fieldName)
          Returns the FieldMetaData for the given field.
 FieldMetaData[] getFields()
          Getter for the property fields.
 void setClassName(String className)
          Setter for property className.
 void setFields(FieldMetaData[] fields)
          Setter for property fields.
 String toString()
          Returns diagnostic information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassMetaData

public ClassMetaData()
Creates a new instance.

Method Detail

getClassName

public String getClassName()
Getter for the property className.

Returns:
Value of property className.

setClassName

public void setClassName(String className)
Setter for property className.

Parameters:
className - New value of property className.

clearFields

public void clearFields()
Clears the fields.


addField

public void addField(FieldMetaData field)
Add a field.

Parameters:
field - The field to be added.

getFields

public FieldMetaData[] getFields()
Getter for the property fields.

Returns:
Value of property fields.

getField

public FieldMetaData getField(String fieldName)
Returns the FieldMetaData for the given field.

Parameters:
fieldName - the field for which the FieldMetaData is to be returned. A null will be returned in case no such definition is found.
Returns:
the FieldMetaData.

setFields

public void setFields(FieldMetaData[] fields)
Setter for property fields.

Parameters:
fields - New value of property fields.

toString

public String toString()
Returns diagnostic information.

Returns:
a String containing diagnostic information.


Copyright © 2002-2004 JAFFA Project.