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
,Compact
,Component
,ConceptResource
,Configuration
,Contribution
,CreationFactory
,Dialog
,Discussion
,FilteredResource
,Issue
,LinkType
,ManagedItem
,ManagedItemCollection
,Measure
,Measurement
,OAuthConfiguration
,Page
,ParameterInstance
,ParameterInstance
,Person
,PrefixDefinition
,Preview
,Priority
,Project
,Property
,Property
,Property
,Publisher
,QmResource
,QueryCapability
,RdfsClass
,Requirement
,Requirement
,RequirementCollection
,Resource
,ResourceShape
,Risk
,Selections
,Service
,ServiceProvider
,ServiceProviderCatalog
,Shape
,State
,TestCase
,TestExecutionRecord
,TestPlan
,TestResult
,TestScript
,TrackedResourceSet
,ValidationReport
,ValidationResult
,VersionResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an RDF type to this resource.final URI
getAbout()
Gets back the list of extended properties not defined in this bean.getTypes()
Gets the RDF types of this resource.final void
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 Details
-
AbstractResource
-
AbstractResource
protected AbstractResource()
-
-
Method Details
-
getAbout
-
setAbout
-
setExtendedProperties
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
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
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
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
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
-