org.exolab.castor.builder.info
Class CollectionInfoJ2
java.lang.Object
org.exolab.castor.builder.info.FieldInfo
org.exolab.castor.builder.info.CollectionInfo
org.exolab.castor.builder.info.CollectionInfoJ2
- All Implemented Interfaces:
- NatureExtendable, PropertyHolder, XMLInfo
- Direct Known Subclasses:
- CollectionInfoJ2Collection, CollectionInfoJ2Set, CollectionInfoJ2SortedSet
public class CollectionInfoJ2
- extends CollectionInfo
A helper used for generating source that deals with Java 2 Collections.
- Version:
- $Revision: 7700 $ $Date: 2006-02-23 01:08:24 -0700 (Thu, 23 Feb 2006) $
- Author:
- Assaf Arkin
| Methods inherited from class org.exolab.castor.builder.info.CollectionInfo |
getContent, getContentName, getContentType, getElementName, getMethodSuffix, getParameterPrefix, getReferenceMethodSuffix, getReferenceSuffix, getXSList, isExtraMethods, setCreateExtraMethods, setReferenceMethodSuffix |
| Methods inherited from class org.exolab.castor.builder.info.FieldInfo |
addNature, getComment, getDeclaringClassInfo, getDefaultValue, getDeleteMethodName, getFieldInfoReference, getFixedValue, getHasMethodName, getIsMethodName, getMemberAndAccessorFactory, getMethods, getName, getProperty, getReadMethodName, getSubstitutionGroupMembers, getValidator, getVisibility, getWriteMethodName, getXMLFieldHandler, hasNature, isBound, isContainer, isFinal, isNillable, isStatic, isTransient, requiresHasAndDeleteMethods, setBound, setComment, setContainer, setDeclaringClassInfo, setDefaultValue, setFieldInfoReference, setFinal, setFixedValue, setMethods, setNillable, setProperty, setStatic, setSubstitutionGroupMembers, setTransient, setValidator, setVisibility, setXMLFieldHandler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionInfoJ2
public CollectionInfoJ2(XSType contentType,
String name,
String elementName,
String collectionType,
boolean useJava50,
FieldMemberAndAccessorFactory memberAndAccessorFactory,
FieldMemberAndAccessorFactory contentMemberAndAccessorFactory)
- Parameters:
contentType - The content type of the collection, ie. the type of
objects that the collection will contain.name - The name of the Collection.elementName - The element name for each element in collection.collectionType - Java type (e.g., 'arraylist') to use to store the
collection. The name is NOT fully specified and is all lowercase.
Currently, any value but "arraylist" does not work. See
org.exolab.castor.builder.FieldInfoFactory#ARRAY_LISTuseJava50 - true if code is supposed to be generated for Java 5memberAndAccessorFactory - the FieldMemberAndAccessorFactory to be used
Copyright © 2012. All Rights Reserved.