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

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


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


    final String attrClass = CompatibilityMapperUtil.mapClassName(attrs.getValue(getUri(), "class"));
    if (attrClass != null)
    {
      try
      {
        final ClassLoader loader = ObjectUtilities.getClassLoader(BasicObjectReadHandler.class);
        final Class clazz = Class.forName(attrClass, false, loader);
        objectDescription = ObjectFactoryUtility.findDescription(classFactory, clazz, getLocator());
      }
      catch (ClassNotFoundException e)
      {
        throw new ParseException("Value for given 'class' attribute is invalid", getLocator());
      }
    }
  }
View Full Code Here


    if (createStyle)
    {
      final String name = attrs.getValue(getUri(), "name");
      if (name == null)
      {
        throw new ParseException
            ("Required attribute 'name' is missing.", getLocator());
      }
      styleSheet = styleSheetCollection.createStyleSheet(name);
    }
View Full Code Here

  protected void startParsing(final Attributes attrs) throws SAXException
  {
    sourceDomain = attrs.getValue(getUri(), "source-domain");
    if (sourceDomain == null)
    {
      throw new ParseException("Required attribute 'source-domain' is missing.", getLocator());
    }

    sourceName = attrs.getValue(getUri(), "source-name");
    if (sourceName == null)
    {
      throw new ParseException("Required attribute 'source-name' is missing.", getLocator());
    }

    targetDomain = attrs.getValue(getUri(), "target-domain");
    if (targetDomain == null)
    {
      throw new ParseException("Required attribute 'target-domain' is missing.", getLocator());
    }

    targetName = attrs.getValue(getUri(), "target-name");
    if (targetName == null)
    {
      throw new ParseException("Required attribute 'target-name' is missing.", getLocator());
    }

    final String mapperClass = attrs.getValue(getUri(), "concept-mapper");
    if (mapperClass == null)
    {
View Full Code Here

    attributeName = attrs.getValue(BundleNamespaces.LAYOUT, "attribute-name");
    attributeNameSpace = attrs.getValue(BundleNamespaces.LAYOUT, "attribute-namespace");

    if (attributeName == null)
    {
      throw new ParseException("Mandatory attribute 'attribute-name' is missing");
    }
    if (attributeNameSpace == null)
    {
      throw new ParseException("Mandatory attribute 'attribute-namespace' is missing");
    }
    super.startParsing(attrs);
  }
View Full Code Here

    {
      body.setGroup((CrosstabColumnGroup) groupColumnReadHandler.getGroup());
    }
    else
    {
      throw new ParseException("A 'crosstab-column-group' element must be present");
    }
  }
View Full Code Here

    {
      body.setGroup((CrosstabRowGroup) groupRowReadHandler.getGroup());
    }
    else
    {
      throw new ParseException("Either a 'crosstab-row-group' element must be present");
    }
  }
View Full Code Here

    {
      return ElementAlignment.BOTTOM;
    }
    if (strictParsing)
    {
      throw new ParseException("Invalid vertical alignment", locator);
    }
    if (locator == null)
    {
      logger.warn("Invalid value encountered for vertical alignment attribute.");
    }
View Full Code Here

    {
      return ElementAlignment.RIGHT;
    }
    if (strictParsing)
    {
      throw new ParseException("Invalid horizontal alignment", locator);
    }

    if (locator == null)
    {
      logger.warn("Invalid value encountered for horizontal alignment attribute.");
View Full Code Here

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

    }
    else
    {
      if (strictParsing)
      {
        throw new ParseException("Failed to parse value", locator);
      }

      if (locator == null)
      {
        logger.warn("Invalid value encountered for boolean attribute.");
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.