Examples of ObjectFactoryException


Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

  public void setParameterFromObject(final Object o)
      throws ObjectFactoryException
  {
    if ((o instanceof PathIteratorSegment) == false)
    {
      throw new ObjectFactoryException("The given object is no PathIteratorSegment.");
    }

    final PathIteratorSegment seg = (PathIteratorSegment) o;
    setParameter("segmentType", createSegmentType(seg.getSegmentType()));
    setParameter("x1", new Float(seg.getX1()));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

    {
      setParameter("value", "auto");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for FontSmooth");
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

    {
      setParameter("value", "none");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for ElementAlignment");
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

    {
      setParameter("value", "wave");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for ElementAlignment");
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

      throws ObjectFactoryException
  {
    final Integer i = (Integer) getParameter(name);
    if (i == null)
    {
      throw new ObjectFactoryException("Parameter " + name + " is not set");
    }
    return i.intValue();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

  public void setParameterFromObject(final Object o)
      throws ObjectFactoryException
  {
    if ((o instanceof FontDefinition) == false)
    {
      throw new ObjectFactoryException("The given object is no FontDefinition.");
    }

    final FontDefinition fdef = (FontDefinition) o;
    setParameter(FontDefinitionObjectDescription.FONT_ENCODING, fdef.getFontEncoding(null));
    setParameter(FontDefinitionObjectDescription.FONT_NAME, fdef.getFontName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.