![JAR search and dependency download from the Maven repository](/logo.png)
net.intelie.liverig.witsml.query.AbstractWellboreGeometryQuery141 Maven / Gradle / Ivy
The newest version!
package net.intelie.liverig.witsml.query;
import com.google.common.base.Strings;
import net.intelie.liverig.witsml.objects.LogIndex;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
abstract class AbstractWellboreGeometryQuery141 extends AbstractQuery141 {
private final String uidWell;
private final String uidWellbore;
private final String uid;
private final LogIndex range;
AbstractWellboreGeometryQuery141(String uidWell, String uidWellbore, String uid, LogIndex range) {
this.uidWell = uidWell;
this.uidWellbore = uidWellbore;
this.uid = uid;
this.range = range;
}
@Override
public String type() {
return "wbGeometry";
}
@Override
void query(XMLStreamWriter writer) throws XMLStreamException {
writeRootElement(writer, "wbGeometrys");
createWbGeometryTag(writer);
writer.writeEndElement();
}
public void createCommonDataTag(XMLStreamWriter writer) throws XMLStreamException{
writer.writeStartElement(WITSML_NS, "commonData");
writer.writeEmptyElement(WITSML_NS, "sourceName");
writer.writeEmptyElement(WITSML_NS, "dTimCreation");
writer.writeEmptyElement(WITSML_NS, "dTimLastChange");
writer.writeEmptyElement(WITSML_NS, "itemState");
writer.writeEmptyElement(WITSML_NS, "serviceCategory");
writer.writeEmptyElement(WITSML_NS, "comments");
writer.writeEmptyElement(WITSML_NS, "acquisitionTimeZone");
writer.writeAttribute("dTim", "");
writer.writeEmptyElement(WITSML_NS, "defaultDatum");
writer.writeAttribute("uidRef", "");
writer.writeEmptyElement(WITSML_NS, "privateGroupOnly");
writer.writeEmptyElement(WITSML_NS, "extensionAny");
createExtensionNameValueTag(writer);
writer.writeEndElement();
}
public void createExtensionNameValueTag(XMLStreamWriter writer) throws XMLStreamException{
writer.writeStartElement(WITSML_NS, "extensionNameValue");
writer.writeAttribute("uid", "");
writer.writeEmptyElement(WITSML_NS, "name");
writer.writeEmptyElement(WITSML_NS, "value");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "dataType");
writer.writeEmptyElement(WITSML_NS, "dTim");
writer.writeEmptyElement(WITSML_NS, "md");
writer.writeAttribute("datum", "");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "index");
writer.writeEmptyElement(WITSML_NS, "measureClass");
writer.writeEmptyElement(WITSML_NS, "description");
writer.writeEndElement();
}
public void createWbGeometryTag(XMLStreamWriter writer) throws XMLStreamException{
writer.writeStartElement(WITSML_NS, "wbGeometry");
writer.writeAttribute("uidWell", uidWell);
writer.writeAttribute("uidWellbore", uidWellbore);
writer.writeAttribute("uid", Strings.nullToEmpty(uid));
writer.writeEmptyElement(WITSML_NS, "nameWell");
writer.writeEmptyElement(WITSML_NS, "nameWellbore");
writer.writeEmptyElement(WITSML_NS, "name");
writer.writeEmptyElement(WITSML_NS, "dTimReport");
writer.writeEmptyElement(WITSML_NS, "mdBottom");
writer.writeAttribute("datum", "");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "gapAir");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "depthWaterMean");
writer.writeAttribute("uom", "");
createWbGeometrySectionTag(writer);
createCommonDataTag(writer);
writer.writeEmptyElement(WITSML_NS, "customData");
writer.writeEndElement();
}
public void createWbGeometrySectionTag(XMLStreamWriter writer) throws XMLStreamException{
writer.writeStartElement(WITSML_NS, "wbGeometrySection");
writer.writeAttribute("uid", "");
writer.writeEmptyElement(WITSML_NS, "typeHoleCasing");
writer.writeEmptyElement(WITSML_NS, "mdTop");
writer.writeAttribute("datum", "");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "mdBottom");
writer.writeAttribute("datum", "");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "tvdTop");
writer.writeAttribute("datum", "");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "tvdBottom");
writer.writeAttribute("datum", "");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "idSection");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "odSection");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "wtPerLen");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "grade");
writer.writeEmptyElement(WITSML_NS, "curveConductor");
writer.writeEmptyElement(WITSML_NS, "diaDrift");
writer.writeAttribute("uom", "");
writer.writeEmptyElement(WITSML_NS, "factFric");
createExtensionNameValueTag(writer);
writer.writeEndElement();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy