Top Description Methods
org.osgi.service.feature

public Interface FeatureExtensionBuilder

Annotations
@ProviderType
Imports
org.osgi.annotation.versioning.ProviderType

A builder for Feature Model FeatureExtension objects.

Method Summary

Modifier and TypeMethod and Description
public FeatureExtensionBuilder

Returns:

This builder.
addArtifact
(FeatureArtifact
The artifact to add.
artifact
)

Add an Artifact to the extension.

public FeatureExtensionBuilder

Returns:

This builder.
addText
(String
The text to be added.
text
)

Add a line of text to the extension.

public FeatureExtension

Returns:

The Extension.
build
()

Build the Extension.

public FeatureExtensionBuilder

Returns:

This builder.
setJSON
(String
The JSON to be added.
json
)

Add JSON in String form to the extension.

Method Detail

addArtifactback to summary
public FeatureExtensionBuilder addArtifact(FeatureArtifact artifact)

Add an Artifact to the extension. Can only be called for extensions of type FeatureExtension.Type#ARTIFACTS.

Parameters
artifact:FeatureArtifact

The artifact to add.

Returns:FeatureExtensionBuilder

This builder.

addTextback to summary
public FeatureExtensionBuilder addText(String text)

Add a line of text to the extension. Can only be called for extensions of type FeatureExtension.Type#TEXT.

Parameters
text:String

The text to be added.

Returns:FeatureExtensionBuilder

This builder.

buildback to summary
public FeatureExtension build()

Build the Extension. Can only be called once on a builder. After calling this method the current builder instance cannot be used any more.

Returns:FeatureExtension

The Extension.

setJSONback to summary
public FeatureExtensionBuilder setJSON(String json)

Add JSON in String form to the extension. Can only be called for extensions of type FeatureExtension.Type#JSON.

Parameters
json:String

The JSON to be added.

Returns:FeatureExtensionBuilder

This builder.