Package org.pentaho.aggdes.model

Examples of org.pentaho.aggdes.model.Attribute


    for (DimensionRowModel row : dimensionRowModels) {
      Level level = row.getSelectedItem();
      logger.debug("selected item is " + level.getName());
      int insertPoint = attributes.size();
      while (level != null) {
        Attribute attrib = level.getAttribute();
        if (attrib != null) {
          logger.debug("adding level " + level.getName() + " to UIAggregate: " + thinAgg);
          if (!attributes.contains(attrib)) {
            attributes.add(insertPoint, attrib);
          }
View Full Code Here


  public AttributeConverter(Schema schema) {
    this.schema = schema;
  }
 
  public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) {
    Attribute attribute = (Attribute)object;
    writer.startNode("label");
    writer.setValue(attribute.getLabel());
    writer.endNode();
    writer.startNode("table");
    writer.setValue(attribute.getTable().getLabel());
    writer.endNode();
  }
View Full Code Here

    String label = reader.getValue();
    reader.moveUp();
    reader.moveDown();
    String tableLabel = reader.getValue();
    reader.moveUp();
    Attribute foundAttrib = null;
    for (Attribute attribute : schema.getAttributes()) {
      if (attribute.getLabel().equals(label) &&
          attribute.getTable().getLabel().equals(tableLabel))
      {
            foundAttrib = attribute;
View Full Code Here

TOP

Related Classes of org.pentaho.aggdes.model.Attribute

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.