1 10 package com.hp.hpl.jena.reasoner; 11 12 import java.util.Iterator ; 13 14 22 public interface ValidityReport { 23 24 31 public boolean isValid(); 32 33 37 public boolean isClean(); 38 39 42 public Iterator getReports(); 43 44 static class Report { 46 50 public String type; 51 52 55 public boolean isError; 56 57 60 public String description; 61 62 66 public Object extension; 67 68 74 public Report(boolean error, String type, String description) { 75 this( error, type, description, null ); 76 } 77 78 86 public Report(boolean error, String type, String description, Object extension) { 87 this.isError = error; 88 this.type = type; 89 this.description = description; 90 this.extension = extension; 91 } 92 93 96 public String getDescription() { 97 return description; 98 } 99 103 public Object getExtension() { 104 return extension; 105 } 106 109 public boolean isError() { 110 return isError; 111 } 112 115 public String getType() { 116 return type; 117 } 118 121 public String toString() { 122 return (isError ? "Error (" : "Warning (") + type + "): " + description; 123 } 124 } 125 } 126 127 | Popular Tags |