com.ibm.ram.client
Class RAMRelationship

java.lang.Object
  extended by com.ibm.ram.common.data.Relationship
      extended by com.ibm.ram.client.RAMRelationship

public class RAMRelationship
extends Relationship

Defines the relationship between two assets

Since:
7.1
Author:
kbauer

Method Summary
 Asset getChildAsset()
          The child asset
 java.lang.String getChildAssetGUID()
          Gets the child GUID from the maniefest does not fetch the asset if we do not have to
 java.lang.String getChildAssetVersion()
          Gets the child version from the manifest does not fetch the asset if we do not have to
 Asset getParentAsset()
          The parent asset
 RelationshipRange getRelationshipRange()
          Returns the relationshipRange for the relationship object.
 RelationshipType getRelationshipType()
          The relationship type
 java.lang.String getRelationshipTypeName()
           
 void setChildAssetGUID(java.lang.String childAssetGUID)
           
 void setChildAssetVersion(java.lang.String childAssetVersion)
           
 void setParentAsset(Asset parentAsset)
           
 void setRelationshipType(RelationshipType type)
          Set the relationship type
 void setRelationshipTypeName(java.lang.String relationshipTypeName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getParentAsset

public Asset getParentAsset()
The parent asset

Overrides:
getParentAsset in class Relationship
Since:
7.1

getChildAsset

public Asset getChildAsset()
                    throws RAMRuntimeException
The child asset

Throws:
RAMRuntimeException
Since:
7.1

getRelationshipType

public RelationshipType getRelationshipType()
                                     throws RAMRuntimeException
The relationship type

Throws:
RAMRuntimeException
Since:
7.1

setRelationshipType

public void setRelationshipType(RelationshipType type)
Set the relationship type

Parameters:
type -
Since:
7.1

getChildAssetGUID

public java.lang.String getChildAssetGUID()
Gets the child GUID from the maniefest does not fetch the asset if we do not have to

Overrides:
getChildAssetGUID in class Relationship
Since:
7.1

getChildAssetVersion

public java.lang.String getChildAssetVersion()
Gets the child version from the manifest does not fetch the asset if we do not have to

Overrides:
getChildAssetVersion in class Relationship
Since:
7.1

toString

public java.lang.String toString()
Overrides:
toString in class Relationship

getRelationshipTypeName

public java.lang.String getRelationshipTypeName()
Overrides:
getRelationshipTypeName in class Relationship
Returns:
The name of the Relationship Type for this relationship.

setChildAssetGUID

public void setChildAssetGUID(java.lang.String childAssetGUID)
Overrides:
setChildAssetGUID in class Relationship
Parameters:
childAssetGUID - The childAssetGUID to set.

setChildAssetVersion

public void setChildAssetVersion(java.lang.String childAssetVersion)
Overrides:
setChildAssetVersion in class Relationship
Parameters:
childAssetVersion - The childAssetVersion to set.

setParentAsset

public void setParentAsset(Asset parentAsset)
Overrides:
setParentAsset in class Relationship
Parameters:
parentAsset - The parentAsset to set.

setRelationshipTypeName

public void setRelationshipTypeName(java.lang.String relationshipTypeName)
Overrides:
setRelationshipTypeName in class Relationship
Parameters:
relationshipTypeName - The relationshipTypeName to set.

getRelationshipRange

public RelationshipRange getRelationshipRange()
Returns the relationshipRange for the relationship object. If the range is not set, it will return null

Returns:
the relationshipRange for the given relationship
Since:
7.1.1