Class ProblemQualifiedNameConverter

java.lang.Object
tools.refinery.language.naming.ProblemQualifiedNameConverter
All Implemented Interfaces:
org.eclipse.xtext.naming.IQualifiedNameConverter

public class ProblemQualifiedNameConverter extends Object implements org.eclipse.xtext.naming.IQualifiedNameConverter
This class is based on IQualifiedNameConverter.DefaultImpl, but was extended to handle quoted identifiers.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.xtext.naming.IQualifiedNameConverter

    org.eclipse.xtext.naming.IQualifiedNameConverter.DefaultImpl
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.xtext.naming.QualifiedName
    toQualifiedName(String qualifiedNameAsString)
    Splits the given string into segments and returns them as a QualifiedName.
    toString(org.eclipse.xtext.naming.QualifiedName qualifiedName)
    Converts the given qualified name to a string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ProblemQualifiedNameConverter

      public ProblemQualifiedNameConverter()
  • Method Details

    • toString

      public String toString(org.eclipse.xtext.naming.QualifiedName qualifiedName)
      Converts the given qualified name to a string.
      Specified by:
      toString in interface org.eclipse.xtext.naming.IQualifiedNameConverter
      Throws:
      IllegalArgumentException - when the qualified name is null.
    • toQualifiedName

      public org.eclipse.xtext.naming.QualifiedName toQualifiedName(String qualifiedNameAsString)
      Splits the given string into segments and returns them as a QualifiedName.
      Specified by:
      toQualifiedName in interface org.eclipse.xtext.naming.IQualifiedNameConverter
      Throws:
      IllegalArgumentException - if the input is empty or null or cannot be parsed.