com.hashmapinc.tempus.WitsmlObjects.v1311.MeasuredDepthCoord Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WitsmlObjects Show documentation
Show all versions of WitsmlObjects Show documentation
This library assists in serializing and deserializing WITSML 1.3.1.1 and 1.4.1.1 Objects
package com.hashmapinc.tempus.WitsmlObjects.v1311;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* A measured depth coordinate in a wellbore.
* Positive moving from the reference datum toward the bottomhole.
* All coordinates with the same datum (and same uom) can be considered to be in the same
* Coordinate Reference System and are thus directly comparable.
*
* Java class for measuredDepthCoord complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
{@code
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "measuredDepthCoord")
public class MeasuredDepthCoord
extends AbstractMeasure
{
@XmlAttribute(name = "uom", required = true)
protected MeasuredDepthUom uom;
@XmlAttribute(name = "datum")
protected String datum;
/**
* Gets the value of the uom property.
*
* @return
* possible object is
* {@link MeasuredDepthUom }
*
*/
public MeasuredDepthUom getUom() {
return uom;
}
/**
* Sets the value of the uom property.
*
* @param value
* allowed object is
* {@link MeasuredDepthUom }
*
*/
public void setUom(MeasuredDepthUom value) {
this.uom = value;
}
/**
* Gets the value of the datum property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDatum() {
return datum;
}
/**
* Sets the value of the datum property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDatum(String value) {
this.datum = value;
}
//=========================================================================
// conversion methods for 1.3.1.1/1.4.1.1/2.0 interop
//=========================================================================
public com.hashmapinc.tempus.WitsmlObjects.v20.DepthCoord to20DepthCoord() {
com.hashmapinc.tempus.WitsmlObjects.v20.DepthCoord mdCoord = new com.hashmapinc.tempus.WitsmlObjects.v20.DepthCoord();
mdCoord.setDatum(this.datum);
if (null != this.uom)
mdCoord.setUom(this.uom.value());
mdCoord.setValue(this.value);
return mdCoord;
}
public com.hashmapinc.tempus.WitsmlObjects.v1411.MeasuredDepthCoord to1411MeasuredDepthCoord() {
com.hashmapinc.tempus.WitsmlObjects.v1411.MeasuredDepthCoord mdCoord = new com.hashmapinc.tempus.WitsmlObjects.v1411.MeasuredDepthCoord();
if (null != this.uom) {
com.hashmapinc.tempus.WitsmlObjects.v1411.MeasuredDepthUom mdUom = com.hashmapinc.tempus.WitsmlObjects.v1411.MeasuredDepthUom.fromValue(this.uom.value());
mdCoord.setUom(mdUom);
}
mdCoord.setDatum(this.datum);
mdCoord.setValue(this.value);
return mdCoord;
}
public com.hashmapinc.tempus.WitsmlObjects.v1411.LengthMeasure to1411LengthMeasure() {
com.hashmapinc.tempus.WitsmlObjects.v1411.LengthMeasure measure = new com.hashmapinc.tempus.WitsmlObjects.v1411.LengthMeasure();
if (null != this.getUom())
measure.setUom(this.getUom().value());
measure.setValue(this.value);
return measure;
}
//=========================================================================
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy