gov.nih.nci.cagrid.sdkquery4.processor
Class DomainTypesInformationUtil
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMAIN_TYPES_INFORMATION_QNAME
public static final javax.xml.namespace.QName DOMAIN_TYPES_INFORMATION_QNAME
DomainTypesInformationUtil
public DomainTypesInformationUtil(DomainTypesInformation info)
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 belongsattributeName - 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 instancewriter - A writer to which the XML of the domain types document will be sent
- Throws:
java.lang.Exception