Class SourceImpl
java.lang.Object
org.apache.torque.generator.source.SourceImpl
- All Implemented Interfaces:
Source
- Direct Known Subclasses:
CombinedFileSource,FileSource,JdbcMetadataSource
The base implementation of the source interface.
- Version:
- $Id: SourceImpl.java 1839288 2018-08-27 09:48:33Z tv $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SourceElementReads the root element and the whole untransformed source tree.Returns the root element of the source.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.torque.generator.source.Source
getContentChecksum, getDescription, getLastModified, getSourceFile
-
Constructor Details
-
SourceImpl
public SourceImpl()
-
-
Method Details
-
createRootElement
Reads the root element and the whole untransformed source tree.- Returns:
- the root element, not null.
- Throws:
SourceException- if the SourceElement cannot be created.
-
getRootElement
Description copied from interface:SourceReturns the root element of the source.- Specified by:
getRootElementin interfaceSource- Returns:
- the root element of the source, not null.
- Throws:
SourceException- if the source cannot be constructed.
-