Package org.apache.sling.feature
Class Prototype
- java.lang.Object
-
- org.apache.sling.feature.Prototype
-
- All Implemented Interfaces:
Comparable<Prototype>
public class Prototype extends Object implements Comparable<Prototype>
A prototype is a blueprint of a feature with optional removals of- Configurations / configuration properties
- Bundles
- Framework properties
- Extensions or artifacts from extensions
- Capabilities
- Requirements
-
-
Constructor Summary
Constructors Constructor Description Prototype(ArtifactId id)Construct a new Include.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Prototype o)booleanequals(Object obj)Map<String,List<ArtifactId>>getArtifactExtensionRemovals()Get the list of artifacts removed from extensions The returned object is modifiable.List<ArtifactId>getBundleRemovals()Get the list of artifact removals The returned object is modifiable.List<org.osgi.resource.Capability>getCapabilityRemovals()Get the list of capability removals.List<String>getConfigurationRemovals()Get the list of configuration removals The returned object is modifiable.List<String>getExtensionRemovals()Get the list of extension removals The returned object is modifiable.List<String>getFrameworkPropertiesRemovals()Get the list of framework property removals The returned object is modifiable.ArtifactIdgetId()Get the id of the artifact.List<MatchingRequirement>getRequirementRemovals()Get the list of requirement removals.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Prototype
public Prototype(ArtifactId id)
Construct a new Include.- Parameters:
id- The id of the feature.- Throws:
IllegalArgumentException- If id isnull.
-
-
Method Detail
-
getId
public ArtifactId getId()
Get the id of the artifact.- Returns:
- The id.
-
getConfigurationRemovals
public List<String> getConfigurationRemovals()
Get the list of configuration removals The returned object is modifiable.- Returns:
- List of
PIDs.
-
getBundleRemovals
public List<ArtifactId> getBundleRemovals()
Get the list of artifact removals The returned object is modifiable.- Returns:
- List of artifact ids.
-
getFrameworkPropertiesRemovals
public List<String> getFrameworkPropertiesRemovals()
Get the list of framework property removals The returned object is modifiable.- Returns:
- List of property names
-
getExtensionRemovals
public List<String> getExtensionRemovals()
Get the list of extension removals The returned object is modifiable.- Returns:
- List of extension names
-
getArtifactExtensionRemovals
public Map<String,List<ArtifactId>> getArtifactExtensionRemovals()
Get the list of artifacts removed from extensions The returned object is modifiable.- Returns:
- Map where the extension name is the key, and the value is a list of artifact ids
-
getRequirementRemovals
public List<MatchingRequirement> getRequirementRemovals()
Get the list of requirement removals. The returned object is modifiable.- Returns:
- The list of requirements
- Since:
- 1.3
-
getCapabilityRemovals
public List<org.osgi.resource.Capability> getCapabilityRemovals()
Get the list of capability removals. The returned object is modifiable.- Returns:
- The list of capabilities
-
compareTo
public int compareTo(Prototype o)
- Specified by:
compareToin interfaceComparable<Prototype>
-
-