Package io.wcm.devops.conga.model.reader
Class AbstractModelReader<T>
java.lang.Object
io.wcm.devops.conga.model.reader.AbstractModelReader<T>
- Type Parameters:
T- Model type
- All Implemented Interfaces:
ModelReader<T>
- Direct Known Subclasses:
EnvironmentReader,RoleReader
Shared functionality for model readers.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractModelReader(org.yaml.snakeyaml.Yaml yaml) Constructor. -
Method Summary
-
Constructor Details
-
AbstractModelReader
protected AbstractModelReader(org.yaml.snakeyaml.Yaml yaml) Constructor.- Parameters:
yaml- YAML
-
-
Method Details
-
accepts
Description copied from interface:ModelReaderChecks if the given file is accepted by this reader.- Specified by:
acceptsin interfaceModelReader<T>- Parameters:
file- File- Returns:
- true if accepted
-
read
Description copied from interface:ModelReaderRead model- Specified by:
readin interfaceModelReader<T>- Parameters:
file- Model file- Returns:
- Model object
- Throws:
IOException- is thrown when I/O exception occurs
-
read
Description copied from interface:ModelReaderRead model- Specified by:
readin interfaceModelReader<T>- Parameters:
is- Model file- Returns:
- Model object
- Throws:
IOException- is thrown when I/O exception occurs
-
read
Description copied from interface:ModelReaderRead model- Specified by:
readin interfaceModelReader<T>- Parameters:
reader- Model file- Returns:
- Model object
-