Examples of toAttributeValue()


Examples of org.pentaho.reporting.engine.classic.core.util.beans.ArrayValueConverter.toAttributeValue()

  public void testArrayConversion() throws BeanException
  {
    final String[] array = { " "};
    final ArrayValueConverter c = new ArrayValueConverter(String.class, new StringValueConverter());
    final String s = c.toAttributeValue(array);
    final Object o = c.toPropertyValue(s);
    assertTrue(o instanceof String[]);
    final String[] strings = (String[]) o;
    assertEquals(strings.length, 1);
    assertEquals(strings[0], " ");
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.BasicStrokeValueConverter.toAttributeValue()

  public void testParse() throws BeanException
  {
    final BasicStroke b = new BasicStroke();
    BasicStrokeValueConverter c = new BasicStrokeValueConverter();
    final BasicStroke b2 = (BasicStroke) c.toPropertyValue(c.toAttributeValue(b));
    assertEquals(b, b2);
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.DateValueConverter.toAttributeValue()

    if (String.class.equals(type))
    {
      DateValueConverter dateValueConverter = new DateValueConverter();
      try
      {
        return dateValueConverter.toAttributeValue(value);
      }
      catch (BeanException e)
      {
        // ignore, should not happen
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.DateValueConverter.toAttributeValue()

    if (String.class.equals(type))
    {
      DateValueConverter dateValueConverter = new DateValueConverter();
      try
      {
        return dateValueConverter.toAttributeValue(value);
      }
      catch (BeanException e)
      {
        // ignore, should not happen
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.ElementAlignmentValueConverter.toAttributeValue()

      final ElementAlignmentValueConverter elementAlignmentValueConverter = new ElementAlignmentValueConverter();
      final ElementAlignment horizontalAlignment = rootBandDefinition.getHorizontalAlignment();
      if (horizontalAlignment != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "horizontal-align",
            elementAlignmentValueConverter.toAttributeValue(horizontalAlignment));
      }
      final ElementAlignment verticalAlignment = rootBandDefinition.getVerticalAlignment();
      if (verticalAlignment != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "vertical-align",
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.ElementAlignmentValueConverter.toAttributeValue()

      }
      final ElementAlignment verticalAlignment = rootBandDefinition.getVerticalAlignment();
      if (verticalAlignment != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "vertical-align",
            elementAlignmentValueConverter.toAttributeValue(verticalAlignment));
      }
      final Boolean repeat = rootBandDefinition.getRepeat();
      if (repeat != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "repeat", String.valueOf(repeat));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.ElementAlignmentValueConverter.toAttributeValue()

      final ElementAlignmentValueConverter elementAlignmentValueConverter = new ElementAlignmentValueConverter();
      final ElementAlignment totalsHorizontalAlignment = definition.getTotalsHorizontalAlignment();
      if (totalsHorizontalAlignment != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "totals-alignment",
            elementAlignmentValueConverter.toAttributeValue(totalsHorizontalAlignment));
      }
      final String nullString = definition.getNullString();
      if (nullString != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "null-string", String.valueOf(nullString));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.ElementAlignmentValueConverter.toAttributeValue()

      final ElementAlignmentValueConverter elementAlignmentValueConverter = new ElementAlignmentValueConverter();
      final ElementAlignment horizontalAlignment = definition.getHorizontalAlignment();
      if (horizontalAlignment != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "horizontal-align",
            elementAlignmentValueConverter.toAttributeValue(horizontalAlignment));
      }
      final ElementAlignment verticalAlignment = definition.getVerticalAlignment();
      if (verticalAlignment != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "vertical-align",
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.ElementAlignmentValueConverter.toAttributeValue()

      }
      final ElementAlignment verticalAlignment = definition.getVerticalAlignment();
      if (verticalAlignment != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "vertical-align",
            elementAlignmentValueConverter.toAttributeValue(verticalAlignment));
      }

      final Boolean distinctValues = definition.getOnlyShowChangingValues();
      if (distinctValues != null)
      {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.ElementAlignmentValueConverter.toAttributeValue()

      final ElementAlignmentValueConverter elementAlignmentValueConverter = new ElementAlignmentValueConverter();
      final ElementAlignment horizontalAlignment = definition.getHorizontalAlignment();
      if (horizontalAlignment != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "horizontal-align",
            elementAlignmentValueConverter.toAttributeValue(horizontalAlignment));
      }
      final ElementAlignment verticalAlignment = definition.getVerticalAlignment();
      if (verticalAlignment != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "vertical-align",
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.