EVolve.data
Class ReferenceLink

java.lang.Object
  |
  +--EVolve.data.ReferenceLink

public class ReferenceLink
extends java.lang.Object


Constructor Summary
ReferenceLink(ReferenceLink from, ReferenceLink to)
          Creates a reference link by combining two reference links.
ReferenceLink(java.lang.String name, int sourceType, int sourceIndex, int targetType, java.lang.String description)
          Creates a reference link.
 
Method Summary
 java.lang.String getDescription()
          Gets the description of the link.
 java.lang.String getName()
          Gets the name of the link.
 int getSourceIndex()
          Gets the field index of the source element.
 int getSourceType()
          Gets the type of the source element.
 int getTarget(int source)
          Gets the target.
 int getTargetType()
          Gets the type of the target entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceLink

public ReferenceLink(java.lang.String name,
                     int sourceType,
                     int sourceIndex,
                     int targetType,
                     java.lang.String description)
Creates a reference link.

Parameters:
name - name of the link
sourceType - type of the source element
sourceIndex - field index of the source element
targetType - type of the target entity
description - description of the link

ReferenceLink

public ReferenceLink(ReferenceLink from,
                     ReferenceLink to)
Creates a reference link by combining two reference links.

Parameters:
from - where the link starts
to - where the link ends
Method Detail

getName

public java.lang.String getName()
Gets the name of the link.

Returns:
name of the link

getSourceType

public int getSourceType()
Gets the type of the source element.

Returns:
type of the source element

getSourceIndex

public int getSourceIndex()
Gets the field index of the source element.

Returns:
field index of the source element

getTargetType

public int getTargetType()
Gets the type of the target entity.

Returns:
type of the target entity

getTarget

public int getTarget(int source)
Gets the target.

Parameters:
source - reference
Returns:
target

getDescription

public java.lang.String getDescription()
Gets the description of the link.

Returns:
description of the link