public abstract class AbstractResource extends Object implements IExtendedResource
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractResource() |
protected |
AbstractResource(URI about) |
| Modifier and Type | Method and Description |
|---|---|
void |
addType(URI type)
Adds an RDF type to this resource.
|
URI |
getAbout() |
Map<QName,Object> |
getExtendedProperties()
Gets back the list of extended properties not defined in this bean.
|
Collection<URI> |
getTypes()
Gets the RDF types of this resource.
|
void |
setAbout(URI about) |
void |
setExtendedProperties(Map<QName,Object> properties)
Sets extended properties not defined in the bean.
|
void |
setTypes(Collection<URI> type)
Sets the RDF types of this resource.
|
protected AbstractResource(URI about)
protected AbstractResource()
public void setExtendedProperties(Map<QName,Object> properties)
IExtendedResourcesetExtendedProperties in interface IExtendedResourceproperties - a map of properties where the key is the predicate qualified
name and the value is the object of the statement. Values are
collections if there are multiple statements for a predicate.public Map<QName,Object> getExtendedProperties()
IExtendedResourcegetExtendedProperties in interface IExtendedResourcepublic Collection<URI> getTypes()
IExtendedResourceOslcResourceShape.describes() annotation.getTypes in interface IExtendedResourcepublic void setTypes(Collection<URI> type)
IExtendedResourceOslcResourceShape.describes() annotation.setTypes in interface IExtendedResourcetype - the collection of typespublic void addType(URI type)
IExtendedResourceOslcResourceShape.describes() annotation.addType in interface IExtendedResourcetype - the type URICopyright © 2016. All rights reserved.