Where Am I? Class Hierarchy All Classes All Fields and Methods

Class com.ibm.ivj.util.base.ImportCodeSpec

java.lang.Object
   |
   +----com.ibm.ivj.util.base.ImportCodeSpec

public class ImportCodeSpec
extends Object
implements Serializable

This is a "helper" class used to encapsulate the import selections. It is used for base code-level import (.java, .class, resources).


Constructor Index

ImportCodeSpec()
Default constructor

Method Index

getClassFiles()
Returns a list of .class files that are to be imported.
getDefaultProject()
Returns an existing project to be used for any new packages and types that are created during import.
getJavaFiles()
Returns a list of .java files that are to be imported.
getResourceFiles()
Return a list of resource files (eg.
getResourcePath()
Return an absolute file path to the root of the resource files to be imported (including the trailing file path separator).
setClassFiles(String[])
Specify a list of .class files that are to be imported.
setDefaultProject(Project)
Specify an existing project to be used for any new packages and types that are created during import.
setJavaFiles(String[])
Specify a list of .java files that are to be imported.
setResourceFiles(String[])
Specify a list of resource files (eg.
setResourcePath(String)
Specify an absolute file path to the root of the resource files to be imported (including the trailing file path separator).

Constructors

ImportCodeSpec
 public ImportCodeSpec()
Default constructor


Methods

getClassFiles
 public String[] getClassFiles()
Returns a list of .class files that are to be imported. Each entry represents a fully-qualified file name.

Returns:
java.lang.String[]
getDefaultProject
 public Project getDefaultProject()
Returns an existing project to be used for any new packages and types that are created during import.

Returns:
com.ibm.ivj.util.base.Project
getJavaFiles
 public String[] getJavaFiles()
Returns a list of .java files that are to be imported. Each entry represents a fully-qualified file name.

Returns:
java.lang.String[]
getResourceFiles
 public String[] getResourceFiles()
Return a list of resource files (eg. .gif) that are to be imported. Each entry represents a resource file name relative to the resource file path (getResourcePath()). The resource file names must properly reflect the subdirectory structure needed by the using Java code. Typically, this will result in the resource file names starting with the "com" subdirectory, and the path being set to the local file system path up to, but not including the "com" subdirectory. For example, if an image file C:\mywork\com\xyz\images\splash.gif is used by Java classes in package com.xyz.app1 (referenced in code as ..\images\splash.gif), then the resource path should be set to "C:\mywork" and the resource file name to "com\xyz\images\splash.gif". The imported resource files are associated with the specified default project. To import resources for classes contained in multiple project multiple import calls must be made.

Returns:
java.lang.String[]
getResourcePath
 public String getResourcePath()
Return an absolute file path to the root of the resource files to be imported (including the trailing file path separator). The resource file names (getResourceFiles()) are specified relative to this path. Note, that the resource file names must properly reflect the subdirectory structure needed by the using Java code. Typically, this will result in the resource file names starting with the "com" subdirectory, and the path being set to the local file system path up to, but not including the "com" subdirectory. For example, if an image file C:\mywork\com\xyz\images\splash.gif is used by Java classes in package com.xyz.app1 (referenced in code as ..\images\splash.gif), then the resource path should be set to "C:\mywork\" and the resource file name to "com\xyz\images\splash.gif".

Returns:
java.lang.String
setClassFiles
 public void setClassFiles(String files[])
Specify a list of .class files that are to be imported. Each entry represents a fully-qualified file name.

Parameters:
files - java.lang.String[]
setDefaultProject
 public void setDefaultProject(Project project)
Specify an existing project to be used for any new packages and types that are created during import.

Parameters:
project - com.ibm.ivj.util.base.Project
setJavaFiles
 public void setJavaFiles(String files[])
Specify a list of .java files that are to be imported. Each entry represents a fully-qualified file name.

Parameters:
files - java.lang.String[]
setResourceFiles
 public void setResourceFiles(String files[])
Specify a list of resource files (eg. .gif) that are to be imported. Each entry represents a resource file name relative to the resource file path (setResourcePath(String)). The resource file names must properly reflect the subdirectory structure needed by the using Java code. Typically, this will result in the resource file names starting with the "com" subdirectory, and the path being set to the local file system path up to, but not including the "com" subdirectory. For example, if an image file C:\mywork\com\xyz\images\splash.gif is used by Java classes in package com.xyz.app1 (referenced in code as ..\images\splash.gif), then the resource path should be set to "C:\mywork" and the resource file name to "com\xyz\images\splash.gif". The imported resource files are associated with the specified default project. To import resources for classes contained in multiple project multiple import calls must be made.

Parameters:
files - java.lang.String[]
setResourcePath
 public void setResourcePath(String root)
Specify an absolute file path to the root of the resource files to be imported (including the trailing file path separator). The resource file names (setResourceFiles(String[])) are specified relative to this path. Note, that the resource file names must properly reflect the subdirectory structure needed by the using Java code. Typically, this will result in the resource file names starting with the "com" subdirectory, and the path being set to the local file system path up to, but not including the "com" subdirectory. For example, if an image file C:\mywork\com\xyz\images\splash.gif is used by Java classes in package com.xyz.app1 (referenced in code as ..\images\splash.gif), then the resource path should be set to "C:\mywork\" and the resource file name to "com\xyz\images\splash.gif".

Parameters:
root - java.lang.String

Where Am I? Class Hierarchy All Classes All Fields and Methods