java.lang.Object
de.uni_hildesheim.sse.easy.loader.framework.Feature

public class Feature extends Object
Represents a feature.
Author:
Patu
  • Field Details

  • Constructor Details

    • Feature

      public Feature(File file)
      Constructor.
      Parameters:
      file - The file of the underlying feature.
  • Method Details

    • initialize

      private void initialize()
      Initializes the feature by parsing it.
    • load

      private void load(File file)
      Loads and builds the jdom-tree.
      Parameters:
      file - the file that is to be parsed.
    • build

      private void build(Node node)
      Gathers necessary information from the feature-file.
      Parameters:
      node - The node to build from.
    • main

      public static void main(String[] args)
      Simple test.
      Parameters:
      args - stuff.
    • getDependencies

      public Map<String,EasyDependency> getDependencies()
      Returns the dependencies aka plugins needed.
      Returns:
      A map with the dependencies.
    • getRequirements

      public List<EasyDependency> getRequirements()
      Returns the requirements aka features needed.
      Returns:
      A list with all requirements.
    • getId

      public String getId()
      Returns the id of the feature.
      Returns:
      The Id of the feature.
    • toString

      public String toString()
      Overrides:
      toString in class Object