org.eaglei.repository.model
Enum NamedGraphType

java.lang.Object
  extended by java.lang.Enum<NamedGraphType>
      extended by org.eaglei.repository.model.NamedGraphType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NamedGraphType>

@HasContentCache
public enum NamedGraphType
extends java.lang.Enum<NamedGraphType>

This class is both an enumeration and an ImmutableObjectModel representing the allowable Types of Named Graphs. Although the types of named graphs are part of the repository's internal ontology and thus appear that they might be "easily" changed, in reality, the semantics of named graph types are thoroughly baked into the repo logic such that if they are changed or extended, updating this enum is the least of the work required. The symbolic name is also how the named graph type appears in the API, at least, where a keyword is used instead of the URI.

Author:
Larry Stone Started June 7, 2010

Enum Constant Summary
internal
           
metadata
           
ontology
          Types:
published
           
workspace
           
 
Method Summary
static void decache()
          Invalidate the role cache, called when RDF has changed.
static NamedGraphType find(javax.servlet.http.HttpServletRequest request, org.openrdf.model.URI subject)
          Get NGT from the fixed map, we do not expect to update the ontology.
static java.util.List<NamedGraphType> findAll(javax.servlet.http.HttpServletRequest request)
          Get list of all types.
 java.lang.String getLabel()
          Get pretty title to include in e.g.
 org.openrdf.model.URI getURI()
          Accessor
static NamedGraphType parse(java.lang.String v)
          Interpret string as one of the enumerated type names
static NamedGraphType parse(org.openrdf.model.URI v)
          Interpret URI as one of the enumerated type names
static NamedGraphType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NamedGraphType[] 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 NamedGraphType ontology
Types:


metadata

public static final NamedGraphType metadata

workspace

public static final NamedGraphType workspace

published

public static final NamedGraphType published

internal

public static final NamedGraphType internal
Method Detail

values

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

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

valueOf

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

decache

public static void decache()
Invalidate the role cache, called when RDF has changed.


getURI

public org.openrdf.model.URI getURI()
Accessor


parse

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


parse

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


getLabel

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


find

public static NamedGraphType find(javax.servlet.http.HttpServletRequest request,
                                  org.openrdf.model.URI subject)
                           throws javax.servlet.ServletException
Get NGT from the fixed map, we do not expect to update the ontology.

Throws:
javax.servlet.ServletException

findAll

public static java.util.List<NamedGraphType> findAll(javax.servlet.http.HttpServletRequest request)
                                              throws javax.servlet.ServletException
Get list of all types. Almost never gets called, so inefficient implementation is ok

Throws:
javax.servlet.ServletException


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