org.eaglei.repository
Enum NamedGraph.Type

java.lang.Object
  extended by java.lang.Enum<NamedGraph.Type>
      extended by org.eaglei.repository.NamedGraph.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NamedGraph.Type>
Enclosing class:
NamedGraph

public static enum NamedGraph.Type
extends java.lang.Enum<NamedGraph.Type>

The allowable named graph types. Although the type itself is part of the repository's internal ontology and thus appears that it might be easily changed, in reality, the semantics of named graph types are hardcoded that if they are changed or extended, updating this enum is the least of the work required. The enum's symbolic name is how the named graph type appears in the API, at least, where a keyword is used instead of the URI.


Enum Constant Summary
internal
           
metadata
           
ontology
           
published
           
workspace
           
 
Field Summary
 org.openrdf.model.URI uri
           
 
Method Summary
 java.lang.String getTitle()
          Get pretty title to include in e.g.
static NamedGraph.Type parse(java.lang.String v)
          Interpret string as one of the enumerated type names
static NamedGraph.Type parse(org.openrdf.model.URI v)
          Interpret URI as one of the enumerated type names
static NamedGraph.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NamedGraph.Type[] 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

ontology

public static final NamedGraph.Type ontology

metadata

public static final NamedGraph.Type metadata

workspace

public static final NamedGraph.Type workspace

published

public static final NamedGraph.Type published

internal

public static final NamedGraph.Type internal
Field Detail

uri

public org.openrdf.model.URI uri
Method Detail

values

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

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

valueOf

public static NamedGraph.Type 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
java.lang.NullPointerException - if the argument is null

parse

public static NamedGraph.Type parse(java.lang.String v)
Interpret string as one of the enumerated type names


parse

public static NamedGraph.Type parse(org.openrdf.model.URI v)
Interpret URI as one of the enumerated type names


getTitle

public java.lang.String getTitle()
Get pretty title to include in e.g. a menu



Copyright © 2009-2010 Eagle-I. All Rights Reserved.