FileDocCategorySizeDatePackage
DeployableObjectInfo.javaAPI DocGlassfish v2 API3972Fri May 04 22:34:30 BST 2007com.sun.enterprise.deployment.backend

DeployableObjectInfo

public abstract class DeployableObjectInfo extends Object
author
bnevins
version

Fields Summary
private File
rootPath
private String
name
private File
archive
Constructors Summary
protected DeployableObjectInfo(File rootPath, String name)

		this(rootPath, name, null);
	
protected DeployableObjectInfo(File rootPath, String name, File archive)

		this.rootPath	= rootPath;
		this.name		= name;
		this.archive	= archive;
	
Methods Summary
java.io.FilegetArchive()

		return archive;
	
public java.lang.StringgetName()
Returns the official name (ID) of the object

return
The String ID of this object

		return name;
	
public java.io.FilegetRootPath()
Returns the top-level directory that this object resides in

return
A File object pointing at the top-level directory containing this object

		return rootPath;
	
public java.lang.StringtoString()
Prepares a human-readable dump of all the information contained by this Object. Recursively calls toString() on contained objects.

return
Returns a String

		StringBuffer sb = new StringBuffer("*********** Archive Info Dump ***********\n");
		
		sb.append("Root Path:        " + getRootPath() + '\n");
		sb.append("Name:             " + getName() + '\n");
		
		if(archive != null)
			sb.append("Original Archive: " + getArchive() + '\n");
		
		return sb.toString();