public class PageTemplateXMLReader extends Object
Constructor and Description |
---|
PageTemplateXMLReader() |
Modifier and Type | Method and Description |
---|---|
PageTemplateRegistry |
read(List<com.yahoo.io.reader.NamedReader> pageReaders,
boolean validateReaderNames)
Reads all page template xml files in a given list of readers.
|
PageTemplateRegistry |
read(String directory)
Reads all page template xml files in a given directory.
|
PageTemplate |
readFile(String fileName)
Reads a single page template file.
|
public PageTemplateRegistry read(String directory)
RuntimeException
- if directory
is not a readable directory, or if there is some error in the XMLpublic PageTemplate readFile(String fileName)
RuntimeException
- if fileName
is not a readable file, or if there is some error in the XMLpublic PageTemplateRegistry read(List<com.yahoo.io.reader.NamedReader> pageReaders, boolean validateReaderNames)
validateReaderNames
- should be set to true if the readers were created by files, not otherwiseRuntimeException
- if directory
is not a readable directory, or if there is some error in the XMLCopyright © 2018. All rights reserved.