Package org.eclipse.xtext.conversion

Examples of org.eclipse.xtext.conversion.ValueConverterException


        return value.toString();
      }

      public Boolean toValue(String string, INode node) {
        if(Strings.isEmpty(string))
          throw new ValueConverterException("Could not convert empty string to boolean", node, null);
        return new Boolean(string).equals(Boolean.TRUE)
            ? Boolean.TRUE
            : Boolean.FALSE;
      }
View Full Code Here


      return null;
    try {
      string = cssUnicodeToJavaUnicode(string);
      return Strings.convertFromJavaString(string.substring(1, string.length() - 1), true);
    } catch (IllegalArgumentException e) {
      throw new ValueConverterException(e.getMessage(), node, e);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.conversion.ValueConverterException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.