org.semanticweb.owlapi.reasoner
Enum UndeclaredEntityPolicy

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

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

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

An undeclared 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, UndeclaredEntitiesException


Enum Constant Summary
ALLOW
          Specifies that undeclared entities are allowed and should be treated as "fresh" entities when they are encountered in the signature of OWLObjects in queries to a reasoner.
DISALLOW
          Specifies that undeclared entities are not disallowed.
 
Method Summary
static UndeclaredEntityPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UndeclaredEntityPolicy[] 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 UndeclaredEntityPolicy ALLOW
Specifies that undeclared entities are allowed and should be treated as "fresh" entities when they are encountered in the signature of OWLObjects in queries to a reasoner.


DISALLOW

public static final UndeclaredEntityPolicy DISALLOW
Specifies that undeclared entities are not disallowed. When an undeclared entity is encountered in the signature of an OWLObject that is used in a query to a reasoner an UndeclaredEntitiesException will be thrown in the calling thread.

Method Detail

values

public static final UndeclaredEntityPolicy[] 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(UndeclaredEntityPolicy c : UndeclaredEntityPolicy.values())
        System.out.println(c);

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

valueOf

public static UndeclaredEntityPolicy 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