Package org.exolab.castor.builder
Class SGTypes
- java.lang.Object
-
- org.exolab.castor.builder.SGTypes
-
public class SGTypes extends java.lang.ObjectA 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 JClassCLASSRepresents aJClassinstance of type 'java.lang.Class'.static JClassINDEX_OUT_OF_BOUNDS_EXCEPTIONRepresents aJClassinstance of type 'java.lang.IndexOutOfBoundsException'.static JClassIO_EXCEPTIONRepresents aJClassinstance of type 'java.io.IOException'.static JClassMARSHAL_EXCEPTIONRepresents aJClassinstance of type 'org.exolab.castor.xml.MarshalException'.static JClassOBJECTRepresents aJClassinstance of type 'java.lang.Object'.static JClassPROPERTY_CHANGE_SUPPORTRepresents aJClassinstance of type 'java.beans.PropertyChangeSupport'.static JClassREADERRepresents aJClassinstance of type 'java.io.Reader'.static JClassSTRINGRepresents aJClassinstance of type 'java.lang.String'.static JClassVALIDATION_EXCEPTIONRepresents aJClassinstance of type 'org.exolab.castor.xml.ValidationException'.static JClassWRITERRepresents aJClassinstance 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 JTypecreateEnumeration(JType jType, boolean usejava50)Factory method for creating aJCollectionTypeinstance representing an enumeration.static JTypecreateEnumeration(JType jType, boolean usejava50, boolean useExtends)Factory method for creating aJCollectionTypeinstance representing an enumeration.static JTypecreateHashtable(boolean useJava50)Factory method for creating aJCollectionTypeinstance representing anHashtableinstance.static JTypecreateIterator(JType jType, boolean usejava50)Factory method for creating aJCollectionTypeinstance representing anIteratorinstance.static JTypecreateIterator(JType jType, boolean usejava50, boolean useExtends)Factory method for creating aJCollectionTypeinstance representing anIteratorinstance.
-
-
-
Field Detail
-
MARSHAL_EXCEPTION
public static final JClass MARSHAL_EXCEPTION
Represents aJClassinstance of type 'org.exolab.castor.xml.MarshalException'.
-
VALIDATION_EXCEPTION
public static final JClass VALIDATION_EXCEPTION
Represents aJClassinstance of type 'org.exolab.castor.xml.ValidationException'.
-
INDEX_OUT_OF_BOUNDS_EXCEPTION
public static final JClass INDEX_OUT_OF_BOUNDS_EXCEPTION
Represents aJClassinstance of type 'java.lang.IndexOutOfBoundsException'.
-
IO_EXCEPTION
public static final JClass IO_EXCEPTION
Represents aJClassinstance of type 'java.io.IOException'.
-
-
Method Detail
-
createEnumeration
public static final JType createEnumeration(JType jType, boolean usejava50)
Factory method for creating aJCollectionTypeinstance representing an enumeration.- Parameters:
jType- The content type of the collection.usejava50- Whether Java 5.0 is the target JVM.- Returns:
JCollectionTypeinstance representing an enumeration
-
createEnumeration
public static final JType createEnumeration(JType jType, boolean usejava50, boolean useExtends)
Factory method for creating aJCollectionTypeinstance 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:
JCollectionTypeinstance representing an enumeration
-
createIterator
public static final JType createIterator(JType jType, boolean usejava50)
Factory method for creating aJCollectionTypeinstance representing anIteratorinstance.- Parameters:
jType- The content type of the collection.usejava50- Whether Java 5.0 is the target JVM.- Returns:
JCollectionTypeinstance representing anIterator
-
createIterator
public static final JType createIterator(JType jType, boolean usejava50, boolean useExtends)
Factory method for creating aJCollectionTypeinstance representing anIteratorinstance.- 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:
JCollectionTypeinstance representing anIterator
-
createHashtable
public static final JType createHashtable(boolean useJava50)
Factory method for creating aJCollectionTypeinstance representing anHashtableinstance.- Parameters:
useJava50- Whether Java 5.0 is the target JVM.- Returns:
JCollectionTypeinstance representing aHashtable
-
-