Package org.exolab.castor.builder
Class SGTypes
- java.lang.Object
-
- org.exolab.castor.builder.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 Summary
Fields Modifier and Type Field Description static JClass
CLASS
Represents aJClass
instance of type 'java.lang.Class'.static JClass
INDEX_OUT_OF_BOUNDS_EXCEPTION
Represents aJClass
instance of type 'java.lang.IndexOutOfBoundsException'.static JClass
IO_EXCEPTION
Represents aJClass
instance of type 'java.io.IOException'.static JClass
MARSHAL_EXCEPTION
Represents aJClass
instance of type 'org.exolab.castor.xml.MarshalException'.static JClass
OBJECT
Represents aJClass
instance of type 'java.lang.Object'.static JClass
PROPERTY_CHANGE_SUPPORT
Represents aJClass
instance of type 'java.beans.PropertyChangeSupport'.static JClass
READER
Represents aJClass
instance of type 'java.io.Reader'.static JClass
STRING
Represents aJClass
instance of type 'java.lang.String'.static JClass
VALIDATION_EXCEPTION
Represents aJClass
instance of type 'org.exolab.castor.xml.ValidationException'.static JClass
WRITER
Represents aJClass
instance of type 'java.lang.Writer'.
-
Constructor Summary
Constructors Constructor Description SGTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JType
createEnumeration(JType jType, boolean usejava50)
Factory method for creating aJCollectionType
instance representing an enumeration.static JType
createEnumeration(JType jType, boolean usejava50, boolean useExtends)
Factory method for creating aJCollectionType
instance representing an enumeration.static JType
createHashtable(boolean useJava50)
Factory method for creating aJCollectionType
instance representing anHashtable
instance.static JType
createIterator(JType jType, boolean usejava50)
Factory method for creating aJCollectionType
instance representing anIterator
instance.static JType
createIterator(JType jType, boolean usejava50, boolean useExtends)
Factory method for creating aJCollectionType
instance representing anIterator
instance.
-
-
-
Field Detail
-
MARSHAL_EXCEPTION
public static final JClass MARSHAL_EXCEPTION
Represents aJClass
instance of type 'org.exolab.castor.xml.MarshalException'.
-
VALIDATION_EXCEPTION
public static final JClass VALIDATION_EXCEPTION
Represents aJClass
instance of type 'org.exolab.castor.xml.ValidationException'.
-
INDEX_OUT_OF_BOUNDS_EXCEPTION
public static final JClass INDEX_OUT_OF_BOUNDS_EXCEPTION
Represents aJClass
instance of type 'java.lang.IndexOutOfBoundsException'.
-
IO_EXCEPTION
public static final JClass IO_EXCEPTION
Represents aJClass
instance of type 'java.io.IOException'.
-
-
Method Detail
-
createEnumeration
public static final JType createEnumeration(JType jType, boolean usejava50)
Factory method for creating aJCollectionType
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 aJCollectionType
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 aJCollectionType
instance representing anIterator
instance.- Parameters:
jType
- The content type of the collection.usejava50
- Whether Java 5.0 is the target JVM.- Returns:
JCollectionType
instance representing anIterator
-
createIterator
public static final JType createIterator(JType jType, boolean usejava50, boolean useExtends)
Factory method for creating aJCollectionType
instance representing anIterator
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 anIterator
-
createHashtable
public static final JType createHashtable(boolean useJava50)
Factory method for creating aJCollectionType
instance representing anHashtable
instance.- Parameters:
useJava50
- Whether Java 5.0 is the target JVM.- Returns:
JCollectionType
instance representing aHashtable
-
-