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
ALinksAppearance
attribute.- Since:
- 3.3.0
-
-
Constructor Summary
Constructors Constructor Description LinkAttribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(String property)
Convenient method to add a property.String
getComment()
Gets this attribute configuration comment.LinkDecorator[]
getDecorators()
Gets the available decorators for this attribute.String[]
getProperties()
Gets the OSLC properties' (local) names where values for this attribute can be found.String
getTitle()
Gets the title of this attribute.LinkDecorator
icon(String identifier, URI source, String label)
Convenient method to create anicon
decorator.void
setComment(String comment)
Sets this attribute configuration comment.void
setDecorators(LinkDecorator[] decorators)
Sets the available decorators for this attribute.void
setProperties(String[] properties)
Sets the OSLC properties' (local) names where values for this attribute can be found.void
setTitle(String title)
Sets the title of this attribute.LinkDecorator
tag(String identifier, String source, String label)
Convenient method to create atag
decorator.-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Method Detail
-
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
public void setTitle(String title)
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
public void setComment(String comment)
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
public void addProperty(String property)
Convenient method to add a property.- Parameters:
property
- property to add.
-
setProperties
public void setProperties(String[] properties)
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
public LinkDecorator tag(String identifier, String source, String label)
Convenient method to create atag
decorator.- 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
public LinkDecorator icon(String identifier, URI source, String label)
Convenient method to create anicon
decorator.- 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
public void setDecorators(LinkDecorator[] decorators)
Sets the available decorators for this attribute.- Parameters:
decorators
- this attribute decorators.
-
-