Enum CommonPredicate

    • Enum Constant Detail

      • OWL_EQUIVALENT_CLASS

        public static final CommonPredicate OWL_EQUIVALENT_CLASS
      • SEMAPV_CROSS_SPECIES_EXACT_MATCH

        public static final CommonPredicate SEMAPV_CROSS_SPECIES_EXACT_MATCH
      • SEMAPV_CROSS_SPECIES_NARROW_MATCH

        public static final CommonPredicate SEMAPV_CROSS_SPECIES_NARROW_MATCH
      • SEMAPV_CROSS_SPECIES_BROAD_MATCH

        public static final CommonPredicate SEMAPV_CROSS_SPECIES_BROAD_MATCH
    • Method Detail

      • values

        public static CommonPredicate[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CommonPredicate c : CommonPredicate.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CommonPredicate valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isExact

        public boolean isExact()
        Indicates whether the predicate is “exact”. A mapping with an exact predicate can be inverted without changing the predicate.
        Returns:
        true if the predicate is exact, false otherwise.
      • getInverse

        public String getInverse()
        Gets the inverse predicate for this predicate. When a predicate has a known inverse predicate, the inverse predicate should be used when inverting a mapping.
        Returns:
        The inverse predicate, if known; otherwise null.
      • isInvertible

        public boolean isInvertible()
        Indicates whether a predicate can be inverted. A predicate can be inverted if it is an exact predicate or if it has a known inverse predicate.
        Returns:
        true if the predicate can be inverted, otherwise false.
      • fromString

        public static CommonPredicate fromString​(String v)
        Parses a string into a common predicate.
        Parameters:
        v - The string to parse.
        Returns:
        The corresponding predicate, or null if the provided string does not match any of the common predicates.
      • invert

        @Deprecated
        public static Mapping invert​(Mapping mapping)
        Deprecated.
        Use Mapping.invert() instead.
        Try inverting a mapping according to standard inversion rules.
        Parameters:
        mapping - The mapping to invert.
        Returns:
        A new mapping that is an inversion of the provided one, or null if the mapping could not be inverted.