Interface IEntityJsonInstanceContext
-
- All Superinterfaces:
IEntityJsonContext
- All Known Subinterfaces:
IEntityJsonSchemaContext
public interface IEntityJsonInstanceContext extends IEntityJsonContext
A parser context containing an instance.- Author:
- Bruce Skingle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.fasterxml.jackson.databind.node.ObjectNodegetInstanceJsonNode()ObjectgetInstanceSource()IEntityJsonSchemaContextwithSchema(Object schemaSource, com.fasterxml.jackson.databind.node.ObjectNode schemaJsonNode)Add the given instance and return the current object as an IEntityJsonInstanceContext.-
Methods inherited from interface org.symphonyoss.symphony.entityjson.IEntityJsonContext
withInstance
-
-
-
-
Method Detail
-
getInstanceSource
Object getInstanceSource()
- Returns:
- An object describing the source of the instance. Will not return null.
-
getInstanceJsonNode
com.fasterxml.jackson.databind.node.ObjectNode getInstanceJsonNode()
- Returns:
- The instance. Will not return null.
-
withSchema
IEntityJsonSchemaContext withSchema(Object schemaSource, com.fasterxml.jackson.databind.node.ObjectNode schemaJsonNode)
Add the given instance and return the current object as an IEntityJsonInstanceContext.- Parameters:
instanceSource- An object describing the source of the instance, typically an instance of java.net.URL or java.io.File.instanceJsonNode- The instance.- Returns:
- The current object as an IEntityJsonInstanceContext.
- Throws:
NullPointerException- if either parameter is null.
-
-