Extension SDK 10.1.2


oracle.jdeveloper.builder.file
Class FileBuilderModel

java.lang.Object
  extended byoracle.jdeveloper.builder.AbstractBuilderModel
      extended byoracle.jdeveloper.builder.file.FileBuilderModel

All Implemented Interfaces:
BaliWizardState, NewFileValidator
Direct Known Subclasses:
EmptyFileBuilder.EmptyFileBuilderModel

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()
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
commitWizardState, getBaseName, getBuilderType, getDefaultRelativeDirectory, getDirectory, getFileName, getProject, getRelativeDirectory, getSourceModel, getURL, initializeFromContext, postProcess, reportError, reportError, setClearExistingFiles, setDirectory, setFileName, setProject, setRelativeDirectory, setURL

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()

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

Extension SDK


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