org.eclipse.xtext.xbase.conversion
Class XbaseQualifiedNameValueConverter

java.lang.Object
  extended by org.eclipse.xtext.conversion.impl.AbstractValueConverter<java.lang.String>
      extended by org.eclipse.xtext.conversion.impl.QualifiedNameValueConverter
          extended by org.eclipse.xtext.xbase.conversion.XbaseQualifiedNameValueConverter
All Implemented Interfaces:
IValueConverter<java.lang.String>
Direct Known Subclasses:
StaticQualifierValueConverter

public class XbaseQualifiedNameValueConverter
extends QualifiedNameValueConverter

Author:
Holger Schill - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.conversion.IValueConverter
IValueConverter.RuleSpecific
 
Field Summary
 
Fields inherited from class org.eclipse.xtext.conversion.impl.QualifiedNameValueConverter
fullWildcardLiteral, valueConverterService
 
Fields inherited from interface org.eclipse.xtext.conversion.IValueConverter
NO_OP_CONVERTER
 
Constructor Summary
XbaseQualifiedNameValueConverter()
           
 
Method Summary
protected  java.lang.String getDelegateRuleName()
           
 java.lang.String toValue(java.lang.String string, INode node)
          Creates a value from the given input.
 
Methods inherited from class org.eclipse.xtext.conversion.impl.QualifiedNameValueConverter
delegateToString, delegateToValue, getFullWildcardLiteral, getNamespaceDelimiter, getStringNamespaceDelimiter, getValueNamespaceDelimiter, getWildcardLiteral, isDelegateRuleCall, isWildcardLiteral, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XbaseQualifiedNameValueConverter

public XbaseQualifiedNameValueConverter()
Method Detail

getDelegateRuleName

protected java.lang.String getDelegateRuleName()
Overrides:
getDelegateRuleName in class QualifiedNameValueConverter

toValue

public java.lang.String toValue(java.lang.String string,
                                INode node)
                         throws ValueConverterException
Description copied from interface: IValueConverter

Creates a value from the given input. The input is conformant to a data type or terminal rule.

The given string or node may be null but not both of them.

Specified by:
toValue in interface IValueConverter<java.lang.String>
Overrides:
toValue in class QualifiedNameValueConverter
Parameters:
string - the string that was inferred from the node. Usually the node's text but may be reduced to the parts of the node that are not hidden.
node - the parsed node including hidden parts.
Returns:
the new value or null.
Throws:
ValueConverterException - indicates that the string or node did not fulfil the expected format.