Class EasyDependency
java.lang.Object
de.uni_hildesheim.sse.easy.loader.framework.EasyDependency
Contains dependency information for a bundle.
- Author:
- Patrik Pastuschek
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter returns true if mandatory.Getter returns true if mandatory.Getter returns true if mandatory.booleanGetter returns true if mandatory.static String[]Splits a range into two strings.Getter for the required bundles.Getter returns true if mandatory.Getter returns true if mandatory.Getter returns true if mandatory.static voidMain test method.voidmergeVersions(EasyDependency other) Merges two dependencies if possible.voidSets a max version for the bundle.voidSets a min version for the bundle.voidSets the name of the dependency.
-
Field Details
-
isMandatory
private boolean isMandatory -
versionMin
-
versionMax
-
specificationVersion
-
bundleSymbolicName
-
bundleVersionMin
-
bundleVersionMax
-
reqBundles
-
-
Constructor Details
-
EasyDependency
public EasyDependency()Standard Constructor. Creates an empty dependency. -
EasyDependency
Constructor. Creates a dependency.- Parameters:
info- String with dependency infos that are to be parsed.
-
-
Method Details
-
getMandatory
public boolean getMandatory()Getter returns true if mandatory.- Returns:
- true if mandatory
-
getVersionMin
Getter returns true if mandatory.- Returns:
- true if mandatory
-
getVersionMax
Getter returns true if mandatory.- Returns:
- true if mandatory
-
getSpecVersion
Getter returns true if mandatory.- Returns:
- true if mandatory
-
getBundleVersionMin
Getter returns true if mandatory.- Returns:
- true if mandatory
-
getBundleVersionMax
Getter returns true if mandatory.- Returns:
- true if mandatory
-
getBundleSymbolicName
Getter returns true if mandatory.- Returns:
- true if mandatory
-
getRequiredBundles
Getter for the required bundles.- Returns:
- A List of Strings.
-
main
Main test method.- Parameters:
args- main standard.
-
getRange
Splits a range into two strings.- Parameters:
range- The unsplit string.- Returns:
- Array of split strings.
-
setBundleVersionMin
Sets a min version for the bundle.- Parameters:
min- minimal Version
-
setBundleVersionMax
Sets a max version for the bundle.- Parameters:
max- maximal Version
-
mergeVersions
Merges two dependencies if possible.- Parameters:
other- The second dependency to merge with.
-
setName
Sets the name of the dependency.- Parameters:
name- The name as String.
-