Class LinksAppearance.Builder
- java.lang.Object
-
- com.sodius.oslc.server.process.model.LinksAppearance.Builder
-
- Enclosing class:
- LinksAppearance
public static class LinksAppearance.Builder extends Object
TheLinksAppearance
builder class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinksAppearance.Builder
attribute(String title)
Creates a new attribute.LinksAppearance.Builder
attribute(String title, String comment)
Creates a new attribute.LinksAppearance
build()
Creates theLinksAppearance
instance.LinksAppearance.Builder
icon(String identifier, URI source, String label)
Adds anicon decorator
to the current attribute.LinksAppearance.Builder
property(String property)
Adds a property to the current attribute.LinksAppearance.Builder
tag(String identifier, String source, String label)
Adds atag decorator
to the current attribute.
-
-
-
Method Detail
-
property
public LinksAppearance.Builder property(String property)
Adds a property to the current attribute.- Parameters:
property
- the property to add.- Returns:
- this builder instance.
-
tag
public LinksAppearance.Builder tag(String identifier, String source, String label)
Adds atag decorator
to the current attribute.- Parameters:
identifier
- decorator's identifier.source
- the name/class of the tag to decorate the link.label
- decorator's label.- Returns:
- this builder instance.
-
icon
public LinksAppearance.Builder icon(String identifier, URI source, String label)
Adds anicon decorator
to the current attribute.- Parameters:
identifier
- decorator's identifier.source
- the icon URI to decorate the link.label
- decorator's label.- Returns:
- this builder instance.
-
attribute
public LinksAppearance.Builder attribute(String title, String comment)
Creates a new attribute.- Parameters:
title
- attribute's title.comment
- attribute's comment.- Returns:
- this builder instance.
-
attribute
public LinksAppearance.Builder attribute(String title)
Creates a new attribute.- Parameters:
title
- attribute's title.- Returns:
- this builder instance.
-
build
public LinksAppearance build()
Creates theLinksAppearance
instance.- Returns:
- the built instance.
-
-