Class PackageFolder


  • public class PackageFolder
    extends java.lang.Object
    Package transfer object which contains the URI of the package folder and the package name
    • Constructor Summary

      Constructors 
      Constructor Description
      PackageFolder​(java.net.URI location, java.lang.String packageName)
      Creates a new transfer object for a package
      PackageFolder​(java.net.URI location, java.lang.String packageName, java.lang.ClassLoader classLoader)
      Creates a new transfer object for a package with a ClassLoader for type resolution while parsing its children.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader getClassLoader()
      Returns the field 'classLoader'
      java.net.URI getLocation()
      Returns the folder location URI of the package
      java.lang.String getPackageName()
      Returns the package's name
      void setClassLoader​(java.lang.ClassLoader classLoader)
      Sets the class loader for type resolving while parsing children
      void setLocation​(java.net.URI location)
      Sets the location of the package (last package element)
      void setPackageName​(java.lang.String packageName)
      Sets the package's name
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PackageFolder

        public PackageFolder​(java.net.URI location,
                             java.lang.String packageName)
        Creates a new transfer object for a package
        Parameters:
        location - URI to the package folder
        packageName - package name
      • PackageFolder

        public PackageFolder​(java.net.URI location,
                             java.lang.String packageName,
                             java.lang.ClassLoader classLoader)
        Creates a new transfer object for a package with a ClassLoader for type resolution while parsing its children.
        Parameters:
        location - URI to the package folder
        packageName - package name
        classLoader - for type resolution while parsing the package children
    • Method Detail

      • getLocation

        public java.net.URI getLocation()
        Returns the folder location URI of the package
        Returns:
        the folder location URI of the package
      • setLocation

        public void setLocation​(java.net.URI location)
        Sets the location of the package (last package element)
        Parameters:
        location - new value of location
      • getPackageName

        public java.lang.String getPackageName()
        Returns the package's name
        Returns:
        the package's name
      • setPackageName

        public void setPackageName​(java.lang.String packageName)
        Sets the package's name
        Parameters:
        packageName - new value of packageName
      • getClassLoader

        public java.lang.ClassLoader getClassLoader()
        Returns the field 'classLoader'
        Returns:
        value of classLoader
      • setClassLoader

        public void setClassLoader​(java.lang.ClassLoader classLoader)
        Sets the class loader for type resolving while parsing children
        Parameters:
        classLoader - new value of classLoader
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object