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

net.intelie.liverig.witsml.query.QueryUtil Maven / Gradle / Ivy

The newest version!
package net.intelie.liverig.witsml.query;

import com.google.common.base.Strings;

import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;

public class QueryUtil {
    static void addFilter(XMLStreamWriter writer, String nameSpace, String filterName, String filterValue) throws XMLStreamException {
        if (!Strings.isNullOrEmpty(filterValue)) {
            writer.writeStartElement(nameSpace, filterName);
            writer.writeCharacters(filterValue);
            writer.writeEndElement();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy