Skip navigation links 
 
oracle.jdeveloper.builder.file
Class FileBuilderModel
java.lang.Object
  
oracle.jdeveloper.builder.AbstractBuilderModel
      
oracle.jdeveloper.builder.file.FileBuilderModel
- All Implemented Interfaces:
 
- NewFileValidator, BaliWizardState
 
- 
public abstract class FileBuilderModel
 
- extends AbstractBuilderModel
 
- implements NewFileValidator
 
 
  
 
  
 
 
| Methods inherited from class oracle.jdeveloper.builder.AbstractBuilderModel | 
addFileToProject, commitWizardState, getBaseName, getBuilderType, getDefaultRelativeDirectory, getDirectory, getFileName, getProject, getRelativeDirectory, getSourceModel, getURL, initializeFromContext, initializeSourceDir, isRaiseEditor, postProcess, reportError, reportError, setClearExistingFiles, setDirectory, setFileName, setProject, setRaiseEditor, setRelativeDirectory, setURL, shouldAddToProjectContent | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
FileBuilderModel
public FileBuilderModel(Context ctx)
FileBuilderModel
public FileBuilderModel(Context ctx,
                        java.lang.String ext)
getFileType
public 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'.
 
createSourceModel
protected SourceModel createSourceModel()
- 
- Overrides:
 
createSourceModel in class AbstractBuilderModel 
 
getFileExtension
public java.lang.String getFileExtension()
getEnforceFileExtension
public boolean getEnforceFileExtension()
validateNewFileURL
public java.net.URL validateNewFileURL(java.net.URL url)
                                throws TraversalException
- Description copied from interface: 
NewFileValidator 
- Requests that the specified 
URL 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. 
- 
- Specified by:
 
validateNewFileURL in interface NewFileValidator 
 
- 
- Parameters:
 
url - the URL to be validated 
- Returns:
 
- the valid URL.
 
- Throws:
 
TraversalException 
 
buildFile
protected boolean buildFile(Node node)
- 
- Overrides:
 
buildFile in class AbstractBuilderModel 
 
Skip navigation links 
 
Copyright © 1997, 2016, Oracle. All rights reserved.