Package org.jfree.xmlns.parser

Examples of org.jfree.xmlns.parser.ParseException


    {
      plainContent = false;
      final String name = atts.getValue(uri, "name");
      if (name == null)
      {
        throw new ParseException("Required attribute 'name' is missing", getLocator());
      }
      try
      {
        final Class type = beanUtility.getPropertyType(name);
        final Object property = type.newInstance();
        final BeanUtility propertyUtility = new BeanUtility(property);
        return new TypedPropertyReadHandler
                (propertyUtility, expressionName, entityParser);
      }
      catch (BeanException e)
      {
        throw new ParseException("Property '" + name + "' for expression '" +
                className + "' is not valid. The specified class was not found.",
                e, getRootHandler().getDocumentLocator());
      }
      catch (IllegalAccessException e)
      {
        throw new ParseException(
                "Property '" + name + "' for expression '" + className +
                        "' is not valid. The specified class was not found.",
                e, getRootHandler().getDocumentLocator());
      }
      catch (InstantiationException e)
      {
        throw new ParseException(
                "Property '" + name + "' for expression '" + className +
                        "' is not valid. The specified class cannot be instantiated.",
                e, getRootHandler().getDocumentLocator());
      }
      catch (IntrospectionException e)
      {
        throw new ParseException(
                "Property '" + name + "' for expression '" + className +
                        "' is not valid. Introspection failed for this expression.",
                e, getRootHandler().getDocumentLocator());
      }
    }
View Full Code Here


              (ParameterMappingReadHandler) exportParameters.get(i);
      report.addExportParameter(handler.getAlias(), handler.getName());
    }
    if (queryReadHandler == null)
    {
      throw new ParseException("Query is not specified.", getLocator());
    }
    final String result = queryReadHandler.getResult();
    report.setQuery(result);
  }
View Full Code Here

   */
  protected void doneParsing() throws SAXException
  {
    if (queryReadHandler == null)
    {
      throw new ParseException
              ("Required element 'query' is missing.", getLocator());
    }
    super.doneParsing();
    final JFreeReport report = (JFreeReport) getElement();
    report.setQuery(queryReadHandler.getResult());
View Full Code Here

   */
  protected void doneParsing() throws SAXException
  {
    if (valueExpressionReadHandler == null)
    {
      throw new ParseException("No valid value expression.", getLocator());
    }

    super.doneParsing();
    configureElement(ce);
    ce.setValueExpression(valueExpressionReadHandler.getExpression());
View Full Code Here

  {
    final String elementNamespace = attrs.getValue(getUri(),
        "element-namespace");
    if (elementNamespace == null)
    {
      throw new ParseException
          ("Required attribute 'element-namespace' is missing", getLocator());
    }

    final String elementName = attrs.getValue(getUri(), "element-name");

    if (elementName == null)
    {
      throw new ParseException
          ("Required attribute 'element-name' is missing", getLocator());
    }

    final String attributeNamespace = attrs.getValue(getUri(),
        "attribute-namespace");
View Full Code Here

    final String formula =
        attrs.getValue(OfficeNamespaces.OOREPORT_NS, "formula");
    if (formula == null)
    {
      throw new ParseException
          ("Required attribute 'formula' is missing.", getLocator());
    }
    final String stylename =
        attrs.getValue(OfficeNamespaces.OOREPORT_NS, "style-name");
    if (stylename == null)
    {
      throw new ParseException
          ("Required attribute 'style-name' is missing.", getLocator());
    }
    final FormulaExpression valueExpression = new FormulaExpression();
    valueExpression.setFormula(formula);
View Full Code Here

  {
    final String formula = attrs.getValue
        (OfficeNamespaces.OOREPORT_NS, "formula");
    if (formula == null)
    {
      throw new ParseException
          ("Required attribute 'formula' is missing", getLocator());
    }
    final String initialFormula = attrs.getValue
        (OfficeNamespaces.OOREPORT_NS, "initial-formula");
    final String name = attrs.getValue
        (OfficeNamespaces.OOREPORT_NS, "name");
    if (name == null)
    {
      throw new ParseException
          ("Required attribute 'name' is missing", getLocator());
    }
    final String preEvaluated = attrs.getValue
        (OfficeNamespaces.OOREPORT_NS, "pre-evaluated");
    final String deepTraversing = attrs.getValue
View Full Code Here

      provider = (ConnectionProvider)
              getRootHandler().getHelperObject("connection-provider");
    }
    if (provider == null)
    {
      throw new ParseException
          ("Unable to create SQL Factory: No connection provider.", getLocator());
    }

    SQLReportDataFactory srdf = new SQLReportDataFactory(provider);
    if (configReadHandler != null)
View Full Code Here

    {
      return Integer.parseInt(text);
    }
    catch (NumberFormatException nfe)
    {
      throw new ParseException("NumberFormatError: " + message, locator);
    }
  }
View Full Code Here

                                 final Locator locator)
      throws ParseException
  {
    if (text == null)
    {
      throw new ParseException(message, locator);
    }
    try
    {
      return Float.parseFloat(text);
    }
    catch (NumberFormatException nfe)
    {
      throw new ParseException("NumberFormatError: " + message, locator);
    }
  }
View Full Code Here

TOP

Related Classes of org.jfree.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.