Package org.apache.sling.feature
Class Prototype
java.lang.Object
org.apache.sling.feature.Prototype
- All Implemented Interfaces:
Serializable
,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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Get the list of artifacts removed from extensions The returned object is modifiable.Get the list of artifact removals The returned object is modifiable.List<org.osgi.resource.Capability>
Get the list of capability removals.Get the list of configuration removals The returned object is modifiable.Get the list of extension removals The returned object is modifiable.Get the list of framework property removals The returned object is modifiable.getId()
Get the id of the artifact.Get the list of requirement removals.int
hashCode()
toString()
-
Constructor Details
-
Prototype
Construct a new Include.- Parameters:
id
- The id of the feature.- Throws:
IllegalArgumentException
- If id isnull
.
-
-
Method Details
-
getId
Get the id of the artifact.- Returns:
- The id.
-
getConfigurationRemovals
Get the list of configuration removals The returned object is modifiable.- Returns:
- List of
PID
s.
-
getBundleRemovals
Get the list of artifact removals The returned object is modifiable.- Returns:
- List of artifact ids.
-
getFrameworkPropertiesRemovals
Get the list of framework property removals The returned object is modifiable.- Returns:
- List of property names
-
getExtensionRemovals
Get the list of extension removals The returned object is modifiable.- Returns:
- List of extension names
-
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
Get the list of requirement removals. The returned object is modifiable.- Returns:
- The list of requirements
- Since:
- 1.3
-
getCapabilityRemovals
Get the list of capability removals. The returned object is modifiable.- Returns:
- The list of capabilities
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Prototype>
-
hashCode
public int hashCode() -
equals
-
toString
-