Interface IExtendedResource
- All Superinterfaces:
IResource
- All Known Implementing Classes:
AbstractChangeLog,AbstractResource,Agent,AllowedValues,AnyResource,ArchitectureLinkType,ArchitectureResource,Artifact,AutomationPlan,AutomationPlan,AutomationRequest,AutomationRequest,AutomationResult,AutomationResult,Base,Baseline,ChangeEvent,ChangeLog,ChangeNotice,ChangeRequest,ChangeRequest,ChangeSet,Compact,Component,ConceptResource,Configuration,Contribution,Creation,CreationFactory,Defect,Deletion,Dialog,Discussion,EmptyChangeLog,Enhancement,Error,ExtendedError,FilteredResource,Issue,IssueCollection,LinkType,ManagedItem,ManagedItemCollection,Measure,Measurement,Modification,OAuthConfiguration,Page,ParameterInstance,ParameterInstance,Person,Plan,PrefixDefinition,Preview,Priority,Project,Property,Property,Property,Publisher,QmResource,QueryCapability,RdfsClass,Report,Requirement,Requirement,RequirementCollection,RequirementCollection,Resource,ResourceShape,ResponseInfo,ResponseInfoArray,ResponseInfoCollection,ReviewTask,Risk,RiskCollection,ScopeItem,Selections,Service,ServiceProvider,ServiceProviderCatalog,Shape,State,Stream,Task,TestCase,TestCase,TestExecutionRecord,TestExecutionRecord,TestPlan,TestPlan,TestResult,TestResult,TestScript,TestScript,TrackedResourceSet,ValidationReport,ValidationResult,VersionResource,WorkItem
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an RDF type to this resource.Gets back the list of extended properties not defined in this bean.getTypes()Gets the RDF types of this resource.voidsetExtendedProperties(Map<QName, Object> properties) Sets extended properties not defined in the bean.voidsetTypes(Collection<URI> types) Sets the RDF types of this resource.
-
Method Details
-
getTypes
Collection<URI> getTypes()Gets the RDF types of this resource. These types will be added to the serialization of the resource in addition to theOslcResourceShape.describes()annotation.- Returns:
- the collection of types
-
setTypes
Sets the RDF types of this resource. These types will be added to the serialization of the resource in addition to theOslcResourceShape.describes()annotation.- Parameters:
types- the collection of types
-
addType
Adds an RDF type to this resource. These types will be added to the serialization of the resource in addition to theOslcResourceShape.describes()annotation.- Parameters:
type- the type URI
-
setExtendedProperties
Sets extended properties not defined in the bean.- 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
Gets back the list of extended properties not defined in this bean.- 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
-