Module org.update4j
Package org.update4j

Class AddPackage

Object
AddPackage

public class AddPackage
extends Object
This class is a simple POJO that represents "Add Exports" and "Add Opens" in the configuration file.
Author:
Mordechai Meisels
  • Constructor Summary

    Constructors 
    Constructor Description
    AddPackage​(String pkg, String mod)
    Constructs a new AddPackage with the given source package name to be added to the given target module.
  • Method Summary

    Modifier and Type Method Description
    String getPackageName()
    Returns the package name that is being added.
    String getTargetModule()
    Returns the target module name that the package is added to.

    Methods inherited from class Object

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

    • AddPackage

      public AddPackage​(String pkg, String mod)
      Constructs a new AddPackage with the given source package name to be added to the given target module.
      Throws:
      IllegalArgumentException - If either package name or target module name are either null or an empty string.
  • Method Details

    • getPackageName

      public String getPackageName()
      Returns the package name that is being added.
      Returns:
      The package name that is being added.
    • getTargetModule

      public String getTargetModule()
      Returns the target module name that the package is added to.
      Returns:
      The target module name that the package is added to.