Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
522 additions
and
824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
src/main/java/net/hamnaberg/json/InternalObjectFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
package net.hamnaberg.json; | ||
|
||
import com.fasterxml.jackson.databind.node.ObjectNode; | ||
|
||
public abstract class InternalObjectFactory { | ||
public Collection createCollection(ObjectNode node) { | ||
public Collection createCollection(Json.JObject node) { | ||
return new Collection(node); | ||
} | ||
|
||
public Error createError(ObjectNode node) { | ||
public Error createError(Json.JObject node) { | ||
return new Error(node); | ||
} | ||
|
||
public Link createLink(ObjectNode node) { | ||
public Link createLink(Json.JObject node) { | ||
return new Link(node); | ||
} | ||
|
||
public Property createProperty(ObjectNode node) { | ||
public Property createProperty(Json.JObject node) { | ||
return new Property(node); | ||
} | ||
|
||
public Query createQuery(ObjectNode node) { | ||
public Query createQuery(Json.JObject node) { | ||
return new Query(node); | ||
} | ||
|
||
public Template createTemplate(ObjectNode node) { | ||
public Template createTemplate(Json.JObject node) { | ||
return new Template(node); | ||
} | ||
} |
Oops, something went wrong.