![JAR search and dependency download from the Maven repository](/logo.png)
net.intelie.liverig.witsml.query.CapabilityQuery131 Maven / Gradle / Ivy
The newest version!
package net.intelie.liverig.witsml.query;
import net.intelie.liverig.parser.ParseException;
import net.intelie.liverig.witsml.WITSMLResult;
import net.intelie.liverig.witsml.objects.ApiVers;
import net.intelie.liverig.witsml.objects.CapServer;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
import java.util.ArrayList;
import java.util.List;
public class CapabilityQuery131 extends AbstractQuery131 implements CapabilityQuery {
@Override
public String type() {
return null;
}
@Override
public String options() {
return "dataVersion=" + ApiVers.WITSML_131.getSchemaVersion();
}
@Override
void query(XMLStreamWriter writer) throws XMLStreamException {
}
@Override
public List parse(WITSMLResult witsmlResult) throws ParseException {
String xml = witsmlResult.getXml();
List result = new ArrayList<>();
parse(xml, new CapabilityQuery.Parser(result, ApiVers.WITSML_131));
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy