org.exolab.castor.builder.types
Class XSCollectionFactory

java.lang.Object
  extended by org.exolab.castor.builder.types.XSCollectionFactory

public class XSCollectionFactory
extends java.lang.Object

Helper class to facilitate creation of XML schema collection types.

Since:
1.1
Author:
Werner Guttmann

Constructor Summary
XSCollectionFactory()
           
 
Method Summary
static XSListType createCollection(java.lang.String collectionName, XSType contentType, boolean useJava50)
          Factory method to create an XS collection type, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSCollectionFactory

public XSCollectionFactory()
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 of XSListType.

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 contain
useJava50 - true if source code is supposed to be generated for Java 5
Returns:
An XSListType instance.
See Also:
XSListType


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com