xmlMeasure.visible = false; MondrianDef.Annotation internalUsage = new MondrianDef.Annotation(); internalUsage.name = "Internal Use"; internalUsage.cdata = "For internal use";
public void display(java.io.PrintWriter _out, int _indent) { _out.println(getName()); displayAttribute(_out, "name", name, _indent+1); displayString(_out, "cdata", cdata, _indent+1); } public void displayXML(org.eigenbase.xom.XMLOutput _out, int _indent)
MondrianDef.Annotation inline = new MondrianDef.Annotation(); inline.name = AnnotationConstants.INLINE_ANNOTATION_CREATED_INLINE; inline.cdata = isInline() ? "true" : "false"; MondrianDef.Annotation formatScaleAnnotation = new MondrianDef.Annotation(); formatScaleAnnotation.name = AnnotationConstants.INLINE_ANNOTATION_FORMAT_SCALE; formatScaleAnnotation.cdata = String.valueOf( this.getDecimalPlaces() ); MondrianDef.Annotation formatCategoryAnnotation = new MondrianDef.Annotation(); formatCategoryAnnotation.name = AnnotationConstants.INLINE_ANNOTATION_FORMAT_CATEGORY; formatCategoryAnnotation.cdata = this.getFormatCategory(); MondrianDef.Annotation formulaExpressionAnnotation = new MondrianDef.Annotation(); formulaExpressionAnnotation.name = AnnotationConstants.INLINE_ANNOTATION_FORMULA_EXPRESSION; formulaExpressionAnnotation.cdata = this.getFormula(); MondrianDef.Annotation calcSubtotalsAnnotation = new MondrianDef.Annotation(); calcSubtotalsAnnotation.name = AnnotationConstants.INLINE_ANNOTATION_CALCULATE_SUBTOTALS; calcSubtotalsAnnotation.cdata = isCalculateSubtotals() ? "true" : "false";
MondrianDef.Annotation inline = new MondrianDef.Annotation(); inline.name = AnnotationConstants.INLINE_ANNOTATION_CREATED_INLINE; inline.cdata = isInline() ? Boolean.TRUE.toString() : Boolean.FALSE.toString(); MondrianDef.Annotation formatScaleAnnotation = new MondrianDef.Annotation(); formatScaleAnnotation.name = AnnotationConstants.INLINE_ANNOTATION_FORMAT_SCALE; formatScaleAnnotation.cdata = String.valueOf( this.getDecimalPlaces() ); MondrianDef.Annotation formatCategoryAnnotation = new MondrianDef.Annotation(); formatCategoryAnnotation.name = AnnotationConstants.INLINE_ANNOTATION_FORMAT_CATEGORY; formatCategoryAnnotation.cdata = this.getFormatCategory(); MondrianDef.Annotation formulaExpressionAnnotation = new MondrianDef.Annotation(); formulaExpressionAnnotation.name = AnnotationConstants.INLINE_ANNOTATION_FORMULA_EXPRESSION; formulaExpressionAnnotation.cdata = this.getFormula(); MondrianDef.Annotation calcSubtotalsAnnotation = new MondrianDef.Annotation(); calcSubtotalsAnnotation.name = AnnotationConstants.INLINE_ANNOTATION_CALCULATE_SUBTOTALS; calcSubtotalsAnnotation.cdata = isCalculateSubtotals() ? Boolean.TRUE.toString() : Boolean.FALSE.toString();
public boolean displayDiff(org.eigenbase.xom.ElementDef _other, java.io.PrintWriter _out, int _indent) { Annotation _cother = (Annotation)_other; boolean _diff = displayAttributeDiff("name", name, _cother.name, _out, _indent+1); _diff = _diff && displayStringDiff("cdata", cdata, _cother.cdata, _out, _indent+1); return _diff; } }
public Annotation(org.eigenbase.xom.DOMWrapper _def) throws org.eigenbase.xom.XOMException { try { org.eigenbase.xom.DOMElementParser _parser = new org.eigenbase.xom.DOMElementParser(_def, "", MondrianDef.class); name = (String)_parser.getAttribute("name", "String", null, null, true); cdata = _parser.getText(); } catch(org.eigenbase.xom.XOMException _ex) { throw new org.eigenbase.xom.XOMException("In " + getName() + ": " + _ex.getMessage()); } }