EVolve.data
Class ReferenceLink

java.lang.Object
  |
  +--EVolve.data.ReferenceLink
All Implemented Interfaces:
java.lang.Cloneable

public class ReferenceLink
extends java.lang.Object
implements java.lang.Cloneable


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, java.lang.String[] properties)
          Creates a reference link.
 
Method Summary
 java.lang.Object clone()
           
 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.
 long getTarget(long source)
          Gets the target.
 int getTargetType()
          Gets the type of the target entity.
 boolean hasProperty(java.lang.String property)
           
 
Methods inherited from class java.lang.Object
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,
                     java.lang.String[] properties)
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
properties - properties 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 long getTarget(long 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

hasProperty

public boolean hasProperty(java.lang.String property)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object