Package org.exolab.castor.builder.types
Class XSCollectionFactory
- java.lang.Object
-
- org.exolab.castor.builder.types.XSCollectionFactory
-
public final class XSCollectionFactory extends java.lang.ObjectHelper class to facilitate creation of XML schema collection types.- Since:
- 1.1
- Author:
- Werner Guttmann
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XSListTypecreateCollection(java.lang.String collectionName, XSType contentType, boolean useJava50)Factory method to create an XS collection type, i.e.
-
-
-
Method Detail
-
createCollection
public static XSListType createCollection(java.lang.String collectionName, XSType contentType, boolean useJava50)
Factory method to create an XS collection type, i.e. an instance ofXSListType.- Parameters:
collectionName- The name of the Java collection type,e.g. 'java.util.Collection'contentType- the content type of the collection, ie. the type of objects that the collection will containuseJava50- true if source code is supposed to be generated for Java 5- Returns:
- An
XSListTypeinstance. - See Also:
XSListType
-
-