Interface DecimalLiteral

All Superinterfaces:
Element, org.eclipse.emf.ecore.EObject, Literal, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
DecimalLiteralImpl

public interface DecimalLiteral extends Literal
A representation of the model object 'Decimal Literal'. DecimalLiteral is a [=literal=] that represents an arbitrary precision decimal value.

The following features are supported:

See Also:
Generated:
Model:
annotation="https://tabatkins.github.io/bikeshed heading='Literals'"
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the 'Value' attribute.
    void
    Sets the value of the 'Value' attribute.

    Methods inherited from interface io.opencaesar.oml.Element

    extraValidate, getOntology

    Methods inherited from interface org.eclipse.emf.ecore.EObject

    eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset

    Methods inherited from interface io.opencaesar.oml.Literal

    getLexicalValue, getStringValue

    Methods inherited from interface org.eclipse.emf.common.notify.Notifier

    eAdapters, eDeliver, eNotify, eSetDeliver
  • Method Details

    • getValue

      BigDecimal getValue()
      Returns the value of the 'Value' attribute. The default value is "0.0". The decimal value of this literal
      Specified by:
      getValue in interface Literal
      Returns:
      the value of the 'Value' attribute.
      See Also:
      Generated:
      Model:
      default="0.0" unique="false" dataType="io.opencaesar.oml.Decimal" required="true"
    • setValue

      void setValue(BigDecimal value)
      Sets the value of the 'Value' attribute.
      Parameters:
      value - the new value of the 'Value' attribute.
      See Also:
      Generated:
    • getTypeIri

      String getTypeIri()
      Specified by:
      getTypeIri in interface Literal
      Generated:
      Model:
      kind="operation" unique="false"