Class SGTypes


  • public class SGTypes
    extends java.lang.Object
    A collection of type definitions and factory methods to create those types, as used by the XML code generator of Castor during code generation.
    Version:
    $Revision: 7479 $ $Date: 2005-10-10 06:35:52 -0600 (Mon, 10 Oct 2005) $
    Author:
    Keith Visco
    • Field Detail

      • MARSHAL_EXCEPTION

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

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

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

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

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

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

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

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

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

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

      • SGTypes

        public SGTypes()
    • Method Detail

      • 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
      • createEnumeration

        public static final JType createEnumeration​(JType jType,
                                                    boolean usejava50,
                                                    boolean useExtends)
        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.
        useExtends - True if '? extends' should be emitted for generics (Java 5.0 ff only).
        Returns:
        JCollectionType instance representing an enumeration
      • 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
      • createIterator

        public static final JType createIterator​(JType jType,
                                                 boolean usejava50,
                                                 boolean useExtends)
        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.
        useExtends - True if '? extends' should be emitted for generics (Java 5.0 ff only).
        Returns:
        JCollectionType instance representing an Iterator
      • 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