Class Generator.UnbundleInfo

java.lang.Object
de.uni_hildesheim.sse.easy.loader.Generator.UnbundleInfo
Enclosing class:
Generator

private class Generator.UnbundleInfo extends Object
Helper class for carrying unbundling information. To be used incrementally on each classpath URL.
Author:
Holger Eichelberger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private BundleInfo
     
    private boolean
     
    private Set<String>
     
    private String
     
    private File
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create an instance for bundling (not unbundling).
    Crates an instance for unbundling to target.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) boolean
    Returns whether this info is enabled (unbundling) or disabled (bundling).
    (package private) boolean
    Returns whether a certain path shall be excluded from a jar.
    (package private) String
    Returns the target name.
    (package private) File
    The target as file including location (based on the folder given during initialization).
    (package private) boolean
    Returns whether the denoted element is a bundle.
    (package private) boolean
    Returns whether the denoted element is an eclipse part.
    (package private) void
    Defines the bundle information.
    (package private) void
    setEclipsePart(boolean eclipsePart)
    Indicates that the denoted element belongs to eclipse (not to easy).
    (package private) void
    Sets the target name just as given.
    (package private) void
    setName(URL url)
    Sets the target name from the name of the url.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • target

      private File target
    • name

      private String name
    • eclipsePart

      private boolean eclipsePart
    • bundle

      private BundleInfo bundle
    • excludeFromJar

      private Set<String> excludeFromJar
  • Constructor Details

    • UnbundleInfo

      UnbundleInfo()
      Create an instance for bundling (not unbundling).
    • UnbundleInfo

      UnbundleInfo(File target)
      Crates an instance for unbundling to target.
      Parameters:
      target - the target folder
  • Method Details

    • setName

      void setName(String name)
      Sets the target name just as given.
      Parameters:
      name - the target name
    • setName

      void setName(URL url)
      Sets the target name from the name of the url.
      Parameters:
      url - the url to take the name from
    • getName

      String getName()
      Returns the target name.
      Returns:
      the name
    • setBundleInfo

      void setBundleInfo(BundleInfo bundle)
      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:
      true if it is a bundle, false else
    • isEclipsePart

      boolean isEclipsePart()
      Returns whether the denoted element is an eclipse part.
      Returns:
      true if it is an eclipse part, false else
    • enabled

      boolean enabled()
      Returns whether this info is enabled (unbundling) or disabled (bundling).
      Returns:
      true for unbundling, false for bundling
    • excludeFromJar

      boolean excludeFromJar(String path)
      Returns whether a certain path shall be excluded from a jar.
      Parameters:
      path - the path
      Returns:
      true if it shall be excluded, false else