public class CTFUtils
extends java.lang.Object
| Modifier and Type | Field | Description | 
|---|---|---|
static java.lang.String | 
BOOLEAN | 
 The Java primitives. 
 | 
static java.lang.String | 
BYTE | 
|
static java.lang.String | 
CHARACTER | 
|
static java.lang.String | 
DOUBLE | 
|
static java.lang.String | 
FLOAT | 
|
static java.lang.String | 
INT | 
|
static java.lang.String | 
LONG | 
|
static java.lang.String | 
SHORT | 
|
static java.lang.String | 
STRING | 
| Modifier and Type | Method | Description | 
|---|---|---|
static int | 
compare(java.lang.String document1,
       java.lang.String document2) | 
 Compares two XML documents located at 2 given URLs, returning the number
 of differences or 0 if both documents are 'XML equivalent'. 
 | 
static java.lang.Class | 
getClass(java.lang.String name,
        java.lang.ClassLoader loader) | 
 Returns the class associated with the given name. 
 | 
static java.lang.Object | 
instantiateObject(java.lang.String type,
                 java.lang.String value,
                 java.lang.ClassLoader loader) | 
 Converts the given value to a Java representation that corresponds to the
 given type. 
 | 
public static final java.lang.String BOOLEAN
public static final java.lang.String BYTE
public static final java.lang.String CHARACTER
public static final java.lang.String DOUBLE
public static final java.lang.String FLOAT
public static final java.lang.String INT
public static final java.lang.String LONG
public static final java.lang.String SHORT
public static final java.lang.String STRING
public static int compare(java.lang.String document1,
                          java.lang.String document2)
                   throws java.io.IOException
document1 - the URL of the first XML document.document2 - the URL of the second XML document.java.io.IOException - if an error occurs reading either XML
             documentpublic static java.lang.Class getClass(java.lang.String name,
                                       java.lang.ClassLoader loader)
                                throws java.lang.ClassNotFoundException
name - the fully qualified name of the class to return. Primitives
            are handled through their name and not their class name. For
            instance 'boolean' should be used instead of
            'java.lang.Boolean.TYPE'.loader - the ClassLoader to use if the class needs to be loadedjava.lang.ClassNotFoundException - if the given class cannot be loaded using
             the provided class loader.public static java.lang.Object instantiateObject(java.lang.String type,
                                                 java.lang.String value,
                                                 java.lang.ClassLoader loader)
                                          throws java.lang.ClassNotFoundException,
                                                 MarshalException
value - the value to be convertedtype - a string representation of the java type.loader - an optional ClassLoader used in case we need to use the
            Unmarshaller to retrieve a complex java object.java.lang.ClassNotFoundException - if the type is not a recognized primitive
             type and the class loader provided cannot load the typeMarshalException - if the type is not a recognized primitive type
             and no Marshaller can be found for that typeIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com