COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.validation.internal.artifacts
Class ElementEdge

java.lang.Object
  extended by org.eclipse.cosmos.rm.validation.internal.artifacts.ElementEdge

public class ElementEdge
extends java.lang.Object

An element edge represents an edge from a target to a source element from/in the contained document


Constructor Summary
ElementEdge(java.lang.String referenceNameSpace, java.lang.String referenceType, int lineNumber)
          The constructor
 
Method Summary
 void appendToReference(java.lang.String referece)
          Appends to the reference path
 java.lang.String getDocument()
          Returns the document that this edge orginates from
 int getLineNumber()
           
 java.lang.String getReference()
          Returns the reference string
 java.lang.String getReferenceNameSpace()
           
 java.lang.String getReferenceType()
          Returns the source element
 void setLineNumber(int lineNumber)
           
 void setReference(java.lang.String reference)
          Sets the reference string
 void setReferenceNameSpace(java.lang.String referenceNameSpace)
           
 void setReferenceType(java.lang.String sourceElement)
          Set the source element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementEdge

public ElementEdge(java.lang.String referenceNameSpace,
                   java.lang.String referenceType,
                   int lineNumber)
The constructor

Parameters:
referenceNameSpace - The namespace URI for the reference
referenceType - The reference type
lineNumber - The line number of the reference in the original file
Method Detail

getReferenceNameSpace

public java.lang.String getReferenceNameSpace()
Returns:
the referenceNameSpace

setReferenceNameSpace

public void setReferenceNameSpace(java.lang.String referenceNameSpace)
Parameters:
referenceNameSpace - the referenceNameSpace to set

setReferenceType

public void setReferenceType(java.lang.String sourceElement)
Set the source element

Parameters:
sourceElement - The source element

getReferenceType

public java.lang.String getReferenceType()
Returns the source element

Returns:
source element

appendToReference

public void appendToReference(java.lang.String referece)
Appends to the reference path

Parameters:
referece - the string to be appended to the reference path

getReference

public java.lang.String getReference()
Returns the reference string

Returns:
The reference string

setReference

public void setReference(java.lang.String reference)
Sets the reference string

Parameters:
reference - The reference string

getDocument

public java.lang.String getDocument()
                             throws java.net.URISyntaxException
Returns the document that this edge orginates from

Returns:
The alias of the document that this edge orginates from.
Throws:
java.net.URISyntaxException

getLineNumber

public int getLineNumber()
Returns:
the lineNumber

setLineNumber

public void setLineNumber(int lineNumber)
Parameters:
lineNumber - the lineNumber to set

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification