com.rapidtransform.core.model
Class BaseRelation<SourceType extends Model,TargetType extends Model>
java.lang.Object
com.rapidtransform.core.model.AbstractBaseModel
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
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 |
BaseRelation
public BaseRelation()
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.