gov.nih.nci.cagrid.sdkquery4.processor
Class DomainTypesInformationUtil

java.lang.Object
  extended by gov.nih.nci.cagrid.sdkquery4.processor.DomainTypesInformationUtil

public class DomainTypesInformationUtil
extends java.lang.Object

DomainTypesInformationUtil Utility for manipulating a domain types information instance

Version:
$Id: DomainTypesInformationUtil.java,v 1.1 2008/01/18 15:13:29 dervin Exp $
Author:
David Ervin

Field Summary
static javax.xml.namespace.QName DOMAIN_TYPES_INFORMATION_QNAME
           
 
Constructor Summary
DomainTypesInformationUtil(DomainTypesInformation info)
           
 
Method Summary
static DomainTypesInformation deserializeDomainTypesInformation(java.io.Reader reader)
          Deserializes a domain types information document from XML to the Java object model
 java.lang.String getAttributeJavaType(java.lang.String classname, java.lang.String attributeName)
          Gets the java type of an attribute
 java.util.List<java.lang.String> getSubclasses(java.lang.String classname)
           
static void serializeDomainTypesInformation(DomainTypesInformation info, java.io.Writer writer)
          Serializes a domain types information object model instance to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOMAIN_TYPES_INFORMATION_QNAME

public static final javax.xml.namespace.QName DOMAIN_TYPES_INFORMATION_QNAME
Constructor Detail

DomainTypesInformationUtil

public DomainTypesInformationUtil(DomainTypesInformation info)
Method Detail

getAttributeJavaType

public java.lang.String getAttributeJavaType(java.lang.String classname,
                                             java.lang.String attributeName)
Gets the java type of an attribute

Parameters:
classname - The fully qualified name of the class to which the attribute belongs
attributeName - The name of the attribute
Returns:
The java type name, or null if no class / attribute were found

getSubclasses

public java.util.List<java.lang.String> getSubclasses(java.lang.String classname)

deserializeDomainTypesInformation

public static DomainTypesInformation deserializeDomainTypesInformation(java.io.Reader reader)
                                                                throws java.lang.Exception
Deserializes a domain types information document from XML to the Java object model

Parameters:
reader - A reader to the XML content of the document
Returns:
The object representation of the information document
Throws:
java.lang.Exception

serializeDomainTypesInformation

public static void serializeDomainTypesInformation(DomainTypesInformation info,
                                                   java.io.Writer writer)
                                            throws java.lang.Exception
Serializes a domain types information object model instance to XML

Parameters:
info - The domain types information instance
writer - A writer to which the XML of the domain types document will be sent
Throws:
java.lang.Exception