Class LinkAttribute
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.server.process.model.LinkAttribute
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("http://www.sodius.com/ns/process#")
@OslcResourceShape(title="Link Attribute Resource Shape",
describes="http://www.sodius.com/ns/process#LinkAttribute")
public class LinkAttribute
extends AbstractResource
A
LinksAppearance attribute.- Since:
- 3.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String property) Convenient method to add a property.Gets this attribute configuration comment.Gets the available decorators for this attribute.String[]Gets the OSLC properties' (local) names where values for this attribute can be found.getTitle()Gets the title of this attribute.Convenient method to create anicondecorator.voidsetComment(String comment) Sets this attribute configuration comment.voidsetDecorators(LinkDecorator[] decorators) Sets the available decorators for this attribute.voidsetProperties(String[] properties) Sets the OSLC properties' (local) names where values for this attribute can be found.voidSets the title of this attribute.Convenient method to create atagdecorator.Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
LinkAttribute
public LinkAttribute()
-
-
Method Details
-
getTitle
@OslcTitle("Title") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcDescription("The attribute title") public String getTitle()Gets the title of this attribute.- Returns:
- the title of this attribute.
-
setTitle
Sets the title of this attribute.- Parameters:
title- title of this attribute.
-
getComment
@OslcTitle("Comment") @OslcOccurs(ZeroOrOne) @OslcValueType(String) @OslcPropertyDefinition("http://www.w3.org/2000/01/rdf-schema#comment") @OslcDescription("A configuration comment") public String getComment()Gets this attribute configuration comment.- Returns:
- this attribute configuration comment.
-
setComment
Sets this attribute configuration comment.- Parameters:
comment- this attribute configuration comment.
-
getProperties
@OslcName("property") @OslcTitle("Property") @OslcOccurs(OneOrMany) @OslcValueType(String) @OslcRdfCollectionType(collectionType="Seq") @OslcPropertyDefinition("http://open-services.net/ns/core#property") @OslcDescription("The OSLC properties\' (local) names where values for this attribute can be found") public String[] getProperties()Gets the OSLC properties' (local) names where values for this attribute can be found.- Returns:
- this attribute source properties' names.
-
addProperty
Convenient method to add a property.- Parameters:
property- property to add.
-
setProperties
Sets the OSLC properties' (local) names where values for this attribute can be found.- Parameters:
properties- this attribute source properties' names.
-
getDecorators
@OslcTitle("Decorator") @OslcName("linkDecorator") @OslcOccurs(ZeroOrMany) @OslcValueType(LocalResource) @OslcRepresentation(Inline) @OslcRdfCollectionType(collectionType="Seq") @OslcPropertyDefinition("http://www.sodius.com/ns/process#linkDecorator") @OslcDescription("The available decorators for this attribute") public LinkDecorator[] getDecorators()Gets the available decorators for this attribute.- Returns:
- this attribute decorators.
-
tag
Convenient method to create atagdecorator.- Parameters:
identifier- the link's attribute value to decorate.source- the name/class of the tag to decorate the link.label- decorator label.- Returns:
- the created decorator.
-
icon
Convenient method to create anicondecorator.- Parameters:
identifier- the link's attribute value to decorate.source- the icon URI to decorate the link.label- decorator label.- Returns:
- the created decorator.
-
setDecorators
Sets the available decorators for this attribute.- Parameters:
decorators- this attribute decorators.
-