org.exolab.castor.builder

Class SGTypes


public class SGTypes
extends java.lang.Object

Version:
$Revision: 6933 $ $Date: 2005-10-10 06:35:52 -0600 (Mon, 10 Oct 2005) $
Author:
Keith Visco

Field Summary

static JClass
CLASS
Represents a JClass instance of type 'java.lang.Class'.
static JClass
INDEX_OUT_OF_BOUNDS_EXCEPTION
Represents a JClass instance of type 'java.lang.IndexOutOfBoundsException'.
static JClass
IO_EXCEPTION
Represents a JClass instance of type 'java.io.IOException'.
static JClass
MARSHAL_EXCEPTION
Represents a JClass instance of type 'org.exolab.castor.xml.MarshalException'.
static JClass
OBJECT
Represents a JClass instance of type 'java.lang.Object'.
static JClass
PROPERTY_CHANGE_SUPPORT
Represents a JClass instance of type 'java.beans.PropertyChangeSupport'.
static JClass
READER
Represents a JClass instance of type 'java.io.Reader'.
static JClass
STRING
Represents a JClass instance of type 'java.lang.String'.
static JClass
VALIDATION_EXCEPTION
Represents a JClass instance of type 'org.exolab.castor.xml.ValidationException'.
static JClass
WRITER
Represents a JClass instance of type 'java.lang.Writer'.

Method Summary

static JType
createEnumeration(JType jType, boolean usejava50)
Factory method for creating a JCollectionType instance representing an enumeration.
static JType
createHashtable(boolean useJava50)
Factory method for creating a JCollectionType instance representing an Hashtable instance.
static JType
createIterator(JType jType, boolean usejava50)
Factory method for creating a JCollectionType instance representing an Iterator instance.

Field Details

CLASS

public static final JClass CLASS
Represents a JClass instance of type 'java.lang.Class'.

INDEX_OUT_OF_BOUNDS_EXCEPTION

public static final JClass INDEX_OUT_OF_BOUNDS_EXCEPTION
Represents a JClass instance of type 'java.lang.IndexOutOfBoundsException'.

IO_EXCEPTION

public static final JClass IO_EXCEPTION
Represents a JClass instance of type 'java.io.IOException'.

MARSHAL_EXCEPTION

public static final JClass MARSHAL_EXCEPTION
Represents a JClass instance of type 'org.exolab.castor.xml.MarshalException'.

OBJECT

public static final JClass OBJECT
Represents a JClass instance of type 'java.lang.Object'.

PROPERTY_CHANGE_SUPPORT

public static final JClass PROPERTY_CHANGE_SUPPORT
Represents a JClass instance of type 'java.beans.PropertyChangeSupport'.

READER

public static final JClass READER
Represents a JClass instance of type 'java.io.Reader'.

STRING

public static final JClass STRING
Represents a JClass instance of type 'java.lang.String'.

VALIDATION_EXCEPTION

public static final JClass VALIDATION_EXCEPTION
Represents a JClass instance of type 'org.exolab.castor.xml.ValidationException'.

WRITER

public static final JClass WRITER
Represents a JClass instance of type 'java.lang.Writer'.

Method Details

createEnumeration

public static final JType createEnumeration(JType jType,
                                            boolean usejava50)
Factory method for creating a JCollectionType instance representing an enumeration.
Parameters:
jType - The content type of the collection.
usejava50 - Whether Java 5.0 is the target JVM.
Returns:
JCollectionType instance representing an enumeration

createHashtable

public static final JType createHashtable(boolean useJava50)
Factory method for creating a JCollectionType instance representing an Hashtable instance.
Parameters:
useJava50 - Whether Java 5.0 is the target JVM.
Returns:
JCollectionType instance representing a Hashtable

createIterator

public static final JType createIterator(JType jType,
                                         boolean usejava50)
Factory method for creating a JCollectionType instance representing an Iterator instance.
Parameters:
jType - The content type of the collection.
usejava50 - Whether Java 5.0 is the target JVM.
Returns:
JCollectionType instance representing an Iterator

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com