org.semanticweb.elk.owl.predefined
Enum PredefinedElkClass

java.lang.Object
  extended by java.lang.Enum<PredefinedElkClass>
      extended by org.semanticweb.elk.owl.predefined.PredefinedElkClass
All Implemented Interfaces:
Serializable, Comparable<PredefinedElkClass>, ElkClass, ElkClassExpression, ElkEntity, ElkObject

public enum PredefinedElkClass
extends Enum<PredefinedElkClass>
implements ElkClass

Corresponds to predefined classes in the OWL 2 specification, such as owl:Thing and owl:Nothing.

Author:
"Yevgeny Kazakov"

Enum Constant Summary
OWL_NOTHING
           
OWL_THING
           
 
Method Summary
<O> O
accept(ElkClassExpressionVisitor<O> visitor)
          Accept an ElkClassExpressionVisitor.
<O> O
accept(ElkEntityVisitor<O> visitor)
          Accept an ElkEntityVisitor.
<O> O
accept(ElkObjectVisitor<O> visitor)
           
 ElkIri getIri()
           
static PredefinedElkClass valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PredefinedElkClass[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OWL_THING

public static final PredefinedElkClass OWL_THING

OWL_NOTHING

public static final PredefinedElkClass OWL_NOTHING
Method Detail

values

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

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

valueOf

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

getIri

public ElkIri getIri()
Specified by:
getIri in interface ElkEntity
Returns:
The IRI of this entity.

accept

public <O> O accept(ElkClassExpressionVisitor<O> visitor)
Description copied from interface: ElkClassExpression
Accept an ElkClassExpressionVisitor.

Specified by:
accept in interface ElkClassExpression
Parameters:
visitor - the visitor that can work with this axiom type
Returns:
the output of the visitor

accept

public <O> O accept(ElkObjectVisitor<O> visitor)
Specified by:
accept in interface ElkObject

accept

public <O> O accept(ElkEntityVisitor<O> visitor)
Description copied from interface: ElkEntity
Accept an ElkEntityVisitor.

Specified by:
accept in interface ElkEntity
Parameters:
visitor - the visitor that can work with this axiom type
Returns:
the output of the visitor


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.