org.javagen.agile.oo.model
Class Class

java.lang.Object
  extended by org.javagen.agile.core.model.AbstractModel
      extended by org.javagen.agile.oo.model.Class
All Implemented Interfaces:
Serializable, ContextHolder, Model

public class Class
extends AbstractModel

Models a Object-Oriented class.

Author:
Richard Easterling
See Also:
Serialized Form

Field Summary
protected  String code
           
static String DEFAULT_MODEL_TYPE
           
static String[] EMPTY_STRING_ARRAY
           
 
Fields inherited from class org.javagen.agile.core.model.AbstractModel
childModels, context, id, modelType, name, parentModel
 
Constructor Summary
Class()
           
Class(String name)
           
 
Method Summary
 void copyTo(Model targetModel)
          Copy non-null properties into target model instance.
 boolean equals(Object obj)
           
 List<Property> getProperties()
           
 int hashCode()
           
 Property lookupProperty(String name)
           
 Reference toReference(Property prop)
           
 
Methods inherited from class org.javagen.agile.core.model.AbstractModel
addChildModel, allOwnedModels, get, getChildModels, getContext, getId, getModelType, getName, getParentModel, lookupChildByName, put, setChildModels, setContext, setId, setModelType, setName, setParentModel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_STRING_ARRAY

public static final String[] EMPTY_STRING_ARRAY

DEFAULT_MODEL_TYPE

public static final String DEFAULT_MODEL_TYPE
See Also:
Constant Field Values

code

protected String code
Constructor Detail

Class

public Class()

Class

public Class(String name)
Method Detail

copyTo

public void copyTo(Model targetModel)
Description copied from interface: Model
Copy non-null properties into target model instance. Child values are generally not copied. Used in conjunction with XML serialization to allow individual model instances to be custimized.

Specified by:
copyTo in interface Model
Overrides:
copyTo in class AbstractModel
Parameters:
targetModel - model to set properties on

getProperties

public List<Property> getProperties()

lookupProperty

public Property lookupProperty(String name)

toReference

public Reference toReference(Property prop)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractModel


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.