|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IExtendedResource
A resource that can hold unknown properties and content. If a setter is not found for a property when reading a resource, it is added as an extended property. These extended properties are preserved when writing the resource back out, for instance on a PUT request. In OSLC, clients MUST preserve unknown content when performing updates of resources.
| Method Summary | |
|---|---|
void |
addType(URI type)
Adds an RDF type to this resource. |
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 |
setExtendedProperties(Map<QName,Object> properties)
Sets extended properties not defined in the bean. |
void |
setTypes(Collection<URI> types)
Sets the RDF types of this resource. |
| Methods inherited from interface org.eclipse.lyo.oslc4j.core.model.IResource |
|---|
getAbout, setAbout |
| Method Detail |
|---|
Collection<URI> getTypes()
OslcResourceShape.describes() annotation.
void setTypes(Collection<URI> types)
OslcResourceShape.describes() annotation.
types - the collection of typesvoid addType(URI type)
OslcResourceShape.describes() annotation.
type - the type URIvoid setExtendedProperties(Map<QName,Object> properties)
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.Map<QName,Object> getExtendedProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||