IWorkspaceTemplate.ITemplateContent Interface

com.bea.ide.workspace
IWorkspaceTemplate.ITemplateContent Interface

public static interface IWorkspaceTemplate.ITemplateContent

Represents content data to be used for populating an application.

Enclosing interface

IWorkspaceTemplate

Method Summary

public String
getDestination()
Describes the intended location in the application for this template content.
public String
getSource()
String identifying the content resource.
public InputStream
getSourceAsStream()
Returns an input stream for reading the source.
public String
getType()
Indentifies how the content source should be processed.
public boolean
overwrite()
Indicates whether an overwrite should occur if one or more files in this template content already exist in the application.

Method Detail

getDestination() Method

public String getDestination()
Describes the intended location in the application for this template content. Example values might include "project" for creating a new project, "libraries" for the application level libraries directory, "modules" for the modules directory.

Returns

String destination name.

getSource() Method

public String getSource()
String identifying the content resource. Use getSourceAsStream to read the source.

Returns

String source name.

getSourceAsStream() Method

public InputStream getSourceAsStream()
Returns an input stream for reading the source.

Returns

InputStream for reading the source, or null if the source could not be found.

getType() Method

public String getType()
Indentifies how the content source should be processed. For example, "archive", "file", etc.

Returns

String type name.

overwrite() Method

public boolean overwrite()
Indicates whether an overwrite should occur if one or more files in this template content already exist in the application.

Returns

true for overwrite, false for no overwrite.