public interface SourceRootHelper
SourceRootHelper
defines the protocol by which
a class can participate in determining the source root for files
of a specific, non-Java file type.Modifier and Type | Method and Description |
---|---|
java.net.URL |
determineSourceRoot(Node node,
boolean[] errorStatus)
Gets the URL for the source root associated with the supplied node.
|
java.lang.String |
getFileExtension()
Gets the file-name suffix for the file type that is handled by this
helper.
|
java.lang.Class |
getNodeClass()
Gets the
Class of the node type that is handled by this helper. |
java.lang.String getFileExtension()
Note: The file extension should represent a non-Java file type.
java.lang.Class getNodeClass()
Class
of the node type that is handled by this helper.
Note: The class type must represent a non-Java file type, thus
it should not be JavaSourceNode
.
Class
of the node typejava.net.URL determineSourceRoot(Node node, boolean[] errorStatus)
node
- A node of the type specified by getNodeClass()
errorStatus
- Holds the error state for this method. If the
URL that is being returned was not determined to be a valid source
root, errorStatus[0]
should be set to true
.URL
getNodeClass()