public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { XMeasureNames theMeasureNames; theMeasureNames = this.getMeasureNames(); strategy.appendField(locator, this, "measureNames", buffer, theMeasureNames); } { XDimAttrNames theDimAttrNames; theDimAttrNames = this.getDimAttrNames(); strategy.appendField(locator, this, "dimAttrNames", buffer, theDimAttrNames); } { String theParent; theParent = this.getParent(); strategy.appendField(locator, this, "parent", buffer, theParent); } return buffer; }
measures.addAll(dcube.getMeasureNames().getMeasureName());
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { XMeasureNames theMeasureNames; theMeasureNames = this.getMeasureNames(); strategy.appendField(locator, this, "measureNames", buffer, theMeasureNames); } { XDimAttrNames theDimAttrNames; theDimAttrNames = this.getDimAttrNames(); strategy.appendField(locator, this, "dimAttrNames", buffer, theDimAttrNames); } { String theParent; theParent = this.getParent(); strategy.appendField(locator, this, "parent", buffer, theParent); } return buffer; }
measures.addAll(dcube.getMeasureNames().getMeasureName());
lhsMeasureNames = this.getMeasureNames(); XMeasureNames rhsMeasureNames; rhsMeasureNames = that.getMeasureNames(); if (!strategy.equals(LocatorUtils.property(thisLocator, "measureNames", lhsMeasureNames), LocatorUtils.property(thatLocator, "measureNames", rhsMeasureNames), lhsMeasureNames, rhsMeasureNames)) { return false;
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { XMeasureNames theMeasureNames; theMeasureNames = this.getMeasureNames(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "measureNames", theMeasureNames), currentHashCode, theMeasureNames); } { XDimAttrNames theDimAttrNames; theDimAttrNames = this.getDimAttrNames(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dimAttrNames", theDimAttrNames), currentHashCode, theDimAttrNames); } { String theParent; theParent = this.getParent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parent", theParent), currentHashCode, theParent); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { XMeasureNames theMeasureNames; theMeasureNames = this.getMeasureNames(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "measureNames", theMeasureNames), currentHashCode, theMeasureNames); } { XDimAttrNames theDimAttrNames; theDimAttrNames = this.getDimAttrNames(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dimAttrNames", theDimAttrNames), currentHashCode, theDimAttrNames); } { String theParent; theParent = this.getParent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parent", theParent), currentHashCode, theParent); } return currentHashCode; }
lhsMeasureNames = this.getMeasureNames(); XMeasureNames rhsMeasureNames; rhsMeasureNames = that.getMeasureNames(); if (!strategy.equals(LocatorUtils.property(thisLocator, "measureNames", lhsMeasureNames), LocatorUtils.property(thatLocator, "measureNames", rhsMeasureNames), lhsMeasureNames, rhsMeasureNames)) { return false;
dcube.getMeasureNames().getMeasureName().add("msr3"); dcube.getDimAttrNames().getAttrName().add("dim3"); XDerivedCube actual2 = (XDerivedCube) got.getValue(); assertEquals(actual2.getDimAttrNames().getAttrName().size(), 2); assertEquals(actual2.getMeasureNames().getMeasureName().size(), 2); assertTrue(actual2.getMeasureNames().getMeasureName().contains("msr3")); assertTrue(actual2.getDimAttrNames().getAttrName().contains("dim3"));
private XDerivedCube createDerivedCube(String cubeName, String parent, boolean addExtraFields) throws Exception { XDerivedCube cube = cubeObjectFactory.createXDerivedCube(); cube.setName(cubeName); cube.setDimAttrNames(new XDimAttrNames()); cube.setMeasureNames(new XMeasureNames()); cube.setProperties(new XProperties()); cube.getDimAttrNames().getAttrName().add("dim1"); cube.getMeasureNames().getMeasureName().add("msr1"); if (addExtraFields) { cube.getDimAttrNames().getAttrName().add("random_dim"); cube.getMeasureNames().getMeasureName().add("random_measure"); } XProperty xp1 = cubeObjectFactory.createXProperty(); xp1.setName("derived.foo"); xp1.setValue("derived.bar"); cube.getProperties().getProperty().add(xp1); cube.setParent(parent); return cube; }
assertTrue(dcube.getName().equalsIgnoreCase(actual2.getName())); assertEquals(actual2.getParent(), "testGetCube".toLowerCase()); assertEquals(actual2.getMeasureNames().getMeasureName().size(), dcube.getMeasureNames().getMeasureName().size()); assertEquals(actual2.getDimAttrNames().getAttrName().size(), dcube.getDimAttrNames().getAttrName().size()); } finally {
xdc.setDimAttrNames(new XDimAttrNames()); xc = xdc; xdc.getMeasureNames().getMeasureName().addAll(c.getMeasureNames()); xdc.getDimAttrNames().getAttrName().addAll(c.getDimAttributeNames()); xdc.setParent(((DerivedCube) c).getParent().getName());
xdc.setDimAttrNames(new XDimAttrNames()); xc = xdc; xdc.getMeasureNames().getMeasureName().addAll(c.getMeasureNames()); xdc.getDimAttrNames().getAttrName().addAll(c.getDimAttributeNames()); xdc.setParent(((DerivedCube) c).getParent().getName());