Package org.exolab.castor.builder
Class SGTypes
java.lang.Object
org.exolab.castor.builder.SGTypes
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$ $Date: 2005-10-10 06:35:52 -0600 (Mon, 10 Oct 2005) $
- Author:
- Keith Visco
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JClass
Represents aJClass
instance of type 'java.lang.Class'.static final JClass
Represents aJClass
instance of type 'java.lang.IndexOutOfBoundsException'.static final JClass
Represents aJClass
instance of type 'java.io.IOException'.static final JClass
Represents aJClass
instance of type 'org.exolab.castor.xml.MarshalException'.static final JClass
Represents aJClass
instance of type 'java.lang.Object'.static final JClass
Represents aJClass
instance of type 'java.beans.PropertyChangeSupport'.static final JClass
Represents aJClass
instance of type 'java.io.Reader'.static final JClass
Represents aJClass
instance of type 'java.lang.String'.static final JClass
Represents aJClass
instance of type 'org.exolab.castor.xml.ValidationException'.static final JClass
Represents aJClass
instance of type 'java.lang.Writer'. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final JType
createEnumeration
(JType jType, boolean usejava50) Factory method for creating aJCollectionType
instance representing an enumeration.static final JType
createEnumeration
(JType jType, boolean usejava50, boolean useExtends) Factory method for creating aJCollectionType
instance representing an enumeration.static final JType
createHashtable
(boolean useJava50) Factory method for creating aJCollectionType
instance representing aninvalid reference
Hashtable
static final JType
createIterator
(JType jType, boolean usejava50) Factory method for creating aJCollectionType
instance representing aninvalid reference
Iterator
static final JType
createIterator
(JType jType, boolean usejava50, boolean useExtends) Factory method for creating aJCollectionType
instance representing aninvalid reference
Iterator
-
Field Details
-
MARSHAL_EXCEPTION
-
VALIDATION_EXCEPTION
-
INDEX_OUT_OF_BOUNDS_EXCEPTION
-
CLASS
-
OBJECT
-
STRING
-
IO_EXCEPTION
-
READER
-
WRITER
-
PROPERTY_CHANGE_SUPPORT
-
-
Constructor Details
-
SGTypes
public SGTypes()
-
-
Method Details
-
createEnumeration
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
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
Factory method for creating aJCollectionType
instance representing aninvalid reference
Iterator
- Parameters:
jType
- The content type of the collection.usejava50
- Whether Java 5.0 is the target JVM.- Returns:
JCollectionType
instance representing aninvalid reference
Iterator
-
createIterator
Factory method for creating aJCollectionType
instance representing aninvalid reference
Iterator
- 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 aninvalid reference
Iterator
-
createHashtable
Factory method for creating aJCollectionType
instance representing aninvalid reference
Hashtable
- Parameters:
useJava50
- Whether Java 5.0 is the target JVM.- Returns:
JCollectionType
instance representing ainvalid reference
Hashtable
-