org.javagen.agile.oo.model
Class Reference

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

public class Reference
extends Property

Models a Object-Oriented class reference by extending a class property.

References are between model classes, if the class you are referencing is in a external library, you must at least provide a Class with a name in order to model a reference.

Author:
Richard Easterling
See Also:
Serialized Form

Nested Class Summary
static class Reference.LocalCardinality
           
 
Field Summary
static String DEFAULT_MODEL_TYPE
           
protected  Reference reverse
           
protected  Class targetType
           
 
Fields inherited from class org.javagen.agile.oo.model.Property
collectionType, navigable, type
 
Fields inherited from class org.javagen.agile.core.model.AbstractModel
childModels, context, id, modelType, name, parentModel
 
Constructor Summary
Reference()
           
 
Method Summary
 Reference.LocalCardinality getCardinality()
           
 Reference getReverse()
           
 Class getTargetType()
           
 String getType()
           
 void setReverse(Reference reverse)
           
 void setTargetType(Class targetType)
           
 
Methods inherited from class org.javagen.agile.oo.model.Property
copyTo, getCollectionType, getNavigable, getParentClass, setCollectionType, setNavigable, setType, 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

reverse

protected Reference reverse

targetType

protected Class targetType
Constructor Detail

Reference

public Reference()
Method Detail

getCardinality

public Reference.LocalCardinality getCardinality()

getReverse

public Reference getReverse()

setReverse

public void setReverse(Reference reverse)

getTargetType

public Class getTargetType()

setTargetType

public void setTargetType(Class targetType)

getType

public String getType()
Overrides:
getType in class Property


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