org.semanticweb.owlapi.vocab
Enum OWLFacet

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

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

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group Date: 24-Oct-2006

Represents the facets that can be used for restricting a datatype.

See Also:
OWLFacetRestriction, OWLDatatypeRestriction

Enum Constant Summary
FRACTION_DIGITS
           
LANG_PATTERN
           
LENGTH
           
MAX_EXCLUSIVE
           
MAX_INCLUSIVE
           
MAX_LENGTH
           
MIN_EXCLUSIVE
           
MIN_INCLUSIVE
           
MIN_LENGTH
           
PATTERN
           
TOTAL_DIGITS
           
 
Field Summary
static java.util.Set<IRI> FACET_IRIS
           
 
Method Summary
static OWLFacet getFacet(IRI iri)
           
static OWLFacet getFacetByShortName(java.lang.String shortName)
          Gets a facet by its short name
static OWLFacet getFacetBySymbolicName(java.lang.String symbolicName)
           
static java.util.Set<IRI> getFacetIRIs()
           
static java.util.Set<java.lang.String> getFacets()
           
 IRI getIRI()
           
 java.lang.String getShortName()
           
 java.lang.String getSymbolicForm()
           
 java.lang.String toString()
           
static OWLFacet valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OWLFacet[] 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, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LENGTH

public static final OWLFacet LENGTH

MIN_LENGTH

public static final OWLFacet MIN_LENGTH

MAX_LENGTH

public static final OWLFacet MAX_LENGTH

PATTERN

public static final OWLFacet PATTERN

MIN_INCLUSIVE

public static final OWLFacet MIN_INCLUSIVE

MIN_EXCLUSIVE

public static final OWLFacet MIN_EXCLUSIVE

MAX_INCLUSIVE

public static final OWLFacet MAX_INCLUSIVE

MAX_EXCLUSIVE

public static final OWLFacet MAX_EXCLUSIVE

TOTAL_DIGITS

public static final OWLFacet TOTAL_DIGITS

FRACTION_DIGITS

public static final OWLFacet FRACTION_DIGITS

LANG_PATTERN

public static final OWLFacet LANG_PATTERN
Field Detail

FACET_IRIS

public static final java.util.Set<IRI> FACET_IRIS
Method Detail

values

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

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

valueOf

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

getIRI

public IRI getIRI()

getShortName

public java.lang.String getShortName()

getSymbolicForm

public java.lang.String getSymbolicForm()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<OWLFacet>

getFacetIRIs

public static java.util.Set<IRI> getFacetIRIs()

getFacet

public static OWLFacet getFacet(IRI iri)

getFacetByShortName

public static OWLFacet getFacetByShortName(java.lang.String shortName)
Gets a facet by its short name

Parameters:
shortName - The short name of the facet.
Returns:
The facet or null if not facet by the specified name exists.

getFacetBySymbolicName

public static OWLFacet getFacetBySymbolicName(java.lang.String symbolicName)

getFacets

public static java.util.Set<java.lang.String> getFacets()