Class SGTypes

java.lang.Object
org.exolab.castor.builder.SGTypes

public class SGTypes extends 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 Details

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

    • SGTypes

      public SGTypes()
  • 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
    • 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
      invalid reference
      Iterator
      instance.
      Parameters:
      jType - The content type of the collection.
      usejava50 - Whether Java 5.0 is the target JVM.
      Returns:
      JCollectionType instance representing an
      invalid reference
      Iterator
    • createIterator

      public static final JType createIterator(JType jType, boolean usejava50, boolean useExtends)
      Factory method for creating a JCollectionType instance representing an
      invalid reference
      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
      invalid reference
      Iterator
    • createHashtable

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