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

public abstract class AbstractResource extends Object implements IExtendedResource
  • Constructor Details

    • AbstractResource

      protected AbstractResource(URI about)
    • AbstractResource

      protected AbstractResource()
  • Method Details

    • getAbout

      public final URI getAbout()
      Specified by:
      getAbout in interface IResource
    • setAbout

      public final void setAbout(URI about)
      Specified by:
      setAbout in interface IResource
    • 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 interface IExtendedResource
      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 interface IExtendedResource
      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 the OslcResourceShape.describes() annotation.
      Specified by:
      getTypes in interface IExtendedResource
      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 the OslcResourceShape.describes() annotation.
      Specified by:
      setTypes in interface IExtendedResource
      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 the OslcResourceShape.describes() annotation.
      Specified by:
      addType in interface IExtendedResource
      Parameters:
      type - the type URI