Class LibraryParser
- java.lang.Object
-
- io.jenkins.plugins.pipeline.parsers.AbstractParser
-
- io.jenkins.plugins.pipeline.parsers.LibraryParser
-
- All Implemented Interfaces:
ParserInterface<LibraryModel>
public class LibraryParser extends AbstractParser implements ParserInterface<LibraryModel>
Parser forLibraryModel
-
-
Field Summary
-
Fields inherited from class io.jenkins.plugins.pipeline.parsers.AbstractParser
yaml, yamlNodeName
-
-
Constructor Summary
Constructors Constructor Description LibraryParser(LinkedHashMap parentNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<LibraryModel>
parse()
Parse Yaml to Model-
Methods inherited from class io.jenkins.plugins.pipeline.parsers.AbstractParser
convertEnvironmentVariableModel, convertVariableModel, extractParameters, getChildNodeAsLinkedHashMap, getChildNodeAsList, getChildNodeAsObject, getChildNodeAsString, getKey, getValue
-
-
-
-
Constructor Detail
-
LibraryParser
public LibraryParser(LinkedHashMap parentNode)
- Parameters:
parentNode
- Parent Node which contains model definition as yaml
-
-
Method Detail
-
parse
public Optional<LibraryModel> parse()
Description copied from interface:ParserInterface
Parse Yaml to Model- Specified by:
parse
in interfaceParserInterface<LibraryModel>
- Returns:
- Optional of Generic Type
-
-