org.exolab.castor.builder.info
Class CollectionInfoJ2SortedSet

java.lang.Object
  extended by org.exolab.castor.builder.info.XMLInfo
      extended by org.exolab.castor.builder.info.FieldInfo
          extended by org.exolab.castor.builder.info.CollectionInfo
              extended by org.exolab.castor.builder.info.CollectionInfoJ2
                  extended by org.exolab.castor.builder.info.CollectionInfoJ2SortedSet

public final class CollectionInfoJ2SortedSet
extends CollectionInfoJ2

A helper used for generating source that deals with Java 2 Collections of type 'java.util.SortedSet'.

Version:
$Revision: 6302 $ $Date: 2006-02-23 01:08:24 -0700 (Thu, 23 Feb 2006) $
Author:
Werner Guttmann

Field Summary
 
Fields inherited from class org.exolab.castor.builder.info.CollectionInfo
DEFAULT_REFERENCE_SUFFIX, REFERENCE_SUFFIX_PROPERTY
 
Fields inherited from class org.exolab.castor.builder.info.FieldInfo
READ_METHOD, READ_WRITE_METHODS, WRITE_METHOD
 
Fields inherited from class org.exolab.castor.builder.info.XMLInfo
ATTRIBUTE_TYPE, CHOICE_NODE_NAME_ERROR_INDICATION, ELEMENT_TYPE, TEXT_TYPE
 
Constructor Summary
CollectionInfoJ2SortedSet(XSType contentType, java.lang.String name, java.lang.String elementName, boolean useJava50)
          Creates an instance of this class that represents information about a Java collection type of type 'java.util.SortedSet'.
 
Method Summary
protected  void createAddByIndexMethod(JClass jClass)
          
protected  void createGetByIndexMethod(JClass jClass)
          
protected  void createRemoveByIndexMethod(JClass jClass)
          Creates implementation of remove(int i) method.
protected  void createSetByIndexMethod(JClass jClass)
          
 
Methods inherited from class org.exolab.castor.builder.info.CollectionInfoJ2
createAddMethod, createCollectionIterationMethods, createEnumerateMethod
 
Methods inherited from class org.exolab.castor.builder.info.CollectionInfo
addMaxSizeCheck, createAccessMethods, createAddAndRemoveMethods, createBoundPropertyCode, createExtraMethods, createGetAndSetMethods, createGetAsArrayMethod, createGetAsReferenceMethod, createGetCountMethod, createIteratorMethod, createRemoveAllMethod, createRemoveObjectMethod, createSetAsArrayMethod, createSetAsCopyMethod, createSetAsReferenceMethod, generateInitializerCode, getContent, getContentName, getContentType, getElementName, getMethodSuffix, getReferenceMethodSuffix, getXSList, isMultivalued, setCreateExtraMethods, setReferenceMethodSuffix
 
Methods inherited from class org.exolab.castor.builder.info.FieldInfo
createGetterComment, createGetterMethod, createHasAndDeleteMethods, createJavaField, createSetterComment, createSetterMethod, getComment, getDeclaringClassInfo, getDefaultValue, getDeleteMethodName, getFixedValue, getHasMethodName, getMethods, getName, getReadMethodName, getSubstitutionGroupMembers, getValidator, getWriteMethodName, getXMLFieldHandler, isBound, isContainer, isHasAndDeleteMethods, isNillable, isTransient, setBound, setComment, setContainer, setDeclaringClassInfo, setDefaultValue, setFieldInfoReference, setFinal, setFixedValue, setMethods, setNillable, setStatic, setSubstitutionGroupMembers, setTransient, setValidator, setVisibility, setXMLFieldHandler
 
Methods inherited from class org.exolab.castor.builder.info.XMLInfo
getNamespacePrefix, getNamespaceURI, getNodeName, getNodeType, getNodeTypeName, getSchemaType, isElementDefinition, isRequired, setElementDefinition, setMultivalued, setNamespacePrefix, setNamespaceURI, setNodeName, setNodeType, setRequired, setSchemaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionInfoJ2SortedSet

public CollectionInfoJ2SortedSet(XSType contentType,
                                 java.lang.String name,
                                 java.lang.String elementName,
                                 boolean useJava50)
Creates an instance of this class that represents information about a Java collection type of type 'java.util.SortedSet'.

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.
useJava50 - true if code is supposed to be generated for Java 5
Method Detail

createAddByIndexMethod

protected void createAddByIndexMethod(JClass jClass)

Overrides:
createAddByIndexMethod in class CollectionInfo

createGetByIndexMethod

protected void createGetByIndexMethod(JClass jClass)

Overrides:
createGetByIndexMethod in class CollectionInfo

createSetByIndexMethod

protected void createSetByIndexMethod(JClass jClass)

Overrides:
createSetByIndexMethod in class CollectionInfo

createRemoveByIndexMethod

protected void createRemoveByIndexMethod(JClass jClass)
Creates implementation of remove(int i) method.

Overrides:
createRemoveByIndexMethod in class CollectionInfo
Parameters:
jClass - the JClass to which we add this method


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