Package org.pentaho.reporting.libraries.xmlns.parser

Examples of org.pentaho.reporting.libraries.xmlns.parser.ParseException


    {
      return new Integer(value);
    }
    catch (Exception ex)
    {
      throw new ParseException("Failed to parse value", locator);
    }
  }
View Full Code Here


                                         final Locator locator)
      throws ParseException
  {
    if (value == null)
    {
      throw new ParseException(exceptionMessage, locator);
    }
    if ("auto".equalsIgnoreCase(value))
    {
      return Long.MIN_VALUE;
    }
View Full Code Here

    if ("use-script".equals(value))
    {
      return VerticalTextAlign.USE_SCRIPT;
    }

    throw new ParseException("Invalid vertical alignment", locator);
  }
View Full Code Here

      throws SAXException
  {
    name = attrs.getValue(getUri(), "name");
    if (name == null)
    {
      throw new ParseException("Required attribute 'name' is missing.", getLocator());
    }
    alias = attrs.getValue(getUri(), "alias");
    if (alias == null)
    {
      alias = name;
View Full Code Here

    super.startParsing(attrs);
    propertyType = CompatibilityMapperUtil.mapClassName(attrs.getValue(getUri(), "class"));
    propertyName = attrs.getValue(getUri(), "name");
    if (propertyName == null)
    {
      throw new ParseException("Required attribute 'name' is null.", getLocator());
    }
  }
View Full Code Here

            (propertyName, result);
      }
    }
    catch (BeanException e)
    {
      throw new ParseException("Unable to assign property '" + propertyName
          + "' to the specified Layout-PreProcessor", e, getLocator());
    }
    catch (ClassNotFoundException e)
    {
      throw new ParseException("Unable to assign property '" + propertyName
          + "' to expression Layout-PreProcessor", e, getLocator());
    }
  }
View Full Code Here

        final ClassLoader loader = ObjectUtilities.getClassLoader(AbstractXmlReadHandler.class);
        this.type = Class.forName(CompatibilityMapperUtil.mapClassName(type), false, loader);
      }
      catch (ClassNotFoundException e)
      {
        throw new ParseException("Required attribute 'type' is not valid.", getLocator());
      }
    }

  }
View Full Code Here

      {
        value = ConverterRegistry.toPropertyValue(getResult().trim(), type);
      }
      catch (BeanException ex)
      {
        throw new ParseException("Unable to convert value '" + getResult() +
            "' into a object of type '" + type + "'.", ex, getLocator());
      }
    }
  }
View Full Code Here

    if ("property".equals(tagName))
    {
      final String name = atts.getValue(getUri(), "name");
      if (name == null)
      {
        throw new ParseException("Required attribute 'name' is missing.", getLocator());
      }

      final PropertyReferenceReadHandler readHandler = new PropertyReferenceReadHandler();
      fieldHandlers.put(name, readHandler);
      return readHandler;
View Full Code Here

    {
      final Map.Entry entry = (Map.Entry) it.next();
      final String key = (String) entry.getKey();
      if (key.startsWith("::"))
      {
        throw new ParseException("The key value '" + key +
            "' is invalid. Internal keys (starting with '::') cannot be redefined.", getLocator());
      }
      final PropertyReferenceReadHandler readHandler = (PropertyReferenceReadHandler) entry.getValue();
      getRootHandler().setHelperObject(key, readHandler.getObject());
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.xmlns.parser.ParseException

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.