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)
IExtendedResource
setExtendedProperties
in interface IExtendedResource
properties
- 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()
IExtendedResource
getExtendedProperties
in interface IExtendedResource
public Collection<URI> getTypes()
IExtendedResource
OslcResourceShape.describes()
annotation.getTypes
in interface IExtendedResource
public void setTypes(Collection<URI> type)
IExtendedResource
OslcResourceShape.describes()
annotation.setTypes
in interface IExtendedResource
type
- the collection of typespublic void addType(URI type)
IExtendedResource
OslcResourceShape.describes()
annotation.addType
in interface IExtendedResource
type
- the type URICopyright © 2017. All rights reserved.