Class XmpUtil


  • public abstract class XmpUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EQUALS
      Constant EQUALS="="
      static java.lang.String GREATER_THAN
      Constant GREATER_THAN=">"
      static java.lang.String GREATER_THAN_EQUALS
      Constant GREATER_THAN_EQUALS=">="
      static java.lang.String LESS_THAN
      Constant LESS_THAN="<"
      static java.lang.String LESS_THAN_EQUALS
      Constant LESS_THAN_EQUALS="<="
      static java.lang.String MATCHES
      Constant MATCHES="~"
      static java.lang.String NOT_EQUAL
      Constant NOT_EQUAL="!="
    • Constructor Summary

      Constructors 
      Constructor Description
      XmpUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean handleScalarQuery​(org.krupczak.xmp.XmpSession session, java.lang.String mib, java.lang.String object, java.lang.String valueOperator, java.lang.String valueOperand, boolean caseSensitive)
      handleScalarQuery
      static boolean handleTableQuery​(org.krupczak.xmp.XmpSession session, java.lang.String mib, java.lang.String table, java.lang.String object, java.lang.String instance, java.util.regex.Pattern instanceRegex, java.lang.String valueOperator, java.lang.String valueOperand, int minMatches, int maxMatches, boolean maxMatchesUnbounded, boolean caseSensitive)
      handleTableQuery
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LESS_THAN

        public static final java.lang.String LESS_THAN
        Constant LESS_THAN="<"
        See Also:
        Constant Field Values
      • GREATER_THAN

        public static final java.lang.String GREATER_THAN
        Constant GREATER_THAN=">"
        See Also:
        Constant Field Values
      • LESS_THAN_EQUALS

        public static final java.lang.String LESS_THAN_EQUALS
        Constant LESS_THAN_EQUALS="<="
        See Also:
        Constant Field Values
      • GREATER_THAN_EQUALS

        public static final java.lang.String GREATER_THAN_EQUALS
        Constant GREATER_THAN_EQUALS=">="
        See Also:
        Constant Field Values
      • EQUALS

        public static final java.lang.String EQUALS
        Constant EQUALS="="
        See Also:
        Constant Field Values
      • NOT_EQUAL

        public static final java.lang.String NOT_EQUAL
        Constant NOT_EQUAL="!="
        See Also:
        Constant Field Values
      • MATCHES

        public static final java.lang.String MATCHES
        Constant MATCHES="~"
        See Also:
        Constant Field Values
    • Constructor Detail

      • XmpUtil

        public XmpUtil()
    • Method Detail

      • handleScalarQuery

        public static boolean handleScalarQuery​(org.krupczak.xmp.XmpSession session,
                                                java.lang.String mib,
                                                java.lang.String object,
                                                java.lang.String valueOperator,
                                                java.lang.String valueOperand,
                                                boolean caseSensitive)
                                         throws XmpUtilException

        handleScalarQuery

        Parameters:
        session - a XmpSession object.
        mib - a String object.
        object - a String object.
        valueOperator - a String object.
        valueOperand - a String object.
        caseSensitive - a boolean.
        Returns:
        a boolean.
        Throws:
        XmpUtilException - if any.
      • handleTableQuery

        public static boolean handleTableQuery​(org.krupczak.xmp.XmpSession session,
                                               java.lang.String mib,
                                               java.lang.String table,
                                               java.lang.String object,
                                               java.lang.String instance,
                                               java.util.regex.Pattern instanceRegex,
                                               java.lang.String valueOperator,
                                               java.lang.String valueOperand,
                                               int minMatches,
                                               int maxMatches,
                                               boolean maxMatchesUnbounded,
                                               boolean caseSensitive)
                                        throws XmpUtilException

        handleTableQuery

        Parameters:
        session - a XmpSession object.
        mib - a String object.
        table - a String object.
        object - a String object.
        instance - a String object.
        instanceRegex - a Pattern object.
        valueOperator - a String object.
        valueOperand - a String object.
        minMatches - a int.
        maxMatches - a int.
        maxMatchesUnbounded - a boolean.
        caseSensitive - a boolean.
        Returns:
        a boolean.
        Throws:
        XmpUtilException - if any.