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,Error,ExtendedError,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 TypeMethodDescriptionvoidAdds an RDF type to this resource.final URIgetAbout()Gets back the list of extended properties not defined in this bean.getTypes()Gets the RDF types of this resource.final voidvoidsetExtended(QName name, Object value) Sets an extended property on the same field.voidsetExtendedProperties(Map<QName, Object> properties) Sets extended properties not defined in the bean.voidsetTypes(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:IExtendedResourceSets extended properties not defined in the bean.- Specified by:
setExtendedPropertiesin 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:IExtendedResourceGets back the list of extended properties not defined in this bean.- Specified by:
getExtendedPropertiesin 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:IExtendedResourceGets 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:
getTypesin interfaceIExtendedResource- Returns:
- the collection of types
-
setTypes
Description copied from interface:IExtendedResourceSets 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:
setTypesin interfaceIExtendedResource- Parameters:
type- the collection of types
-
addType
Description copied from interface:IExtendedResourceAdds 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:
addTypein interfaceIExtendedResource- Parameters:
type- the type URI
-
setExtended
Sets an extended property on the same field. Will overwrite any existing value.
-