Class ValidIDConverter

java.lang.Object
org.eclipse.xtext.conversion.impl.AbstractValueConverter<String>
com.regnosys.rosetta.parsing.ValidIDConverter
All Implemented Interfaces:
org.eclipse.xtext.conversion.IValueConverter<String>

public class ValidIDConverter extends org.eclipse.xtext.conversion.impl.AbstractValueConverter<String>
Allows using a caret `^` to escape identifiers based on the `ValidID` rule. Similar implementation to IDValueConverter.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.xtext.conversion.IValueConverter

    org.eclipse.xtext.conversion.IValueConverter.RuleSpecific
  • Field Summary

    Fields inherited from interface org.eclipse.xtext.conversion.IValueConverter

    NO_OP_CONVERTER
  • Constructor Summary

    Constructors
    Constructor
    Description
    ValidIDConverter(RosettaGrammarAccess grammarAccess, org.eclipse.xtext.conversion.impl.IDValueConverter delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    toValue(String string, org.eclipse.xtext.nodemodel.INode node)
     

    Methods inherited from class java.lang.Object

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

    • ValidIDConverter

      @Inject public ValidIDConverter(RosettaGrammarAccess grammarAccess, org.eclipse.xtext.conversion.impl.IDValueConverter delegate)
  • Method Details

    • toValue

      public String toValue(String string, org.eclipse.xtext.nodemodel.INode node)
    • toString

      public String toString(String value) throws org.eclipse.xtext.conversion.ValueConverterException
      Throws:
      org.eclipse.xtext.conversion.ValueConverterException