org.eclipse.ocl.examples.xtext.base.scoping
Class QualifiedPath

java.lang.Object
  extended by org.eclipse.xtext.naming.QualifiedName
      extended by org.eclipse.ocl.examples.xtext.base.scoping.QualifiedPath
All Implemented Interfaces:
java.lang.Comparable<org.eclipse.xtext.naming.QualifiedName>

public class QualifiedPath
extends org.eclipse.xtext.naming.QualifiedName

QualifiedPath refines QualifiedName to use {name,element} pairs for each segment and support deresolution with respect to another path or an object context.


Field Summary
 
Fields inherited from class org.eclipse.xtext.naming.QualifiedName
EMPTY
 
Constructor Summary
  QualifiedPath(java.util.List<PathElement> pathElements)
           
protected QualifiedPath(java.util.List<PathElement> pathElements, boolean isAbsolute)
           
 
Method Summary
 QualifiedPath deresolve(QualifiedPath contextPath)
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getSegments(org.eclipse.emf.ecore.EObject csObject)
          Return the segments of this path, deresolving the first segment of an absolute path to use the aliases of the resource of csObject.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.xtext.naming.QualifiedName
append, append, compareTo, compareTo, compareToIgnoreCase, create, create, create, createFromStream, equalsIgnoreCase, getFirstSegment, getLastSegment, getSegment, getSegmentCount, getSegments, hashCode, isEmpty, skipFirst, skipLast, startsWith, startsWith, startsWithIgnoreCase, toLowerCase, toString, toUpperCase, wrapper, writeToStream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QualifiedPath

public QualifiedPath(java.util.List<PathElement> pathElements)

QualifiedPath

protected QualifiedPath(java.util.List<PathElement> pathElements,
                        boolean isAbsolute)
Method Detail

deresolve

public QualifiedPath deresolve(QualifiedPath contextPath)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class org.eclipse.xtext.naming.QualifiedName

getSegments

public java.util.List<java.lang.String> getSegments(org.eclipse.emf.ecore.EObject csObject)
Return the segments of this path, deresolving the first segment of an absolute path to use the aliases of the resource of csObject.


toString

public java.lang.String toString()
Overrides:
toString in class org.eclipse.xtext.naming.QualifiedName