edu.rice.cs.cunit.threadCheck
Class XMLAnnotUtils.AnnotationToXML

java.lang.Object
  extended by edu.rice.cs.cunit.threadCheck.XMLAnnotUtils.AnnotationToXML
Enclosing class:
XMLAnnotUtils

public static class XMLAnnotUtils.AnnotationToXML
extends java.lang.Object

Utilities for putting annotations into an XML configuration.


Constructor Summary
XMLAnnotUtils.AnnotationToXML()
           
 
Method Summary
private static void processAnnotation(XMLConfig xc, org.w3c.dom.Node node, java.util.List<AAnnotationsAttributeInfo.Annotation.NameValuePair> nvpList, java.util.HashMap<java.lang.String,java.lang.String> paramTypes)
          Process an annotation and add the <arg> tags underneath the specified node.
static void processAnnotations(XMLConfig xc, org.w3c.dom.Node root, ThreadCheckAnnotationRecord tcAR)
          Put the annotations from the lists into the XML document.
private static void processPredicateAnnotations(XMLConfig xc, org.w3c.dom.Node node, java.util.HashMap<java.lang.String,java.util.ArrayList<PredicateAnnotationRecord>> pars)
          Process a list of predicate annotations and add <predicate> or <combine> tags underneath the specified node.
private static void processPredicateMembers(XMLConfig xc, org.w3c.dom.Node node, java.util.List<java.lang.String> paramNames, java.util.HashMap<java.lang.String,java.lang.String> paramTypes, java.util.List<AAnnotationsAttributeInfo.Annotation.AMemberValue> valueList)
          Process a list of members and add the <arg> tags underneath the specified node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLAnnotUtils.AnnotationToXML

public XMLAnnotUtils.AnnotationToXML()
Method Detail

processAnnotations

public static void processAnnotations(XMLConfig xc,
                                      org.w3c.dom.Node root,
                                      ThreadCheckAnnotationRecord tcAR)
Put the annotations from the lists into the XML document.

Parameters:
xc - XML configuration
root - node under which they are to appear
tcAR - records of annotations

processPredicateAnnotations

private static void processPredicateAnnotations(XMLConfig xc,
                                                org.w3c.dom.Node node,
                                                java.util.HashMap<java.lang.String,java.util.ArrayList<PredicateAnnotationRecord>> pars)
Process a list of predicate annotations and add <predicate> or <combine> tags underneath the specified node.

Parameters:
xc - XML configuration
node - XML node that is going to be the parent of the <predicate> or <combine> tags
pars - predicate annotation records

processAnnotation

private static void processAnnotation(XMLConfig xc,
                                      org.w3c.dom.Node node,
                                      java.util.List<AAnnotationsAttributeInfo.Annotation.NameValuePair> nvpList,
                                      java.util.HashMap<java.lang.String,java.lang.String> paramTypes)
Process an annotation and add the <arg> tags underneath the specified node.

Parameters:
xc - XML configuration
node - XML node that is going to be the parent of the <arg> tags
nvpList - list of name-value pairs
paramTypes - list of parameter types, or null if this information is not available

processPredicateMembers

private static void processPredicateMembers(XMLConfig xc,
                                            org.w3c.dom.Node node,
                                            java.util.List<java.lang.String> paramNames,
                                            java.util.HashMap<java.lang.String,java.lang.String> paramTypes,
                                            java.util.List<AAnnotationsAttributeInfo.Annotation.AMemberValue> valueList)
Process a list of members and add the <arg> tags underneath the specified node.

Parameters:
xc - XML configuration
node - XML node that is going to be the parent of the <arg> tags
paramNames - list of parameter names
paramTypes - list of parameter types, or null if that information is not available
valueList - list of values