public class OntologySolverUtilities
extends java.lang.Object
Red (cshelton) |
Red (cshelton) |
Constructor and Description |
---|
OntologySolverUtilities()
Construct a new SharedUtilities object.
|
Modifier and Type | Method and Description |
---|---|
void |
addErrors(java.lang.String error)
Record the given error message.
|
java.util.Map<ASTPtRootNode,Attribute> |
getAttributes()
Return the map that maps root ast node (keys) to the corresponding
attribute (values).
|
java.util.List<java.lang.String> |
getErrors()
Return the list of error strings.
|
java.util.Map<Attribute,ASTPtRootNode> |
getParseTrees()
Return the map that maps attributes (keys) to their root ast nodes
(values).
|
protected void |
putAttribute(ASTPtRootNode node,
Attribute attribute)
Record the association between the given ast node and the given
attribute.
|
java.util.List<java.lang.String> |
removeErrors()
Clear and return the previously recorded errors.
|
void |
resetAll()
Clear the states of this shared object.
|
java.lang.String |
toString()
Return the representation for the SharedUtilities object.
|
public OntologySolverUtilities()
public void addErrors(java.lang.String error)
error
- The error message to record.public java.util.Map<ASTPtRootNode,Attribute> getAttributes()
public java.util.List<java.lang.String> getErrors()
public java.util.Map<Attribute,ASTPtRootNode> getParseTrees()
public java.util.List<java.lang.String> removeErrors()
public void resetAll()
public java.lang.String toString()
toString
in class java.lang.Object
protected void putAttribute(ASTPtRootNode node, Attribute attribute)
node
- The given ast node.attribute
- The given attribute.