Package com.sodius.oslc.app.dng.model
Class Folder
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- com.sodius.oslc.app.dng.model.Folder
-
- All Implemented Interfaces:
IExtendedResource
,IResource
@OslcName("folder") @OslcNamespace("http://jazz.net/ns/rm/navigation#") @OslcResourceShape(title="Folder Resource Shape", describes="http://jazz.net/ns/rm/navigation#folder") public class Folder extends AbstractResource
Represents a DOORS Next Folder.
-
-
Constructor Summary
Constructors Constructor Description Folder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
URI
getParent()
Returns the folder owning this OSLC resource.URI
getServiceProvider()
URI
getSubfolders()
Returns the URI of a query that can be executed to obtain the list of subfolders.String
getTitle()
void
setDescription(String description)
void
setParent(URI parent)
void
setServiceProvider(URI serviceProvider)
void
setSubfolders(URI subfolders)
void
setTitle(String title)
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Method Detail
-
getTitle
@OslcDescription("Title (reference: Dublin Core) or often a single line summary of the resource represented as rich text in XHTML content.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDescription
@OslcDescription("Descriptive text (reference: Dublin Core) about resource represented as rich text in XHTML content.") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcTitle("Description") @OslcValueType(XMLLiteral) public String getDescription()
-
setDescription
public void setDescription(String description)
-
getParent
@OslcName("parent") @OslcPropertyDefinition("http://jazz.net/ns/rm/navigation#parent") @OslcValueType(Resource) public URI getParent()
Returns the folder owning this OSLC resource.- Returns:
- the folder owning this OSLC resource.
-
setParent
public void setParent(URI parent)
-
getSubfolders
@OslcPropertyDefinition("http://jazz.net/ns/rm/navigation#subfolders") public URI getSubfolders()
Returns the URI of a query that can be executed to obtain the list of subfolders.The list of subfolders can be queried with the following code:
Collection<Folder> subfolders = new GetResources<Folder>(client, parentFolder.getSubfolders(), JazzRmNavigation.EntityTypes.FOLDER).get();
- Returns:
- the URI of a query that can be executed to obtain the list of subfolders.
- See Also:
GetResources
-
setSubfolders
public void setSubfolders(URI subfolders)
-
getServiceProvider
@OslcDescription("The scope of a resource is a URI for the resource\'s OSLC Service Provider.") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcRange("http://open-services.net/ns/core#ServiceProvider") @OslcTitle("Service Provider") public URI getServiceProvider()
-
setServiceProvider
public void setServiceProvider(URI serviceProvider)
-
-