org.javagen.agile.oo.model
Class Property
java.lang.Object
org.javagen.agile.core.model.AbstractModel
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
| 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 |
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
Property
public Property()
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.