|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.util.ArtifactDir
Artifacts are persistable files, such as: source files; class files;
scripts for creating the database; model data (mdata) files; and so
forth. This class represents the types of artifacts known to the system,
and provides methods for finding the directorys in which those artifacts
reside.
The types of artifacts are represented in this class by static strings,
such as ArtifactDir.BIN, ArtifactDir.SRC, etc. These strings are immutable.
Each type of artifact resides under a specified sudirectory of the
root directory for the module in which it is defined. The module root
locations are defined by properties; for example, the location of a
module named ModuleA is specified by a property named "ModuleA.dir".
The subdirectory for a given artifact type, Aritfact.XXX, is defined
by a property generally of the form "wt.xxx.dir". See the source code
for details. Within the subdirectory for the artifact type, artifacts
are further organized in a directory structure which mirrors the module's
package structure (see ModuleArtifact class for details).
Two static methods are provided for determining the directory for
an artifact type: artifactDir (String, boolean, String), which returns
the fully qualified path of the directory; and subDirectoryForArtifact
(String), which returns only the name of the subdirectory containing
the artifact type. Note, artifactDir() is the preferred method for locating
artifacts of a specific module. It includes additional behavior for
the "default module".
The class initializer loads three Hashtables used for determining
the subdirectory assigned for an artifact:
artifactDirs, loaded from properties of the form "wt.xxx.dir" as discussed
above; oldArtifacts, loaded from properties of the form "wt.generation.yyy.dir"
used for the default module (retained to support developers of earlier
Windchill versions); and defaults, loaded with default values to be
used in the event that the subdirectory cannot be resolved by the other
tables.
Supported API: false
Extendable: false
Field Summary | |
private static Hashtable |
artifactDirs
|
static String |
BIN
Supported API: false |
static String |
CACHE
Supported API: false |
private static String |
CLASSNAME
|
static String |
CUSTOM
Supported API: false |
static String |
DB
Supported API: false |
private static Hashtable |
defaults
|
static String |
GEN
Supported API: false |
static String |
LOG
Supported API: false |
static String |
MDATA
Supported API: false |
private static Hashtable |
oldArtifacts
|
static String |
RB
Supported API: false |
static String |
RBI
Supported API: false |
private static String |
RESOURCE
|
static String |
SQL
|
static String |
SRC
Supported API: false |
Constructor Summary | |
ArtifactDir()
|
Method Summary | |
static String |
artifactDir(String moduleDir,
boolean isDefaultModule,
String artifactType)
Given the type of artifact, returns the directory which contains artifacts of that type. |
protected static boolean |
isEmpty(String string)
|
protected static void |
setArtifactDir(String artifactType,
String theValue)
|
protected static void |
setDefault(String artifactType,
String theValue)
|
protected static void |
setOldArtifact(String artifactType,
String theValue)
|
static String |
subDirForArtifact(String artifactType)
Supported API: false |
static String |
subDirForOldArtifact(String artifactType)
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String BIN
public static final String SRC
public static final String GEN
public static final String RBI
public static final String RB
public static final String MDATA
public static final String DB
public static final String CUSTOM
public static final String LOG
public static final String CACHE
public static final String SQL
private static Hashtable artifactDirs
private static Hashtable oldArtifacts
private static Hashtable defaults
Constructor Detail |
public ArtifactDir()
Method Detail |
public static String artifactDir(String moduleDir, boolean isDefaultModule, String artifactType)
moduleDir
- isDefaultModule
- artifactType
-
public static String subDirForArtifact(String artifactType)
artifactType
-
public static String subDirForOldArtifact(String artifactType)
artifactType
-
protected static void setArtifactDir(String artifactType, String theValue)
protected static void setOldArtifact(String artifactType, String theValue)
protected static void setDefault(String artifactType, String theValue)
protected static boolean isEmpty(String string)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |