public class Acc extends Namespace
See the Access Context specification for details:
https://archive.open-services.net/wiki/core/IndexableLinkedDataProvider-2.0/
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE_PREFIX |
static String |
NAMESPACE_URI |
static String |
PROPERTY_ACCESS_CONTEXT |
static String |
TYPE_ACCESS_CONTEXT |
static String |
TYPE_ACCESS_CONTEXT_LIST |
Modifier and Type | Method and Description |
---|---|
static URI |
getAccessContext(org.eclipse.lyo.oslc4j.core.model.IExtendedResource resource)
Returns the access context of the given resource, if any.
|
static Acc |
getInstance() |
static void |
setAccessContext(org.eclipse.lyo.oslc4j.core.model.IExtendedResource resource,
URI accessContext)
Sets the access context of a resource, stored using the
acc:accessContext property. |
public static final String NAMESPACE_URI
public static final String NAMESPACE_PREFIX
public static final String TYPE_ACCESS_CONTEXT
public static final String TYPE_ACCESS_CONTEXT_LIST
public static final String PROPERTY_ACCESS_CONTEXT
public static URI getAccessContext(org.eclipse.lyo.oslc4j.core.model.IExtendedResource resource)
resource
- the resource linked to an access context.null
if the acc:accessContext
property is not set.public static void setAccessContext(org.eclipse.lyo.oslc4j.core.model.IExtendedResource resource, URI accessContext)
acc:accessContext
property.resource
- the resource to link to an access context.accessContext
- the access context.public static Acc getInstance()