Top Description Inners Methods
org.osgi.service.feature

public Interface FeatureExtension

Annotations
@ProviderType
Imports
java.util.List, org.osgi.annotation.versioning.ProviderType

A Feature Model Extension. Extensions can contain either Text, JSON or a list of Artifacts.

Extensions are of one of the following kinds:

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
FeatureExtension.Kind

The kind of extension: optional, mandatory or transient.

public static enum
FeatureExtension.Type

The type of extension

Method Summary

Modifier and TypeMethod and Description
public List<FeatureArtifact>

Returns:

The Artifacts. The returned list is unmodifiable.
getArtifacts
()

Get the Artifacts from this extension.

public String

Returns:

The JSON.
getJSON
()

Get the JSON from this extension.

public FeatureExtension.Kind

Returns:

The kind.
getKind
()

Get the extension kind.

public String

Returns:

The name.
getName
()

Get the extension name.

public List<String>

Returns:

The lines of text. The returned list is unmodifiable.
getText
()

Get the Text from this extension.

public FeatureExtension.Type

Returns:

The type.
getType
()

Get the extension type.

Method Detail

getArtifactsback to summary
public List<FeatureArtifact> getArtifacts()

Get the Artifacts from this extension.

Returns:List<FeatureArtifact>

The Artifacts. The returned list is unmodifiable.

Exceptions
IllegalStateException:
If called on an extension which is not of type ARTIFACTS.
getJSONback to summary
public String getJSON()

Get the JSON from this extension.

Returns:String

The JSON.

Exceptions
IllegalStateException:
If called on an extension which is not of type JSON.
getKindback to summary
public FeatureExtension.Kind getKind()

Get the extension kind.

Returns:FeatureExtension.Kind

The kind.

getNameback to summary
public String getName()

Get the extension name.

Returns:String

The name.

getTextback to summary
public List<String> getText()

Get the Text from this extension.

Returns:List<String>

The lines of text. The returned list is unmodifiable.

Exceptions
IllegalStateException:
If called on an extension which is not of type TEXT.
getTypeback to summary
public FeatureExtension.Type getType()

Get the extension type.

Returns:FeatureExtension.Type

The type.

org.osgi.service.feature back to summary

public final Enum FeatureExtension.Kind

extends Enum<FeatureExtension.Kind>
Class Inheritance

The kind of extension: optional, mandatory or transient.

Field Summary

Modifier and TypeField and Description
public static final FeatureExtension.Kind
MANDATORY

A mandatory extension must be processed.

public static final FeatureExtension.Kind
OPTIONAL

An optional extension can be ignored if no processor is found.

public static final FeatureExtension.Kind
TRANSIENT

A transient extension contains computed information which can be used as a cache to speed up operation.

Constructor Summary

AccessConstructor and Description
private
Kind()

Method Summary

Modifier and TypeMethod and Description
public static FeatureExtension.Kind
public static FeatureExtension.Kind[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

MANDATORYback to summary
public static final FeatureExtension.Kind MANDATORY

A mandatory extension must be processed.

OPTIONALback to summary
public static final FeatureExtension.Kind OPTIONAL

An optional extension can be ignored if no processor is found.

TRANSIENTback to summary
public static final FeatureExtension.Kind TRANSIENT

A transient extension contains computed information which can be used as a cache to speed up operation.

Constructor Detail

Kindback to summary
private Kind()

Method Detail

valueOfback to summary
public static FeatureExtension.Kind valueOf(String name)
valuesback to summary
public static FeatureExtension.Kind[] values()
org.osgi.service.feature back to summary

public final Enum FeatureExtension.Type

extends Enum<FeatureExtension.Type>
Class Inheritance

The type of extension

Field Summary

Modifier and TypeField and Description
public static final FeatureExtension.Type
ARTIFACTS

An extension that is a list of artifact identifiers.

public static final FeatureExtension.Type
JSON

A JSON extension.

public static final FeatureExtension.Type
TEXT

A plain text extension.

Constructor Summary

AccessConstructor and Description
private
Type()

Method Summary

Modifier and TypeMethod and Description
public static FeatureExtension.Type
public static FeatureExtension.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ARTIFACTSback to summary
public static final FeatureExtension.Type ARTIFACTS

An extension that is a list of artifact identifiers.

JSONback to summary
public static final FeatureExtension.Type JSON

A JSON extension.

TEXTback to summary
public static final FeatureExtension.Type TEXT

A plain text extension.

Constructor Detail

Typeback to summary
private Type()

Method Detail

valueOfback to summary
public static FeatureExtension.Type valueOf(String name)
valuesback to summary
public static FeatureExtension.Type[] values()