com.codbex.kronos.parser.hdbcalculationview.ndb.bimodelcube.CalculatedMeasure Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2022 codbex or an codbex affiliate company and contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: 2022 codbex or an codbex affiliate company and contributors
* SPDX-License-Identifier: EPL-2.0
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.11.26 at 10:54:28 AM EET
//
package com.codbex.kronos.parser.hdbcalculationview.ndb.bimodelcube;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.codbex.kronos.parser.hdbcalculationview.ndb.datamodeltype.ExpressionLanguage;
import com.codbex.kronos.parser.hdbcalculationview.ndb.sqlcoremodeldatatypes.PrimitiveTypeSQL;
/**
* Java class for CalculatedMeasure complex type.
*
* The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CalculatedMeasure">
* <complexContent>
* <extension base="{http://www.sap.com/ndb/BiModelCube.ecore}Measure">
* <sequence>
* <element name="formula" type="{http://www.sap.com/ndb/BiModelDataFoundation.ecore}Expression"/>
* </sequence>
* <attribute name="datatype" type="{http://www.sap.com/ndb/SQLCoreModelDataTypes.ecore}PrimitiveTypeSQL" />
* <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}short" />
* <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}short" />
* <attribute name="calculateBeforeAggregation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="aggregatable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="calculatedMeasureType" type="{http://www.sap.com/ndb/BiModelCube.ecore}CalculatedMeasureType" default="regular" />
* <attribute name="expressionLanguage" type="{http://www.sap.com/ndb/DataModelType.ecore}ExpressionLanguage" />
* </extension>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CalculatedMeasure", propOrder = {
"formula"
})
public class CalculatedMeasure
extends Measure {
/** The formula. */
@XmlElement(required = true)
protected String formula;
/** The datatype. */
@XmlAttribute(name = "datatype")
protected PrimitiveTypeSQL datatype;
/** The length. */
@XmlAttribute(name = "length")
protected Short length;
/** The scale. */
@XmlAttribute(name = "scale")
protected Short scale;
/** The calculate before aggregation. */
@XmlAttribute(name = "calculateBeforeAggregation")
protected Boolean calculateBeforeAggregation;
/** The aggregatable. */
@XmlAttribute(name = "aggregatable")
protected Boolean aggregatable;
/** The calculated measure type. */
@XmlAttribute(name = "calculatedMeasureType")
protected CalculatedMeasureType calculatedMeasureType;
/** The expression language. */
@XmlAttribute(name = "expressionLanguage")
protected ExpressionLanguage expressionLanguage;
/**
* Gets the value of the formula property.
*
* @return possible object is
* {@link String }
*/
public String getFormula() {
return formula;
}
/**
* Sets the value of the formula property.
*
* @param value allowed object is
* {@link String }
*/
public void setFormula(String value) {
this.formula = value;
}
/**
* Gets the value of the datatype property.
*
* @return possible object is
* {@link PrimitiveTypeSQL }
*/
public PrimitiveTypeSQL getDatatype() {
return datatype;
}
/**
* Sets the value of the datatype property.
*
* @param value allowed object is
* {@link PrimitiveTypeSQL }
*/
public void setDatatype(PrimitiveTypeSQL value) {
this.datatype = value;
}
/**
* Gets the value of the length property.
*
* @return possible object is
* {@link Short }
*/
public Short getLength() {
return length;
}
/**
* Sets the value of the length property.
*
* @param value allowed object is
* {@link Short }
*/
public void setLength(Short value) {
this.length = value;
}
/**
* Gets the value of the scale property.
*
* @return possible object is
* {@link Short }
*/
public Short getScale() {
return scale;
}
/**
* Sets the value of the scale property.
*
* @param value allowed object is
* {@link Short }
*/
public void setScale(Short value) {
this.scale = value;
}
/**
* Gets the value of the calculateBeforeAggregation property.
*
* @return possible object is
* {@link Boolean }
*/
public boolean isCalculateBeforeAggregation() {
if (calculateBeforeAggregation == null) {
return false;
} else {
return calculateBeforeAggregation;
}
}
/**
* Sets the value of the calculateBeforeAggregation property.
*
* @param value allowed object is
* {@link Boolean }
*/
public void setCalculateBeforeAggregation(Boolean value) {
this.calculateBeforeAggregation = value;
}
/**
* Gets the value of the aggregatable property.
*
* @return possible object is
* {@link Boolean }
*/
public boolean isAggregatable() {
if (aggregatable == null) {
return false;
} else {
return aggregatable;
}
}
/**
* Sets the value of the aggregatable property.
*
* @param value allowed object is
* {@link Boolean }
*/
public void setAggregatable(Boolean value) {
this.aggregatable = value;
}
/**
* Gets the value of the calculatedMeasureType property.
*
* @return possible object is
* {@link CalculatedMeasureType }
*/
public CalculatedMeasureType getCalculatedMeasureType() {
if (calculatedMeasureType == null) {
return CalculatedMeasureType.REGULAR;
} else {
return calculatedMeasureType;
}
}
/**
* Sets the value of the calculatedMeasureType property.
*
* @param value allowed object is
* {@link CalculatedMeasureType }
*/
public void setCalculatedMeasureType(CalculatedMeasureType value) {
this.calculatedMeasureType = value;
}
/**
* Gets the value of the expressionLanguage property.
*
* @return possible object is
* {@link ExpressionLanguage }
*/
public ExpressionLanguage getExpressionLanguage() {
return expressionLanguage;
}
/**
* Sets the value of the expressionLanguage property.
*
* @param value allowed object is
* {@link ExpressionLanguage }
*/
public void setExpressionLanguage(ExpressionLanguage value) {
this.expressionLanguage = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy