org.javagen.agile.oo.model
Class Property

java.lang.Object
  extended by org.javagen.agile.core.model.AbstractModel
      extended by org.javagen.agile.oo.model.Property
All Implemented Interfaces:
Serializable, ContextHolder, Model
Direct Known Subclasses:
Reference

public class Property
extends AbstractModel

Models a Object-Oriented class property or attribute.

Author:
Richard Easterling
See Also:
Serialized Form

Field Summary
protected  String collectionType
           
static String DEFAULT_MODEL_TYPE
           
protected  Boolean navigable
           
protected  String type
           
 
Fields inherited from class org.javagen.agile.core.model.AbstractModel
childModels, context, id, modelType, name, parentModel
 
Constructor Summary
Property()
           
 
Method Summary
 void copyTo(Model targetModel)
          Copy non-null properties into target model instance.
 String getCollectionType()
           
 Boolean getNavigable()
           
 Class getParentClass()
           
 String getType()
           
 void setCollectionType(String collection)
           
 void setNavigable(Boolean navigable)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class org.javagen.agile.core.model.AbstractModel
addChildModel, allOwnedModels, equals, get, getChildModels, getContext, getId, getModelType, getName, getParentModel, lookupChildByName, put, setChildModels, setContext, setId, setModelType, setName, setParentModel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MODEL_TYPE

public static final String DEFAULT_MODEL_TYPE
See Also:
Constant Field Values

type

protected String type

collectionType

protected String collectionType

navigable

protected Boolean navigable
Constructor Detail

Property

public Property()
Method Detail

getParentClass

public Class getParentClass()

getType

public String getType()

setType

public void setType(String type)

getCollectionType

public String getCollectionType()

setCollectionType

public void setCollectionType(String collection)

getNavigable

public Boolean getNavigable()

setNavigable

public void setNavigable(Boolean navigable)

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

toString

public String toString()
Overrides:
toString in class AbstractModel


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