Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


oracle.jdeveloper.builder.file
Class FileBuilderModel

java.lang.Object
  extended by oracle.jdeveloper.builder.AbstractBuilderModel
      extended by oracle.jdeveloper.builder.file.FileBuilderModel

All Implemented Interfaces:
NewFileValidator, BaliWizardState

public abstract class FileBuilderModel
extends AbstractBuilderModel
implements NewFileValidator

Nested Class Summary
protected  class FileBuilderModel.FileSourceModel
           

 

Constructor Summary
FileBuilderModel(Context ctx)
           
FileBuilderModel(Context ctx, java.lang.String ext)
           

 

Method Summary
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.

 

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

 

Constructor Detail

FileBuilderModel

public FileBuilderModel(Context ctx)

FileBuilderModel

public FileBuilderModel(Context ctx,
                        java.lang.String ext)

Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.