All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.space.xtce.NumberToStringType Maven / Gradle / Ivy

Go to download

This project contains software to support the Object Management Group (OMG) Space Domain Task Force (SDTF) maintained XML Telemetry and Command Exchange (XTCE) specification.

There is a newer version: 1.1.6
Show newest version
//
// 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: 2019.03.16 at 05:52:46 PM MST 
//


package org.omg.space.xtce;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
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.XmlElements;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;


/**
 * There are two ways numeric data can be changed to string data: using a Java style NumberFormat, or using an enumerated list.   Enumerated lists can be assigned to a single value or a value range.
 * 
 * 

Java class for NumberToStringType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="NumberToStringType">
 *   <complexContent>
 *     <extension base="{http://www.omg.org/space/xtce}OptionalNameDescriptionType">
 *       <choice>
 *         <choice maxOccurs="unbounded">
 *           <element name="ValueEnumeration" type="{http://www.omg.org/space/xtce}ValueEnumerationType"/>
 *           <element name="RangeEnumeration" type="{http://www.omg.org/space/xtce}FloatEnumerationRangeType"/>
 *         </choice>
 *         <element name="NumberFormat">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <attribute name="numberBase" type="{http://www.omg.org/space/xtce}RadixType" default="Decimal" />
 *                 <attribute name="minimumFractionDigits" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
 *                 <attribute name="maximumFractionDigits" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
 *                 <attribute name="minimumIntegerDigits" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
 *                 <attribute name="maximumIntegerDigits" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
 *                 <attribute name="negativeSuffix" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 <attribute name="positiveSuffix" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 <attribute name="negativePrefix" type="{http://www.w3.org/2001/XMLSchema}string" default="-" />
 *                 <attribute name="positivePrefix" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 <attribute name="showThousandsGrouping" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *                 <attribute name="notation" default="normal">
 *                   <simpleType>
 *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *                       <enumeration value="normal"/>
 *                       <enumeration value="scientific"/>
 *                       <enumeration value="engineering"/>
 *                     </restriction>
 *                   </simpleType>
 *                 </attribute>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </choice>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "NumberToStringType", propOrder = { "valueEnumerationOrRangeEnumeration", "numberFormat" }) @XmlSeeAlso({ org.omg.space.xtce.NumericDataType.ToString.class }) public class NumberToStringType extends OptionalNameDescriptionType { @XmlElements({ @XmlElement(name = "ValueEnumeration", type = ValueEnumerationType.class), @XmlElement(name = "RangeEnumeration", type = FloatEnumerationRangeType.class) }) protected List valueEnumerationOrRangeEnumeration; @XmlElement(name = "NumberFormat") protected NumberToStringType.NumberFormat numberFormat; /** * Gets the value of the valueEnumerationOrRangeEnumeration property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the valueEnumerationOrRangeEnumeration property. * *

* For example, to add a new item, do as follows: *

     *    getValueEnumerationOrRangeEnumeration().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ValueEnumerationType } * {@link FloatEnumerationRangeType } * * */ public List getValueEnumerationOrRangeEnumeration() { if (valueEnumerationOrRangeEnumeration == null) { valueEnumerationOrRangeEnumeration = new ArrayList(); } return this.valueEnumerationOrRangeEnumeration; } /** * Gets the value of the numberFormat property. * * @return * possible object is * {@link NumberToStringType.NumberFormat } * */ public NumberToStringType.NumberFormat getNumberFormat() { return numberFormat; } /** * Sets the value of the numberFormat property. * * @param value * allowed object is * {@link NumberToStringType.NumberFormat } * */ public void setNumberFormat(NumberToStringType.NumberFormat value) { this.numberFormat = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <attribute name="numberBase" type="{http://www.omg.org/space/xtce}RadixType" default="Decimal" />
     *       <attribute name="minimumFractionDigits" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
     *       <attribute name="maximumFractionDigits" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
     *       <attribute name="minimumIntegerDigits" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
     *       <attribute name="maximumIntegerDigits" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
     *       <attribute name="negativeSuffix" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       <attribute name="positiveSuffix" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       <attribute name="negativePrefix" type="{http://www.w3.org/2001/XMLSchema}string" default="-" />
     *       <attribute name="positivePrefix" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       <attribute name="showThousandsGrouping" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     *       <attribute name="notation" default="normal">
     *         <simpleType>
     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     *             <enumeration value="normal"/>
     *             <enumeration value="scientific"/>
     *             <enumeration value="engineering"/>
     *           </restriction>
     *         </simpleType>
     *       </attribute>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class NumberFormat { @XmlAttribute(name = "numberBase") protected RadixType numberBase; @XmlAttribute(name = "minimumFractionDigits") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger minimumFractionDigits; @XmlAttribute(name = "maximumFractionDigits") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger maximumFractionDigits; @XmlAttribute(name = "minimumIntegerDigits") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger minimumIntegerDigits; @XmlAttribute(name = "maximumIntegerDigits") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger maximumIntegerDigits; @XmlAttribute(name = "negativeSuffix") protected String negativeSuffix; @XmlAttribute(name = "positiveSuffix") protected String positiveSuffix; @XmlAttribute(name = "negativePrefix") protected String negativePrefix; @XmlAttribute(name = "positivePrefix") protected String positivePrefix; @XmlAttribute(name = "showThousandsGrouping") protected Boolean showThousandsGrouping; @XmlAttribute(name = "notation") protected String notation; /** * Gets the value of the numberBase property. * * @return * possible object is * {@link RadixType } * */ public RadixType getNumberBase() { if (numberBase == null) { return RadixType.DECIMAL; } else { return numberBase; } } /** * Sets the value of the numberBase property. * * @param value * allowed object is * {@link RadixType } * */ public void setNumberBase(RadixType value) { this.numberBase = value; } /** * Gets the value of the minimumFractionDigits property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getMinimumFractionDigits() { return minimumFractionDigits; } /** * Sets the value of the minimumFractionDigits property. * * @param value * allowed object is * {@link BigInteger } * */ public void setMinimumFractionDigits(BigInteger value) { this.minimumFractionDigits = value; } /** * Gets the value of the maximumFractionDigits property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getMaximumFractionDigits() { return maximumFractionDigits; } /** * Sets the value of the maximumFractionDigits property. * * @param value * allowed object is * {@link BigInteger } * */ public void setMaximumFractionDigits(BigInteger value) { this.maximumFractionDigits = value; } /** * Gets the value of the minimumIntegerDigits property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getMinimumIntegerDigits() { return minimumIntegerDigits; } /** * Sets the value of the minimumIntegerDigits property. * * @param value * allowed object is * {@link BigInteger } * */ public void setMinimumIntegerDigits(BigInteger value) { this.minimumIntegerDigits = value; } /** * Gets the value of the maximumIntegerDigits property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getMaximumIntegerDigits() { return maximumIntegerDigits; } /** * Sets the value of the maximumIntegerDigits property. * * @param value * allowed object is * {@link BigInteger } * */ public void setMaximumIntegerDigits(BigInteger value) { this.maximumIntegerDigits = value; } /** * Gets the value of the negativeSuffix property. * * @return * possible object is * {@link String } * */ public String getNegativeSuffix() { return negativeSuffix; } /** * Sets the value of the negativeSuffix property. * * @param value * allowed object is * {@link String } * */ public void setNegativeSuffix(String value) { this.negativeSuffix = value; } /** * Gets the value of the positiveSuffix property. * * @return * possible object is * {@link String } * */ public String getPositiveSuffix() { return positiveSuffix; } /** * Sets the value of the positiveSuffix property. * * @param value * allowed object is * {@link String } * */ public void setPositiveSuffix(String value) { this.positiveSuffix = value; } /** * Gets the value of the negativePrefix property. * * @return * possible object is * {@link String } * */ public String getNegativePrefix() { if (negativePrefix == null) { return "-"; } else { return negativePrefix; } } /** * Sets the value of the negativePrefix property. * * @param value * allowed object is * {@link String } * */ public void setNegativePrefix(String value) { this.negativePrefix = value; } /** * Gets the value of the positivePrefix property. * * @return * possible object is * {@link String } * */ public String getPositivePrefix() { return positivePrefix; } /** * Sets the value of the positivePrefix property. * * @param value * allowed object is * {@link String } * */ public void setPositivePrefix(String value) { this.positivePrefix = value; } /** * Gets the value of the showThousandsGrouping property. * * @return * possible object is * {@link Boolean } * */ public boolean isShowThousandsGrouping() { if (showThousandsGrouping == null) { return true; } else { return showThousandsGrouping; } } /** * Sets the value of the showThousandsGrouping property. * * @param value * allowed object is * {@link Boolean } * */ public void setShowThousandsGrouping(Boolean value) { this.showThousandsGrouping = value; } /** * Gets the value of the notation property. * * @return * possible object is * {@link String } * */ public String getNotation() { if (notation == null) { return "normal"; } else { return notation; } } /** * Sets the value of the notation property. * * @param value * allowed object is * {@link String } * */ public void setNotation(String value) { this.notation = value; } } }