Skip to content

Commit

Permalink
#323 Scaffolding for YAML 'loading'
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Aug 16, 2024
1 parent 18c7275 commit fa74210
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/com/amihaiemil/eoyaml/YamlMapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -518,4 +518,17 @@ default List<YamlNode> children() {
default JsonObject toJsonObject() {
return (JsonObject) this.accept(new YamlToJsonVisitor());
}

/**
* Turn this YamlMapping to a given Object type ("loading").
* @param clazz Class type of the Object into which this YamlMapping should
* be loaded.
* @param <T> Type of the Object,
* @return Object into which this YamlMapping is loaded.
* @todo #323:60min Implement this method similarly to toJsonObject(),
* using a visitor.
*/
default <T> T toObject(final Class<T> clazz) {
return null;
}
}

1 comment on commit fa74210

@zoeself
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amihaiemil I've opened the Issues [#631] for the newly added to-dos.

The to-dos may have been added in an earlier commit, but I've found them just now.

Please sign in to comment.