oracle.jdeveloper.builder
Class SourceModel
java.lang.Object
oracle.jdeveloper.builder.SourceModel
- Direct Known Subclasses:
- ClassSourceModel, FileBuilderModel.FileSourceModel
- public class SourceModel
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceModel
public SourceModel()
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.
Copyright © 1997, 2004, Oracle. All rights reserved.