/** * Create an instance of {@link XDimAttrNames } * */ public XDimAttrNames createXDimAttrNames() { return new XDimAttrNames(); }
public XDimAttrNames withAttrName(Collection<String> values) { if (values!= null) { getAttrName().addAll(values); } return this; }
public String toString() { final ToStringStrategy strategy = new YAMLToStringStrategy(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
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; }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
XDerivedCube xdc = XCF.createXDerivedCube(); xdc.setMeasureNames(new XMeasureNames()); xdc.setDimAttrNames(new XDimAttrNames()); xc = xdc; xdc.getMeasureNames().getMeasureName().addAll(c.getMeasureNames()); xdc.getDimAttrNames().getAttrName().addAll(c.getDimAttributeNames()); xdc.setParent(((DerivedCube) c).getParent().getName()); } else {
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public XDimAttrNames withAttrName(String... values) { if (values!= null) { for (String value: values) { getAttrName().add(value); } } return this; }
XDerivedCube xdc = XCF.createXDerivedCube(); xdc.setMeasureNames(new XMeasureNames()); xdc.setDimAttrNames(new XDimAttrNames()); xc = xdc; xdc.getMeasureNames().getMeasureName().addAll(c.getMeasureNames()); xdc.getDimAttrNames().getAttrName().addAll(c.getDimAttributeNames()); xdc.setParent(((DerivedCube) c).getParent().getName()); } else {
/** * Create an instance of {@link XDimAttrNames } * */ public XDimAttrNames createXDimAttrNames() { return new XDimAttrNames(); }
public String toString() { final ToStringStrategy strategy = new YAMLToStringStrategy(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public XDimAttrNames withAttrName(Collection<String> values) { if (values!= null) { getAttrName().addAll(values); } return this; }
public XDimAttrNames withAttrName(String... values) { if (values!= null) { for (String value: values) { getAttrName().add(value); } } return this; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { List<String> theAttrName; theAttrName = (((this.attrName!= null)&&(!this.attrName.isEmpty()))?this.getAttrName():null); strategy.appendField(locator, this, "attrName", buffer, theAttrName); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { List<String> theAttrName; theAttrName = (((this.attrName!= null)&&(!this.attrName.isEmpty()))?this.getAttrName():null); strategy.appendField(locator, this, "attrName", buffer, theAttrName); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List<String> theAttrName; theAttrName = (((this.attrName!= null)&&(!this.attrName.isEmpty()))?this.getAttrName():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attrName", theAttrName), currentHashCode, theAttrName); } return currentHashCode; }