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

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


    {
      return null;
    }
    if ("property".equals(tagName) && "text".equals(atts.getValue(uri, "name")))
    {
      propertyReadHandler = new PropertyReadHandler();
      return propertyReadHandler;
    }
    return null;
  }
View Full Code Here


    {
      return null;
    }
    if ("property".equals(tagName) && "query".equals(atts.getValue(uri, "name")))
    {
      query = new PropertyReadHandler();
      return query;
    }
    return super.getHandlerForChild(uri, tagName, atts);
  }
View Full Code Here

    {
      return null;
    }
    if ("attribute".equals(tagName)) // NON-NLS
    {
      final PropertyReadHandler propertyReadHandler = new PropertyReadHandler();
      attributes.add(propertyReadHandler);
      return propertyReadHandler;
    }
    return super.getHandlerForChild(uri, tagName, atts);
  }
View Full Code Here

  public Object getObject() throws SAXException
  {
    final HashMap<String, String> attrMap = new HashMap<String, String>();
    for (int i = 0; i < attributes.size(); i++)
    {
      final PropertyReadHandler readHandler = attributes.get(i);
      attrMap.put(readHandler.getName(), readHandler.getResult());
    }
    attrMap.put("group", group); // NON-NLS
    return new DrillDownProfile
        (name, bundleName, prefix, expert, preferred, hidden, deprecated, linkCustomizerType, attrMap);
  }
View Full Code Here

    {
      return null;
    }
    if (isSameNamespace(uri) && "property".equals(tagName))
    {
      final PropertyReadHandler readHandler = new PropertyReadHandler();
      arrayProperties.add(readHandler);
      return readHandler;
    }
    return super.getHandlerForChild(uri, tagName, attrs);
  }
View Full Code Here

        final HashMap values = new HashMap();
        final int elementCount = arrayProperties.size();
        for (int i = 0; i < elementCount; i++)
        {
          final PropertyReadHandler handler = (PropertyReadHandler) arrayProperties.get(i);
          values.put(handler.getName(), handler.getResult());
        }

        final Class componentType = type.getComponentType();
        final ArrayList realValues = new ArrayList();
        for (int i = 0; i < elementCount; i++)
View Full Code Here

      configReadHandler = new ConfigReadHandler();
      return configReadHandler;
    }
    if ("query".equals(tagName))
    {
      final XmlReadHandler queryReadHandler = new PropertyReadHandler();
      queries.add(queryReadHandler);
      return queryReadHandler;
    }
    return null;
  }
View Full Code Here

    {
      srdf.setLabelMapping(configReadHandler.isLabelMapping());
    }
    for (int i = 0; i < queries.size(); i++)
    {
      final PropertyReadHandler handler = (PropertyReadHandler) queries.get(i);
      srdf.setQuery(handler.getName(), handler.getResult());
    }
    dataFactory = srdf;
  }
View Full Code Here

      return null;
    }

    if ("query".equals(tagName))
    {
      final XmlReadHandler queryReadHandler = new PropertyReadHandler();
      queries.add(queryReadHandler);
      return queryReadHandler;
    }
    return null;
  }
View Full Code Here

  protected void doneParsing() throws SAXException
  {
    final NamedStaticDataFactory srdf = new NamedStaticDataFactory();
    for (int i = 0; i < queries.size(); i++)
    {
      final PropertyReadHandler handler = (PropertyReadHandler) queries.get(i);
      srdf.setQuery(handler.getName(), handler.getResult());
    }

    dataFactory = srdf;
  }
View Full Code Here

TOP

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

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.