|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.source.SourceImpl
org.apache.torque.generator.source.stream.CombinedFileSource
public class CombinedFileSource
A source which uses several files as input and combines them into one file. The source tree will look as follows: <source> <file path="path/to/file1"> <rootOfFile1> ... </rootOfFile1> </file> <file path="path/to/file2"> <rootOfFile2> ... </rootOfFile2> </file> ... </source>
| Field Summary | |
|---|---|
static String |
FILE_ELEMENT_NAME
The name of the root element's children of the produced source tree. |
static String |
PATH_ATTRIBUTE_NAME
The name of the path attribute of the file elements. |
static String |
ROOT_ELEMENT_NAME
The name of the root element of the produced source tree. |
| Constructor Summary | |
|---|---|
CombinedFileSource(Collection<FileSource> fileSources)
Constructor. |
|
| Method Summary | |
|---|---|
SourceElement |
createRootElement()
Reads and parses the input file and creates the element tree from it. |
String |
getDescription()
Returns the path of the files as a description. |
File |
getSourceFile()
Returns the source file, if applicable. |
String |
toString()
|
| Methods inherited from class org.apache.torque.generator.source.SourceImpl |
|---|
getRootElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ROOT_ELEMENT_NAME
public static final String FILE_ELEMENT_NAME
public static final String PATH_ATTRIBUTE_NAME
| Constructor Detail |
|---|
public CombinedFileSource(Collection<FileSource> fileSources)
fileSources - the file sources, not null.
NullPointerException - if path or format is null.| Method Detail |
|---|
public SourceElement createRootElement()
throws SourceException
createRootElement in class SourceImplSourceException - if the input file cannot be read or parsed.public String getDescription()
Source.getDescription()public File getSourceFile()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||