Class Generator.UnbundleInfo
java.lang.Object
de.uni_hildesheim.sse.easy.loader.Generator.UnbundleInfo
- Enclosing class:
Generator
Helper class for carrying unbundling information. To be used incrementally on each classpath URL.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate an instance for bundling (not unbundling).UnbundleInfo(File target) Crates an instance for unbundling totarget. -
Method Summary
Modifier and TypeMethodDescription(package private) booleanenabled()Returns whether this info is enabled (unbundling) or disabled (bundling).(package private) booleanexcludeFromJar(String path) Returns whether a certain path shall be excluded from a jar.(package private) StringgetName()Returns the target name.(package private) FileThe target as file including location (based on the folder given during initialization).(package private) booleanisBundle()Returns whether the denoted element is a bundle.(package private) booleanReturns whether the denoted element is an eclipse part.(package private) voidsetBundleInfo(BundleInfo bundle) Defines the bundle information.(package private) voidsetEclipsePart(boolean eclipsePart) Indicates that the denoted element belongs to eclipse (not to easy).(package private) voidSets the target name just as given.(package private) voidSets the target name from the name of theurl.
-
Field Details
-
target
-
name
-
eclipsePart
private boolean eclipsePart -
bundle
-
excludeFromJar
-
-
Constructor Details
-
UnbundleInfo
UnbundleInfo()Create an instance for bundling (not unbundling). -
UnbundleInfo
UnbundleInfo(File target) Crates an instance for unbundling totarget.- Parameters:
target- the target folder
-
-
Method Details
-
setName
Sets the target name just as given.- Parameters:
name- the target name
-
setName
Sets the target name from the name of theurl.- Parameters:
url- the url to take the name from
-
getName
String getName()Returns the target name.- Returns:
- the name
-
setBundleInfo
Defines the bundle information.- Parameters:
bundle- the bundle information
-
setEclipsePart
void setEclipsePart(boolean eclipsePart) Indicates that the denoted element belongs to eclipse (not to easy).- Parameters:
eclipsePart- whether it belongs to eclipse
-
getTarget
File getTarget()The target as file including location (based on the folder given during initialization).- Returns:
- the targer
-
isBundle
boolean isBundle()Returns whether the denoted element is a bundle.- Returns:
trueif it is a bundle,falseelse
-
isEclipsePart
boolean isEclipsePart()Returns whether the denoted element is an eclipse part.- Returns:
trueif it is an eclipse part,falseelse
-
enabled
boolean enabled()Returns whether this info is enabled (unbundling) or disabled (bundling).- Returns:
truefor unbundling,falsefor bundling
-
excludeFromJar
Returns whether a certain path shall be excluded from a jar.- Parameters:
path- the path- Returns:
trueif it shall be excluded,falseelse
-