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

org.omg.space.xtce.StringDataEncodingType 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 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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * For common encodings of string data
 * 
 * 

Java class for StringDataEncodingType complex type. * *

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

 * <complexType name="StringDataEncodingType">
 *   <complexContent>
 *     <extension base="{http://www.omg.org/space/xtce}DataEncodingType">
 *       <sequence>
 *         <element name="SizeInBits">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <choice>
 *                   <element name="Fixed" type="{http://www.omg.org/space/xtce}IntegerValueType"/>
 *                   <element name="TerminationChar" type="{http://www.w3.org/2001/XMLSchema}hexBinary"/>
 *                   <element name="LeadingSize">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <attribute name="sizeInBitsOfSizeTag" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="16" />
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </choice>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *       <attribute name="encoding" default="UTF-8">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *             <enumeration value="UTF-8"/>
 *             <enumeration value="UTF-16"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StringDataEncodingType", propOrder = { "sizeInBits" }) public class StringDataEncodingType extends DataEncodingType { @XmlElement(name = "SizeInBits", required = true) protected StringDataEncodingType.SizeInBits sizeInBits; @XmlAttribute(name = "encoding") protected String encoding; /** * Gets the value of the sizeInBits property. * * @return * possible object is * {@link StringDataEncodingType.SizeInBits } * */ public StringDataEncodingType.SizeInBits getSizeInBits() { return sizeInBits; } /** * Sets the value of the sizeInBits property. * * @param value * allowed object is * {@link StringDataEncodingType.SizeInBits } * */ public void setSizeInBits(StringDataEncodingType.SizeInBits value) { this.sizeInBits = value; } /** * Gets the value of the encoding property. * * @return * possible object is * {@link String } * */ public String getEncoding() { if (encoding == null) { return "UTF-8"; } else { return encoding; } } /** * Sets the value of the encoding property. * * @param value * allowed object is * {@link String } * */ public void setEncoding(String value) { this.encoding = 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">
     *       <choice>
     *         <element name="Fixed" type="{http://www.omg.org/space/xtce}IntegerValueType"/>
     *         <element name="TerminationChar" type="{http://www.w3.org/2001/XMLSchema}hexBinary"/>
     *         <element name="LeadingSize">
     *           <complexType>
     *             <complexContent>
     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 <attribute name="sizeInBitsOfSizeTag" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="16" />
     *               </restriction>
     *             </complexContent>
     *           </complexType>
     *         </element>
     *       </choice>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "fixed", "terminationChar", "leadingSize" }) public static class SizeInBits { @XmlElement(name = "Fixed") protected IntegerValueType fixed; @XmlElement(name = "TerminationChar", type = String.class) @XmlJavaTypeAdapter(HexBinaryAdapter.class) @XmlSchemaType(name = "hexBinary") protected byte[] terminationChar; @XmlElement(name = "LeadingSize") protected StringDataEncodingType.SizeInBits.LeadingSize leadingSize; /** * Gets the value of the fixed property. * * @return * possible object is * {@link IntegerValueType } * */ public IntegerValueType getFixed() { return fixed; } /** * Sets the value of the fixed property. * * @param value * allowed object is * {@link IntegerValueType } * */ public void setFixed(IntegerValueType value) { this.fixed = value; } /** * Gets the value of the terminationChar property. * * @return * possible object is * {@link String } * */ public byte[] getTerminationChar() { return terminationChar; } /** * Sets the value of the terminationChar property. * * @param value * allowed object is * {@link String } * */ public void setTerminationChar(byte[] value) { this.terminationChar = value; } /** * Gets the value of the leadingSize property. * * @return * possible object is * {@link StringDataEncodingType.SizeInBits.LeadingSize } * */ public StringDataEncodingType.SizeInBits.LeadingSize getLeadingSize() { return leadingSize; } /** * Sets the value of the leadingSize property. * * @param value * allowed object is * {@link StringDataEncodingType.SizeInBits.LeadingSize } * */ public void setLeadingSize(StringDataEncodingType.SizeInBits.LeadingSize value) { this.leadingSize = 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="sizeInBitsOfSizeTag" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="16" />
         *     </restriction>
         *   </complexContent>
         * </complexType>
         * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class LeadingSize { @XmlAttribute(name = "sizeInBitsOfSizeTag") @XmlSchemaType(name = "positiveInteger") protected BigInteger sizeInBitsOfSizeTag; /** * Gets the value of the sizeInBitsOfSizeTag property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getSizeInBitsOfSizeTag() { if (sizeInBitsOfSizeTag == null) { return new BigInteger("16"); } else { return sizeInBitsOfSizeTag; } } /** * Sets the value of the sizeInBitsOfSizeTag property. * * @param value * allowed object is * {@link BigInteger } * */ public void setSizeInBitsOfSizeTag(BigInteger value) { this.sizeInBitsOfSizeTag = value; } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy