Extension SDK 10.1.2


oracle.jdeveloper.builder
Class SourceModel

java.lang.Object
  extended byoracle.jdeveloper.builder.SourceModel

Direct Known Subclasses:
ClassSourceModel, FileBuilderModel.FileSourceModel

public class SourceModel
extends java.lang.Object

Constructor Summary
SourceModel()

Method Summary
boolean checkForExistingFile()
Node createNode()
void generateDefaultFileName(java.lang.String baseName)
java.net.URL getBaseURL()
protected int getDefaultNameStartIndex()
java.net.URL getDirectory()
java.lang.String getExtension()
Retrieves the extension used when creating new files.
java.lang.String getFileName()
protected java.lang.Class getNodeType()
Get the Node type for the source file.
JProject getProject()
java.lang.String getRelativeDirectory()
java.net.URL getURL()
boolean isInSourcePath(java.net.URL url)
void setDirectory(java.net.URL url)
void setFileName(java.lang.String newFileName)
void setProject(JProject newProj)
void setRelativeDirectory(java.lang.String newDirectory)
void setURL(java.net.URL url)
protected void updateBaseURLFromProject()
boolean verifyPath()

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SourceModel

public SourceModel()

Method Detail

getURL

public final java.net.URL getURL()

setURL

public final void setURL(java.net.URL url)

verifyPath

public final boolean verifyPath()

createNode

public final Node createNode()

checkForExistingFile

public final boolean checkForExistingFile()

generateDefaultFileName

public final void generateDefaultFileName(java.lang.String baseName)

getFileName

public java.lang.String getFileName()

setFileName

public void setFileName(java.lang.String newFileName)

getRelativeDirectory

public final java.lang.String getRelativeDirectory()

setRelativeDirectory

public void setRelativeDirectory(java.lang.String newDirectory)

getDirectory

public final java.net.URL getDirectory()

setDirectory

public final void setDirectory(java.net.URL url)

isInSourcePath

public boolean isInSourcePath(java.net.URL url)

getBaseURL

public final java.net.URL getBaseURL()

getProject

public final JProject getProject()

setProject

public void setProject(JProject newProj)
                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

updateBaseURLFromProject

protected void updateBaseURLFromProject()

getExtension

public java.lang.String getExtension()
Retrieves the extension used when creating new files. The extension should include the '.'.
Returns:
the file extension to use when creating the file associated with this SourceModel.

getDefaultNameStartIndex

protected int getDefaultNameStartIndex()

getNodeType

protected java.lang.Class getNodeType()
Get the Node type for the source file.
Returns:
the Node subclass that should be instantiated for this source model, or null if the default Node type should be used.

Extension SDK


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