|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.daml.validator.indications.Indication
Basic validator Indication object used to specify problems found by the validator. Specific indications are subclasses. A basic indication contains the indication type, a level, and a message string. There are three indication levels: Indication.ERROR, Indication.WARNING, and Indication.INFORMATION. Each indication is assigned a unique id number.
Field Summary | |
static int |
ERROR
Error level type |
static int |
INFORMATION
Information level type |
protected static int |
totalIndications
The number of individual indications. |
static int |
WARNING
Warning level type |
Constructor Summary | |
Indication()
Generic indication constructor without message. |
|
Indication(java.lang.String message)
Generic indication constructor with message. |
|
Indication(java.lang.String message,
int level)
|
Method Summary | |
java.lang.String |
getLocation()
Generate a location string for the indication. |
java.lang.String |
getLocation(java.util.Collection statements)
Returns a location string for a collection of statements. |
java.lang.String |
getLocation(com.hp.hpl.mesa.rdf.jena.model.Statement s)
Returns a location string for a statement. |
java.lang.String |
getLocation(java.lang.String uri)
Returns a location string for a URI. |
java.lang.String |
getLocationXML()
Generate XML for the location of an exception without any location. |
java.lang.String |
getLocationXML(java.util.Collection statements)
Generate a location XML string from a collection of statements. |
java.lang.String |
getLocationXML(DAMLModelImpl.Node node)
Generate the location XML string for a node. |
java.lang.String |
getLocationXML(com.hp.hpl.mesa.rdf.jena.model.Statement s)
Generate a location xml string for a statement. |
java.lang.String |
getLocationXML(java.lang.String uri)
Generate a location xml string for a URI. |
java.lang.String |
getMessage()
Generate a message describing the indication. |
java.lang.String |
getStatementXML(com.hp.hpl.mesa.rdf.jena.model.Statement s)
Generate a statement xml string for Statement. |
static int |
indicationCount()
Return the number of indications created since the id counter was last reset. |
static void |
resetIdCounter()
Reset the counter used to assign indication ids to 0. |
void |
setLevel(int level)
Set the level of the indication |
java.lang.String |
toComparableString()
Generate a string that can be used to compare indications. |
java.lang.String |
toString()
Generate a string representation of the indication. |
java.lang.String |
toXML()
Generate the XML representation of the indication. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ERROR
public static final int WARNING
public static final int INFORMATION
protected static int totalIndications
Constructor Detail |
public Indication()
public Indication(java.lang.String message)
message
- A description string for the indication.public Indication(java.lang.String message, int level)
Method Detail |
public java.lang.String getMessage()
public java.lang.String getLocation()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toComparableString()
public void setLevel(int level)
level
- An Indication level value.public java.lang.String toXML() throws com.hp.hpl.mesa.rdf.jena.model.RDFException
com.hp.hpl.mesa.rdf.jena.model.RDFException
public static void resetIdCounter()
public static int indicationCount()
public java.lang.String getLocationXML() throws com.hp.hpl.mesa.rdf.jena.model.RDFException
com.hp.hpl.mesa.rdf.jena.model.RDFException
public java.lang.String getLocationXML(java.util.Collection statements) throws com.hp.hpl.mesa.rdf.jena.model.RDFException
statements
- A collection of RDF statements.
com.hp.hpl.mesa.rdf.jena.model.RDFException
public java.lang.String getLocationXML(DAMLModelImpl.Node node) throws com.hp.hpl.mesa.rdf.jena.model.RDFException
node
- A DAML node
com.hp.hpl.mesa.rdf.jena.model.RDFException
public java.lang.String getLocationXML(com.hp.hpl.mesa.rdf.jena.model.Statement s) throws com.hp.hpl.mesa.rdf.jena.model.RDFException
s
- An RDF statement.
com.hp.hpl.mesa.rdf.jena.model.RDFException
public java.lang.String getLocationXML(java.lang.String uri) throws com.hp.hpl.mesa.rdf.jena.model.RDFException
uri
- URI string.
com.hp.hpl.mesa.rdf.jena.model.RDFException
public java.lang.String getStatementXML(com.hp.hpl.mesa.rdf.jena.model.Statement s) throws com.hp.hpl.mesa.rdf.jena.model.RDFException
s
- an RDF Statement
com.hp.hpl.mesa.rdf.jena.model.RDFException
public java.lang.String getLocation(java.lang.String uri)
uri
- A URI string.
public java.lang.String getLocation(com.hp.hpl.mesa.rdf.jena.model.Statement s)
s
- An RDF statement.
public java.lang.String getLocation(java.util.Collection statements)
statements
- A collection of RDF statements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |