Enum Class FreshEntityPolicy

java.lang.Object
java.lang.Enum<FreshEntityPolicy>
org.semanticweb.owlapi.reasoner.FreshEntityPolicy
All Implemented Interfaces:
Serializable, Comparable<FreshEntityPolicy>, java.lang.constant.Constable

public enum FreshEntityPolicy extends Enum<FreshEntityPolicy>
A fresh entity is an entity that is not a built in entity (see OWLEntity.isBuiltIn() and is not contained within the signature of the root ontology imports closure.
Since:
3.0.0
Author:
Matthew Horridge, The University of Manchester, Information Management Group
See Also:
  • Enum Constant Details

    • ALLOW

      public static final FreshEntityPolicy ALLOW
      Specifies that fresh entities are allowed when they are encountered in the signature of OWLObject instances in queries to a reasoner.
    • DISALLOW

      public static final FreshEntityPolicy DISALLOW
      Specifies that fresh entities are not disallowed. When a fresh entity is encountered in the signature of an OWLObject that is used in a query to a reasoner an FreshEntitiesException will be thrown in the calling thread.
  • Method Details

    • values

      public static FreshEntityPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FreshEntityPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null