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: 7479 $ $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 @link
Hashtable
static final JType
createIterator
(JType jType, boolean usejava50) Factory method for creating aJCollectionType
instance representing aninvalid @link
Iterator
static final JType
createIterator
(JType jType, boolean usejava50, boolean useExtends) Factory method for creating aJCollectionType
instance representing aninvalid @link
Iterator
-
Field Details
-
MARSHAL_EXCEPTION
Represents aJClass
instance of type 'org.exolab.castor.xml.MarshalException'. -
VALIDATION_EXCEPTION
Represents aJClass
instance of type 'org.exolab.castor.xml.ValidationException'. -
INDEX_OUT_OF_BOUNDS_EXCEPTION
Represents aJClass
instance of type 'java.lang.IndexOutOfBoundsException'. -
CLASS
Represents aJClass
instance of type 'java.lang.Class'. -
OBJECT
Represents aJClass
instance of type 'java.lang.Object'. -
STRING
Represents aJClass
instance of type 'java.lang.String'. -
IO_EXCEPTION
Represents aJClass
instance of type 'java.io.IOException'. -
READER
Represents aJClass
instance of type 'java.io.Reader'. -
WRITER
Represents aJClass
instance of type 'java.lang.Writer'. -
PROPERTY_CHANGE_SUPPORT
Represents aJClass
instance of type 'java.beans.PropertyChangeSupport'.
-
-
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 @link
Iterator
- Parameters:
jType
- The content type of the collection.usejava50
- Whether Java 5.0 is the target JVM.- Returns:
JCollectionType
instance representing aninvalid @link
Iterator
-
createIterator
Factory method for creating aJCollectionType
instance representing aninvalid @link
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 @link
Iterator
-
createHashtable
Factory method for creating aJCollectionType
instance representing aninvalid @link
Hashtable
- Parameters:
useJava50
- Whether Java 5.0 is the target JVM.- Returns:
JCollectionType
instance representing ainvalid @link
Hashtable
-