src/main/java/org/semgus/java/event/EventParser.java
private static SpecEvent parseConstraint(JSONObject eventDto) throws DeserializationException {
        Object constraintDtoRaw = JsonUtils.get(eventDto, "constraint");
        try {
            return new ConstraintEvent(SmtTerm.deserialize(constraintDtoRaw));
        } catch (DeserializationException e) {
            throw e.prepend("constraint");
        }
    }
/**
     * Deserializes a "constraint" event.
     *
     * @param eventDto The JSON representation of the event.
     * @return The deserialized event.
     * @throws DeserializationException If {@code eventDto} is not a valid representation of a "constraint" event.
     */
Deserializes a "constraint" event.
@param eventDto The JSON representation of the event.
@return The deserialized event.
@throws DeserializationException If  eventDto is not a valid representation of a "constraint" event.
Deserializes a " constraint " event . @param eventDto The JSON representation of the event . @return The deserialized event . @throws DeserializationException If eventDto is not a valid representation of a " constraint " event .
private static SpecEvent parseConstraint(JSONObject eventDto) throws DeserializationException {
        Object constraintDtoRaw = JsonUtils.get(eventDto, "constraint");
        try {
            return new ConstraintEvent(SmtTerm.deserialize(constraintDtoRaw));
        } catch (DeserializationException e) {
            throw e.prepend("constraint");
        }
    }
private static SpecEvent parseConstraint ( JSONObject eventDto ) throws DeserializationException { Object constraintDtoRaw = JsonUtils . get ( eventDto , "constraint" ) ; try { return new ConstraintEvent ( SmtTerm . deserialize ( constraintDtoRaw ) ) ; } catch ( DeserializationException e ) { throw e . prepend ( "constraint" ) ; } }
Deserializes a "constraint" event.
Deserializes a " constraint " event .