com.ptc.windchill.structconf
Class TargetFileBearingCommand
java.lang.Object
com.ptc.windchill.structconf.StructConfManagerCommand
com.ptc.windchill.structconf.TargetFileBearingCommand
- Direct Known Subclasses:
- SetPropertiesFromFile, SetSiteProperty
- public abstract class TargetFileBearingCommand
- extends StructConfManagerCommand
Command to instruct the StructConfManager to change the site-specific value of the named property to the specified value.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetFile_
private String targetFile_
TargetFileBearingCommand
public TargetFileBearingCommand()
setTargetFile
public void setTargetFile(String target_file)
hasTargetFile
protected final boolean hasTargetFile()
getAbsoluteTargetFile
private File getAbsoluteTargetFile()
getTargetFile
protected final File getTargetFile(String property_name)
throws StructConfManagerException
- The target file for the current command.
If
#setTargetFile(java.io.File)
was called with a non-null File,
then a canonicalized value for this File will be returned.
Otherwise, the provided property name
will be used to try and determine the target file from the
TargetFileContentsCollector. If the property currently has more than one
target file (which is a problem), then the first will be returned. If the property
isn't currently mapped to a target file, then null will be returned.
- Returns:
- null if no target file set, or an absolutely qualified file if it is
- Throws:
StructConfManagerException