Class QueryScientific
java.lang.Object
org.libxmq.Query
org.libxmq.QueryScientific
This class is used to extract scientific values from a DOM.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Query
element, expect, forEach, getBoolean, getDouble, getFloat, getInt, getLong, getOptionalBoolean, getOptionalDouble, getOptionalFloat, getOptionalInt, getOptionalLong, getOptionalString, getString, node, optionalElement, query, selectModifier and TypeMethodDescriptionFetches a single element from the xpath.voidexpect(String xpath, NodeCallback cb) Perform a single callback for a single node matching the xpath expression.intforEach(String xpath, NodeCallback cb) Perform a callback for each node matching the xpath expression.booleangetBoolean(String xpath) Get a boolean from an xpath location.doubleGet a 64 bit IEEE double floating point value from an xpath location and check that it complies with the restrictions.floatGet a 32 bit IEEE double floating point value from an xpath location and check that it complies with the restrictions.intGet a 32 bit signed integer from an xpath location and check that it complies with the restriction.longGet a 64 bit signed integer from an xpath location that complies with any restriction.getOptionalBoolean(String xpath) Get an optional boolean from an xpath location.getOptionalDouble(String xpath, String restriction) Get an optional 64 bit IEEE double floating point value from an xpath location and check that it complies with the restrictions.getOptionalFloat(String xpath, String restriction) Get an optional 32 bit IEEE double floating point value from an xpath location and check that it complies with the restrictions.getOptionalInt(String xpath, String restriction) Get an optional 32 bit signed integer from an xpath location and check that it complies with the restriction.getOptionalLong(String xpath, String restriction) Get an optional 64 bit signed integer from an xpath location that complies with any restriction.getOptionalString(String xpath, String restriction) Get an optional string from an xpath location that complies with a restriction.Get a string from an xpath location that complies with a restriction.node()Return the node from which the query starts.optionalElement(String xpath) Fetches a single optional element from the xpath.Fetches a single element and wraps it inside a query from the xpath.Select the nodes matching the xpath expression, evaluated from the query node.
-
Constructor Details
-
QueryScientific
Build a new scientific query from a DOM node.- Parameters:
node- The DOM node from which the paths start when querying.
-