Class Feature
java.lang.Object
de.uni_hildesheim.sse.easy.loader.framework.Feature
Represents a feature.
- Author:
- Patu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Documentprivate DocumentBuilderFactoryprivate Fileprivate Stringprivate Map<String, EasyDependency> private List<EasyDependency> private Version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidGathers necessary information from the feature-file.Returns the dependencies aka plugins needed.getId()Returns the id of the feature.Returns the requirements aka features needed.private voidInitializes the feature by parsing it.private voidLoads and builds the jdom-tree.static voidSimple test.toString()
-
Field Details
-
factory
-
doc
-
file
-
id
-
version
-
plugins
-
requiredFeatures
-
-
Constructor Details
-
Feature
Constructor.- Parameters:
file- The file of the underlying feature.
-
-
Method Details
-
initialize
private void initialize()Initializes the feature by parsing it. -
load
Loads and builds the jdom-tree.- Parameters:
file- the file that is to be parsed.
-
build
Gathers necessary information from the feature-file.- Parameters:
node- The node to build from.
-
main
Simple test.- Parameters:
args- stuff.
-
getDependencies
Returns the dependencies aka plugins needed.- Returns:
- A map with the dependencies.
-
getRequirements
Returns the requirements aka features needed.- Returns:
- A list with all requirements.
-
getId
Returns the id of the feature.- Returns:
- The Id of the feature.
-
toString
-