org.coode.owl.krssparser
Enum NameResolverStrategy

java.lang.Object
  extended by java.lang.Enum<NameResolverStrategy>
      extended by org.coode.owl.krssparser.NameResolverStrategy
All Implemented Interfaces:
Serializable, Comparable<NameResolverStrategy>

public enum NameResolverStrategy
extends Enum<NameResolverStrategy>

resolver strategies


Enum Constant Summary
ADAPTIVE
          if the first n names are URIs(NAMEs) all names are assumed to be URIs (NAMEs), otherwise we have to CHECK
CHECK
          for every concept/role name in KRSS we have to check whether it is an URI or NAME.
IRI
          every found concept/role name in KRSS is an absolute IRI
NAME
          concept/roles names in KRSS are all names, URI must be created (namespace of the ontology's URI)
 
Method Summary
static NameResolverStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NameResolverStrategy[] 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

ADAPTIVE

public static final NameResolverStrategy ADAPTIVE
if the first n names are URIs(NAMEs) all names are assumed to be URIs (NAMEs), otherwise we have to CHECK


IRI

public static final NameResolverStrategy IRI
every found concept/role name in KRSS is an absolute IRI


NAME

public static final NameResolverStrategy NAME
concept/roles names in KRSS are all names, URI must be created (namespace of the ontology's URI)


CHECK

public static final NameResolverStrategy CHECK
for every concept/role name in KRSS we have to check whether it is an URI or NAME. This is very expensive

Method Detail

values

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

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

valueOf

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


Copyright © 2012 The University of Manchester. All Rights Reserved.