Class AssociationType
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- com.sodius.oslc.server.process.model.AssociationType
-
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("http://www.sodius.com/ns/process#") @OslcResourceShape(title="Association Type Resource Shape", describes="http://www.sodius.com/ns/process#AssociationType") public class AssociationType extends AbstractResource
Describes a type ofProjectAreaAssociation.An association type gives access to a set of
LinkTypes between 2 projects.Here is a link listing existing OSLC association types:
- Jazz wiki: https://jazz.net/wiki/bin/view/Main/CALM2010LinkTypes
The set of supported association types can be restricted to a subset using a
ProcessScopeinstance, that all methods returning association types in this class will use.- Since:
- 1.3.0
- See Also:
ProcessScope
-
-
Constructor Summary
Constructors Constructor Description AssociationType()AssociationType(AssociationType associationType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<AssociationType>forDomains(URI localDomain, URI friendDomain)Returns the supported association types between the 2 given domains.static AssociationTypeforIdentifier(String identifier)Returns the association type for the given identifier.static Collection<AssociationType>getAssociationTypes()Returns all supported association types.StringgetDirection()StringgetIdentifier()DomaingetSourceDomain()Gets the source domain of the association.DomaingetTargetDomain()Gets the target domain of the association.StringgetTitle()voidsetDirection(String direction)voidsetIdentifier(String identifier)voidsetSourceDomain(Domain sourceDomain)Sets the source domain of the association.voidsetTargetDomain(Domain targetDomain)Sets the target domain of the association.voidsetTitle(String title)-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
AssociationType
public AssociationType()
-
AssociationType
public AssociationType(AssociationType associationType)
-
-
Method Detail
-
getAssociationTypes
public static Collection<AssociationType> getAssociationTypes() throws LinkingTypesStoreException
Returns all supported association types.- Returns:
- all supported association types.
- Throws:
LinkingTypesStoreException- if an error prevents link types from being retrieved - added in 3.13.0.- Since:
- 3.13.0
-
forDomains
public static Collection<AssociationType> forDomains(URI localDomain, URI friendDomain) throws LinkingTypesStoreException
Returns the supported association types between the 2 given domains.- Parameters:
localDomain- the domain of the local projectfriendDomain- the domain of the friend's project- Returns:
- the supported association types
- Throws:
LinkingTypesStoreException- if an error prevents link types from being retrieved - added in 3.13.0.- Since:
- 3.13.0
-
forIdentifier
public static AssociationType forIdentifier(String identifier) throws LinkingTypesStoreException
Returns the association type for the given identifier.- Parameters:
identifier- the association type identifier- Returns:
- the association type
- Throws:
LinkingTypesStoreException- if an error prevents link types from being retrieved - added in 3.13.0.IllegalArgumentException- if the given identifier is not a supported association type- Since:
- 3.13.0
-
getIdentifier
@OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcName("identifier") public String getIdentifier()
-
setIdentifier
public void setIdentifier(String identifier)
-
getTitle
@OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcValueType(XMLLiteral) @OslcName("title") public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDirection
@OslcPropertyDefinition("http://www.sodius.com/ns/process#associationDirection") @OslcName("associationDirection") public String getDirection()
-
setDirection
public void setDirection(String direction)
-
getSourceDomain
@OslcPropertyDefinition("http://www.sodius.com/ns/process#sourceDomain") @OslcName("sourceDomain") @OslcRepresentation(Inline) @OslcValueType(LocalResource) public Domain getSourceDomain()
Gets the source domain of the association.- Returns:
- the domain - updated to the full domain (with title and abbreviated title) in 3.13.0
- Since:
- 3.13.0
-
setSourceDomain
public void setSourceDomain(Domain sourceDomain)
Sets the source domain of the association.- Parameters:
sourceDomain- the domain - updated to the full domain (with title and abbreviated title) in 3.13.0- Since:
- 3.13.0
-
getTargetDomain
@OslcPropertyDefinition("http://www.sodius.com/ns/process#targetDomain") @OslcName("targetDomain") @OslcRepresentation(Inline) @OslcValueType(LocalResource) public Domain getTargetDomain()
Gets the target domain of the association.- Returns:
- the domain - updated to the full domain (with title and abbreviated title) in 3.13.0
- Since:
- 3.13.0
-
setTargetDomain
public void setTargetDomain(Domain targetDomain)
Sets the target domain of the association.- Parameters:
targetDomain- the domain - updated to the full domain (with title and abbreviated title) in 3.13.0- Since:
- 3.13.0
-
-