Class NumberToStringType

  • Direct Known Subclasses:
    NumericDataType.ToString

    public class NumberToStringType
    extends OptionalNameDescriptionType
    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>
     
    • Constructor Detail

      • NumberToStringType

        public NumberToStringType()
    • Method Detail

      • getValueEnumerationOrRangeEnumeration

        public List<Object> getValueEnumerationOrRangeEnumeration()
        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 Jakarta XML Binding 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 FloatEnumerationRangeType ValueEnumerationType