public class FileSystemDestination extends Object implements GeneratorDestination
| Constructor and Description |
|---|
FileSystemDestination(File resourceDir,
File sourceDir) |
| Modifier and Type | Method and Description |
|---|---|
Collection<SourceError> |
getErrors() |
Reader |
getResource(String resourcePath)
Returns the Reader for the given resource.
|
Collection<SourceWarning> |
getWarnings() |
boolean |
hasErrors() |
boolean |
hasWarnings() |
Writer |
newClass(String className)
Returns the Writer for the given class.
|
Writer |
newResource(String resourcePath)
Returns the Writer for the given resource.
|
void |
printError(String message)
Print the error.
|
void |
printError(String message,
MetadataInfo element)
Print the error.
|
void |
printError(String message,
Throwable throwable)
Print the error.
|
void |
printNote(String message)
Print the informative message.
|
void |
printWarning(String message)
Print the warning.
|
void |
printWarning(String message,
MetadataInfo element)
Print the warning.
|
void |
printWarning(String message,
Throwable throwable)
Print the warning.
|
public Writer newResource(String resourcePath) throws IOException
GeneratorDestinationnewResource in interface GeneratorDestinationresourcePath - resource pathIOException - if something wacked happenspublic Reader getResource(String resourcePath) throws IOException
GeneratorDestinationgetResource in interface GeneratorDestinationresourcePath - resource pathIOException - if something wacked happenspublic Writer newClass(String className) throws IOException
GeneratorDestinationnewClass in interface GeneratorDestinationclassName - class nameIOException - if something wacked happenspublic void printError(String message)
GeneratorDestinationprintError in interface GeneratorDestinationmessage - error.public void printError(String message, MetadataInfo element)
GeneratorDestinationprintError in interface GeneratorDestinationmessage - error.element - metadata element, to which this error is tailoredpublic void printError(String message, Throwable throwable)
GeneratorDestinationprintError in interface GeneratorDestinationmessage - error.throwable - exception causing the errorpublic boolean hasErrors()
public Collection<SourceError> getErrors()
public void printWarning(String message)
GeneratorDestinationprintWarning in interface GeneratorDestinationmessage - warning.public void printWarning(String message, MetadataInfo element)
GeneratorDestinationprintWarning in interface GeneratorDestinationmessage - warning.element - metadata element, to which this error is tailoredpublic void printWarning(String message, Throwable throwable)
GeneratorDestinationprintWarning in interface GeneratorDestinationmessage - warning.throwable - exception causing the errorpublic boolean hasWarnings()
public Collection<SourceWarning> getWarnings()
public void printNote(String message)
GeneratorDestinationprintNote in interface GeneratorDestinationmessage - message.Copyright © 2012-2015 Oracle. All Rights Reserved.