|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.application.modelling.internal.PackageRequirementMerger
public final class PackageRequirementMerger
A class to merge collections of package requirements, such that multiple requirements for the same package are consolidated to a single requirement with a version constraint that is the intersection of the original version requirements.
Constructor Summary | |
---|---|
PackageRequirementMerger(Collection<org.apache.aries.application.modelling.ImportedPackage> requirements)
Constructor. |
Method Summary | |
---|---|
Set<String> |
getInvalidRequirements()
Get the names of packages that caused the merge to fail due to their constraints being mutually exclusive. |
Collection<org.apache.aries.application.modelling.ImportedPackage> |
getMergedRequirements()
Get the merged package requirements. |
boolean |
isMergeSuccessful()
Check if the requirements could be successfully merged. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PackageRequirementMerger(Collection<org.apache.aries.application.modelling.ImportedPackage> requirements)
requirements
- the package requirements to be merged.
NullPointerException
- if the parameter is null
.Method Detail |
---|
public boolean isMergeSuccessful()
public Collection<org.apache.aries.application.modelling.ImportedPackage> getMergedRequirements()
The isMergeSuccessful
method should be checked for success prior to calling this method.
inputRequirements
-
null
if the input contained incompatible requirements.
IllegalStateException
- if the merge was not successful.public Set<String> getInvalidRequirements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |