com.github.osvaldopina.signedcontract.enforcer.jsonhal.HalDocument Maven / Gradle / Ivy
package com.github.osvaldopina.signedcontract.enforcer.jsonhal;
import com.fasterxml.jackson.databind.JsonNode;
import com.github.osvaldopina.signedcontract.enforcer.Clause;
import com.github.osvaldopina.signedcontract.enforcer.Document;
public class HalDocument implements Document {
private HalDocumentClauseEnforcer halDocumentClauseEnforcer;
public HalDocument(HalDocumentClauseEnforcer halDocumentClauseEnforcer) {
this.halDocumentClauseEnforcer = halDocumentClauseEnforcer;
}
@Override
public Clause enforce(JsonNode document) {
return halDocumentClauseEnforcer.enforce(document);
}
}