org.exolab.javasource

Class JCollectionType


public class JCollectionType
extends JComponentizedType

JType sub-class for collections.
Since:
1.0.4

Field Summary

Fields inherited from class org.exolab.javasource.JType

BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, SHORT

Constructor Summary

JCollectionType(String typeName, String instanceName, JType componentType, boolean useJava50)
Creates an instance of a collection type, of type 'collectionName'.
JCollectionType(String typeName, JType componentType, boolean useJava50)
Creates an instance of a collection type, of type 'collectionName'.

Method Summary

String
getInstanceName()
Returns the instance name of this collection type.
String
toString()
Returns the String representation of this JType, which is simply the name of this type.

Methods inherited from class org.exolab.javasource.JComponentizedType

getComponentType, isUseJava50

Methods inherited from class org.exolab.javasource.JType

changePackage, getLocalName, getName, getWrapperName, isArray, isPrimitive, toString

Constructor Details

JCollectionType

public JCollectionType(String typeName,
                       String instanceName,
                       JType componentType,
                       boolean useJava50)
Creates an instance of a collection type, of type 'collectionName'.
Parameters:
typeName - Name of the collection type interface.
instanceName - Name of the actual collection type instance.
componentType - Component type.
useJava50 - True if Java 5.0 should be used.

JCollectionType

public JCollectionType(String typeName,
                       JType componentType,
                       boolean useJava50)
Creates an instance of a collection type, of type 'collectionName'.
Parameters:
typeName - Name of the collection type interface.
componentType - Component type.
useJava50 - True if Java 5.0 should be used.

Method Details

getInstanceName

public final String getInstanceName()
Returns the instance name of this collection type.
Returns:
the instance name of this collection type.

toString

public final String toString()
Returns the String representation of this JType, which is simply the name of this type.
Overrides:
toString in interface JType
Returns:
the String representation of this JType

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