org.semanticweb.owlapi.reasoner
Enum FreshEntityPolicy

java.lang.Object
  extended by java.lang.Enum<FreshEntityPolicy>
      extended by org.semanticweb.owlapi.reasoner.FreshEntityPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FreshEntityPolicy>

public enum FreshEntityPolicy
extends java.lang.Enum<FreshEntityPolicy>

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 29-Nov-2009

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.

See also: OWLReasonerConfiguration, FreshEntitiesException


Enum Constant Summary
ALLOW
          Specifies that fresh entities are allowed when they are encountered in the signature of OWLObjects in queries to a reasoner.
DISALLOW
          Specifies that fresh entities are not disallowed.
 
Method Summary
static FreshEntityPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FreshEntityPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALLOW

public static final FreshEntityPolicy ALLOW
Specifies that fresh entities are allowed when they are encountered in the signature of OWLObjects 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 Detail

values

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

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static FreshEntityPolicy valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name