Class PackageFolder
- java.lang.Object
-
- com.devonfw.cobigen.javaplugin.inputreader.to.PackageFolder
-
-
Constructor Summary
Constructors Constructor Description PackageFolder(URI location, String packageName)Creates a new transfer object for a packagePackageFolder(URI location, String packageName, ClassLoader classLoader)Creates a new transfer object for a package with aClassLoaderfor type resolution while parsing its children.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadergetClassLoader()Returns the field 'classLoader'URIgetLocation()Returns the folder locationURIof the packageStringgetPackageName()Returns the package's namevoidsetClassLoader(ClassLoader classLoader)Sets the class loader for type resolving while parsing childrenvoidsetLocation(URI location)Sets the location of the package (last package element)voidsetPackageName(String packageName)Sets the package's nameStringtoString()
-
-
-
Constructor Detail
-
PackageFolder
public PackageFolder(URI location, String packageName)
Creates a new transfer object for a package- Parameters:
location-URIto the package folderpackageName- package name
-
PackageFolder
public PackageFolder(URI location, String packageName, ClassLoader classLoader)
Creates a new transfer object for a package with aClassLoaderfor type resolution while parsing its children.- Parameters:
location-URIto the package folderpackageName- package nameclassLoader- for type resolution while parsing the package children
-
-
Method Detail
-
getLocation
public URI getLocation()
Returns the folder locationURIof the package- Returns:
- the folder location
URIof the package
-
setLocation
public void setLocation(URI location)
Sets the location of the package (last package element)- Parameters:
location- new value of location
-
getPackageName
public String getPackageName()
Returns the package's name- Returns:
- the package's name
-
setPackageName
public void setPackageName(String packageName)
Sets the package's name- Parameters:
packageName- new value of packageName
-
getClassLoader
public ClassLoader getClassLoader()
Returns the field 'classLoader'- Returns:
- value of classLoader
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
Sets the class loader for type resolving while parsing children- Parameters:
classLoader- new value of classLoader
-
-