com.rapidtransform.core.model
Class BaseRelation<SourceType extends Model,TargetType extends Model>

java.lang.Object
  extended by com.rapidtransform.core.model.AbstractBaseModel
      extended by com.rapidtransform.core.model.BaseRelation<SourceType,TargetType>
All Implemented Interfaces:
Model, Relation<SourceType,TargetType>, java.io.Serializable

public class BaseRelation<SourceType extends Model,TargetType extends Model>
extends AbstractBaseModel
implements Relation<SourceType,TargetType>

Author:
Steve Werner
See Also:
Serialized Form

Constructor Summary
BaseRelation()
           
 
Method Summary
 SourceType getSource()
          returns the source model object
 TargetType getTarget()
          returns the target model object
 void setSource(SourceType source)
           
 void setTarget(TargetType target)
           
 
Methods inherited from class com.rapidtransform.core.model.AbstractBaseModel
equals, generateUuid, getId, getMetaTypeName, getPropertyHolder, getUuid, hashCode, setId, setMetaTypeName, setPropertyHolder, setUuid
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.rapidtransform.core.model.Model
getId, getMetaTypeName, getPropertyHolder, getUuid, setMetaTypeName, setPropertyHolder
 

Constructor Detail

BaseRelation

public BaseRelation()
Method Detail

getSource

public SourceType getSource()
Description copied from interface: Relation
returns the source model object

Specified by:
getSource in interface Relation<SourceType extends Model,TargetType extends Model>
Returns:
Returns the source.

setSource

public void setSource(SourceType source)
Parameters:
source - The source to set.

getTarget

public TargetType getTarget()
Description copied from interface: Relation
returns the target model object

Specified by:
getTarget in interface Relation<SourceType extends Model,TargetType extends Model>
Returns:
Returns the target.

setTarget

public void setTarget(TargetType target)
Parameters:
target - The target to set.