|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.repository.model.ImmutableObjectModel
public abstract class ImmutableObjectModel
Outline of all "Object Model" classes - even the writable ones are a
subclass of this. Object Models are Java objects that represent an
instance or layer -- i.e. a body of properties on an instance -- in the
RDF database. They exist to cache the information and make it easier
to manipulate in Java. This class describes a common interface to
be implemented by all object models.
This is implemented as an abstract class instead of an interface for
several reasons:
1. implement and/or require static methods
2. allow subclasses to skip implementing irrelevant methods so long
as they never get called.
3. consistency with the WritableObjectModel class, which had to be
abstract since it includes its own common logic.
WritableObjectModel,
HasContentCache| Constructor Summary | |
|---|---|
ImmutableObjectModel()
|
|
| Method Summary | |
|---|---|
static ImmutableObjectModel |
find(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI subject)
Get an instance of the object model whose subject is the given URI. |
static java.util.List<? extends ImmutableObjectModel> |
findAll(javax.servlet.http.HttpServletRequest request)
Gets List of object models for _all_ instances of the class found in the repository. |
abstract java.lang.String |
getLabel()
Get a human-readable text string appropriate to label this instance in e.g. |
abstract org.openrdf.model.URI |
getURI()
Get the subject URI taht created this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableObjectModel()
| Method Detail |
|---|
public static ImmutableObjectModel find(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI subject)
throws javax.servlet.ServletException
request - the HTTP request object from the servletsubject - URI of hte subject of the RDF object or layer
javax.servlet.ServletException
public static java.util.List<? extends ImmutableObjectModel> findAll(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - the HTTP request object from the servlet
javax.servlet.ServletExceptionpublic abstract org.openrdf.model.URI getURI()
public abstract java.lang.String getLabel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||