Java Code Examples for com.fasterxml.jackson.databind.DeserializationContext#getParser()

The following examples show how to use com.fasterxml.jackson.databind.DeserializationContext#getParser() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Fruit.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Handle deserialization of the 'null' value.
 */
@Override
public Fruit getNullValue(DeserializationContext ctxt) throws JsonMappingException {
    throw new JsonMappingException(ctxt.getParser(), "Fruit cannot be null");
}
 
Example 2
Source File: GmFruit.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Handle deserialization of the 'null' value.
 */
@Override
public GmFruit getNullValue(DeserializationContext ctxt) throws JsonMappingException {
    throw new JsonMappingException(ctxt.getParser(), "GmFruit cannot be null");
}
 
Example 3
Source File: Triangle.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Handle deserialization of the 'null' value.
 */
@Override
public Triangle getNullValue(DeserializationContext ctxt) throws JsonMappingException {
    throw new JsonMappingException(ctxt.getParser(), "Triangle cannot be null");
}
 
Example 4
Source File: Pig.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Handle deserialization of the 'null' value.
 */
@Override
public Pig getNullValue(DeserializationContext ctxt) throws JsonMappingException {
    throw new JsonMappingException(ctxt.getParser(), "Pig cannot be null");
}
 
Example 5
Source File: Quadrilateral.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Handle deserialization of the 'null' value.
 */
@Override
public Quadrilateral getNullValue(DeserializationContext ctxt) throws JsonMappingException {
    throw new JsonMappingException(ctxt.getParser(), "Quadrilateral cannot be null");
}
 
Example 6
Source File: Shape.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Handle deserialization of the 'null' value.
 */
@Override
public Shape getNullValue(DeserializationContext ctxt) throws JsonMappingException {
    throw new JsonMappingException(ctxt.getParser(), "Shape cannot be null");
}
 
Example 7
Source File: Mammal.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Handle deserialization of the 'null' value.
 */
@Override
public Mammal getNullValue(DeserializationContext ctxt) throws JsonMappingException {
    throw new JsonMappingException(ctxt.getParser(), "Mammal cannot be null");
}
 
Example 8
Source File: InvalidNullException.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
protected InvalidNullException(DeserializationContext ctxt, String msg,
        PropertyName pname)
{
    super(ctxt.getParser(), msg);
    _propertyName = pname;
}