Fork me on GitHub

Namespace org.accordproject.value

Found 6 declarations!

Download CTO Download UML Download JSON Schema Download Typescript Download Java Download Go Download XML Schema

Declared Types


import org.accordproject.value.QuantitativeValue from https://models.accordproject.org/value.cto
import org.accordproject.value.UnitOfMass from https://models.accordproject.org/value.cto
import org.accordproject.value.UnitOfLength from https://models.accordproject.org/value.cto
import org.accordproject.value.UnitOfDensity from https://models.accordproject.org/value.cto
import org.accordproject.value.UnitOfVolume from https://models.accordproject.org/value.cto
import org.accordproject.value.UnitOfTemperature from https://models.accordproject.org/value.cto

Dependencies

  • None

Source

            
namespace org.accordproject.value

/**
 * http://schema.org/QuantitativeValue
 */
concept QuantitativeValue {
  o String unitCode
  o String unitText optional
  o Double value
}

/**
 * SI units of mass
 */
enum UnitOfMass {
  o GRAM
  o KG
  o TONNE
}

/**
 * Units of Length
 */
enum UnitOfLength {
  o METER
}

/**
 * Units of Density
 */
enum UnitOfDensity {
  o KG_PER_CUBIC_METER
}

/**
 * Units of Volume
 */
enum UnitOfVolume {
  o CUBIC_METER
}

/**
 * Units of Temperature
 */
enum UnitOfTemperature {
  o KELVINS
  o CELSIUS
  o FAHRENHEIT
}