|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<NamedGraphType>
org.eaglei.repository.model.NamedGraphType
@HasContentCache public 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.
| Enum Constant Summary | |
|---|---|
internal
|
|
metadata
|
|
ontology
Types: |
|
published
|
|
workspace
|
|
| Method Summary | |
|---|---|
static void |
decache()
Invalidate the NGT 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 |
|---|
public static final NamedGraphType ontology
public static final NamedGraphType metadata
public static final NamedGraphType workspace
public static final NamedGraphType published
public static final NamedGraphType internal
| Method Detail |
|---|
public static NamedGraphType[] values()
for (NamedGraphType c : NamedGraphType.values()) System.out.println(c);
public static NamedGraphType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static void decache()
public org.openrdf.model.URI getURI()
public static NamedGraphType parse(java.lang.String v)
public static NamedGraphType parse(org.openrdf.model.URI v)
public java.lang.String getLabel()
public static NamedGraphType find(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI subject)
throws javax.servlet.ServletException
javax.servlet.ServletException
public static java.util.List<NamedGraphType> findAll(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||