IProjectTemplate.ITemplateContent Interface
- public static interface IProjectTemplate.ITemplateContent
Represents a piece of content data to be used when creating a project template.
-
Enclosing interface
-
IProjectTemplate
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 ()
- Returns whether an overwrite should occur if one or more files in this
template content already exist in the application.
|
getDestination() Method
public String
getDestination()
Describes the intended location in the application for this template content.
Example values might include "project" for the root directory of the 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()
Returns 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.