public abstract class FileBuilderModel extends AbstractBuilderModel implements NewFileValidator
| Modifier and Type | Class and Description |
|---|---|
protected class |
FileBuilderModel.FileSourceModel |
| Constructor and Description |
|---|
FileBuilderModel(Context ctx) |
FileBuilderModel(Context ctx, java.lang.String ext) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
buildFile(Node node) |
protected SourceModel |
createSourceModel() |
boolean |
getEnforceFileExtension() |
java.lang.String |
getFileExtension() |
abstract java.lang.String |
getFileType()
Returns a String that can be used to describe the file type for an error dialog - for example, 'HTML file'.
|
java.net.URL |
validateNewFileURL(java.net.URL url)
Requests that the specified
URL be validated. |
addFileToProject, commitWizardState, getBaseName, getBuilderType, getDefaultRelativeDirectory, getDirectory, getFileContents, getFileName, getProject, getRelativeDirectory, getSourceModel, getURL, initializeFromContext, initializeSourceDir, isRaiseEditor, postProcess, reportError, reportError, reportFailedToCreateNode, setClearExistingFiles, setDirectory, setFileName, setProject, setRaiseEditor, setRelativeDirectory, setURL, shouldAcquireTextBuffer, shouldAddToProjectContentpublic FileBuilderModel(Context ctx)
public FileBuilderModel(Context ctx, java.lang.String ext)
public abstract java.lang.String getFileType()
protected SourceModel createSourceModel()
createSourceModel in class AbstractBuilderModelpublic java.lang.String getFileExtension()
public boolean getEnforceFileExtension()
public java.net.URL validateNewFileURL(java.net.URL url)
throws TraversalException
NewFileValidatorURL be validated. If necessary, a different URL can be returned, if the specified URL should be mapped to some other resource. If the URL is not valid, and cannot be made valid, then a TraversalException should be thrown containing the reason why the URL is not valid.validateNewFileURL in interface NewFileValidatorurl - the URL to be validatedTraversalExceptionprotected boolean buildFile(Node node)
buildFile in class AbstractBuilderModel