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, 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

public interface IExtendedResource extends IResource
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 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 the OslcResourceShape.describes() annotation.
      Returns:
      the collection of types
    • setTypes

      void setTypes(Collection<URI> types)
      Sets the RDF types of this resource. These types will be added to the serialization of the resource in addition to the OslcResourceShape.describes() annotation.
      Parameters:
      types - the collection of types
    • addType

      void addType(URI type)
      Adds an RDF type to this resource. These types will be added to the serialization of the resource in addition to the OslcResourceShape.describes() annotation.
      Parameters:
      type - the type URI
    • setExtendedProperties

      void setExtendedProperties(Map<QName,Object> properties)
      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

      Map<QName,Object> 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