org.d2rq.validation
Class Message

java.lang.Object
  extended by org.d2rq.validation.Message

public class Message
extends Object


Nested Class Summary
static class Message.Level
           
static class Message.Problem
           
static interface Message.Renderer
           
 
Constructor Summary
Message(Message.Problem problem)
           
Message(Message.Problem problem, MappingTerm term, String detailCode, String details, Resource contextResource, Property contextProperty)
           
Message(Message.Problem problem, Resource subject, Property[] predicates, RDFNode[] objects)
           
Message(Message.Problem problem, String details)
           
Message(Message.Problem problem, String details, int code)
           
 
Method Summary
 String getDetailCode()
           
 String getDetails()
           
 Message.Level getLevel()
           
 RDFNode getObject()
           
 List<RDFNode> getObjects()
           
 Property getPredicate()
           
 List<Property> getPredicates()
           
 Message.Problem getProblem()
           
 String getProblemTitle()
           
 Resource getSubject()
           
 String getTemplate()
           
 String getValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Message

public Message(Message.Problem problem)

Message

public Message(Message.Problem problem,
               String details)

Message

public Message(Message.Problem problem,
               String details,
               int code)

Message

public Message(Message.Problem problem,
               Resource subject,
               Property[] predicates,
               RDFNode[] objects)
Parameters:
problem -
subject - May be null
predicates - May be null
objects - May be null

Message

public Message(Message.Problem problem,
               MappingTerm term,
               String detailCode,
               String details,
               Resource contextResource,
               Property contextProperty)
Parameters:
problem -
term -
detailCode - Optional error code; indicates a subclass of problems
details - Optional string containing error details
contextResource - May be null
contextProperty - May be null
Method Detail

getLevel

public Message.Level getLevel()

getProblem

public Message.Problem getProblem()

getProblemTitle

public String getProblemTitle()

getSubject

public Resource getSubject()

getPredicate

public Property getPredicate()

getPredicates

public List<Property> getPredicates()

getObject

public RDFNode getObject()

getObjects

public List<RDFNode> getObjects()

getValue

public String getValue()

getDetailCode

public String getDetailCode()

getDetails

public String getDetails()

getTemplate

public String getTemplate()

toString

public String toString()
Overrides:
toString in class Object