org.omg.space.xtce.UnitType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtcetools Show documentation
Show all versions of xtcetools Show documentation
This project contains software to support the Object Management Group (OMG) Space Domain Task Force (SDTF) maintained XML Telemetry and Command Exchange (XTCE) specification.
//
// 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.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* Used to hold the unit(s) plus possibly the exponent and factor for the units
*
* Java class for UnitType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="UnitType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="power" type="{http://www.w3.org/2001/XMLSchema}decimal" default="1" />
* <attribute name="factor" type="{http://www.w3.org/2001/XMLSchema}string" default="1" />
* <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "UnitType", propOrder = {
"content"
})
public class UnitType {
@XmlValue
protected String content;
@XmlAttribute(name = "power")
protected BigDecimal power;
@XmlAttribute(name = "factor")
protected String factor;
@XmlAttribute(name = "description")
protected String description;
/**
* Used to hold the unit(s) plus possibly the exponent and factor for the units
*
* @return
* possible object is
* {@link String }
*
*/
public String getContent() {
return content;
}
/**
* Sets the value of the content property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContent(String value) {
this.content = value;
}
/**
* Gets the value of the power property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getPower() {
if (power == null) {
return new BigDecimal("1");
} else {
return power;
}
}
/**
* Sets the value of the power property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setPower(BigDecimal value) {
this.power = value;
}
/**
* Gets the value of the factor property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFactor() {
if (factor == null) {
return "1";
} else {
return factor;
}
}
/**
* Sets the value of the factor property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFactor(String value) {
this.factor = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
}