Class AbstractResource
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- All Implemented Interfaces:
IExtendedResource
,IResource
- Direct Known Subclasses:
AbstractChangeLog
,Agent
,AllowedValues
,AnyResource
,ArchitectureLinkType
,ArchitectureResource
,AutomationPlan
,AutomationPlan
,AutomationRequest
,AutomationRequest
,AutomationResult
,AutomationResult
,Base
,ChangeEvent
,ChangeRequest
,ChangeRequest
,ChangeSet
,Compact
,CreationFactory
,Dialog
,Discussion
,FilteredResource
,LinkType
,OAuthConfiguration
,Page
,ParameterInstance
,ParameterInstance
,Person
,PrefixDefinition
,Preview
,Priority
,Property
,Property
,Property
,Publisher
,QmResource
,QueryCapability
,RdfsClass
,Requirement
,Requirement
,RequirementCollection
,Resource
,ResourceShape
,Service
,ServiceProvider
,ServiceProviderCatalog
,Shape
,State
,TestCase
,TestExecutionRecord
,TestPlan
,TestResult
,TestScript
,TrackedResourceSet
,ValidationReport
,ValidationResult
,VersionResource
public abstract class AbstractResource extends Object implements IExtendedResource
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractResource()
protected
AbstractResource(URI about)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
AbstractResource
protected AbstractResource(URI about)
-
AbstractResource
protected AbstractResource()
-
-
Method Detail
-
setExtendedProperties
public void setExtendedProperties(Map<QName,Object> properties)
Description copied from interface:IExtendedResource
Sets extended properties not defined in the bean.- Specified by:
setExtendedProperties
in interfaceIExtendedResource
- Parameters:
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.
-
getExtendedProperties
public Map<QName,Object> getExtendedProperties()
Description copied from interface:IExtendedResource
Gets back the list of extended properties not defined in this bean.- Specified by:
getExtendedProperties
in interfaceIExtendedResource
- Returns:
- the extended properties, a map of properties where the key is the predicate qualified name and the value is the object of the statement
-
getTypes
public Collection<URI> getTypes()
Description copied from interface:IExtendedResource
Gets the RDF types of this resource. These types will be added to the serialization of the resource in addition to theOslcResourceShape.describes()
annotation.- Specified by:
getTypes
in interfaceIExtendedResource
- Returns:
- the collection of types
-
setTypes
public void setTypes(Collection<URI> type)
Description copied from interface:IExtendedResource
Sets the RDF types of this resource. These types will be added to the serialization of the resource in addition to theOslcResourceShape.describes()
annotation.- Specified by:
setTypes
in interfaceIExtendedResource
- Parameters:
type
- the collection of types
-
addType
public void addType(URI type)
Description copied from interface:IExtendedResource
Adds an RDF type to this resource. These types will be added to the serialization of the resource in addition to theOslcResourceShape.describes()
annotation.- Specified by:
addType
in interfaceIExtendedResource
- Parameters:
type
- the type URI
-
-