Package org.omg.space.xtce
Class NumberToStringType
- java.lang.Object
-
- org.omg.space.xtce.DescriptionType
-
- org.omg.space.xtce.OptionalNameDescriptionType
-
- org.omg.space.xtce.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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNumberToStringType.NumberFormatJava class for anonymous complex type.-
Nested classes/interfaces inherited from class org.omg.space.xtce.DescriptionType
DescriptionType.AncillaryDataSet
-
-
Field Summary
Fields Modifier and Type Field Description protected NumberToStringType.NumberFormatnumberFormatprotected List<Object>valueEnumerationOrRangeEnumeration-
Fields inherited from class org.omg.space.xtce.OptionalNameDescriptionType
name
-
Fields inherited from class org.omg.space.xtce.DescriptionType
aliasSet, ancillaryDataSet, longDescription, shortDescription
-
-
Constructor Summary
Constructors Constructor Description NumberToStringType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumberToStringType.NumberFormatgetNumberFormat()Gets the value of the numberFormat property.List<Object>getValueEnumerationOrRangeEnumeration()Gets the value of the valueEnumerationOrRangeEnumeration property.voidsetNumberFormat(NumberToStringType.NumberFormat value)Sets the value of the numberFormat property.-
Methods inherited from class org.omg.space.xtce.OptionalNameDescriptionType
getName, setName
-
Methods inherited from class org.omg.space.xtce.DescriptionType
getAliasSet, getAncillaryDataSet, getLongDescription, getShortDescription, setAliasSet, setAncillaryDataSet, setLongDescription, setShortDescription
-
-
-
-
Field Detail
-
numberFormat
protected NumberToStringType.NumberFormat numberFormat
-
-
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
setmethod 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
FloatEnumerationRangeTypeValueEnumerationType
-
getNumberFormat
public NumberToStringType.NumberFormat getNumberFormat()
Gets the value of the numberFormat property.- Returns:
- possible object is
NumberToStringType.NumberFormat
-
setNumberFormat
public void setNumberFormat(NumberToStringType.NumberFormat value)
Sets the value of the numberFormat property.- Parameters:
value- allowed object isNumberToStringType.NumberFormat
-
-