org.codehaus.modello.plugin.java.javasource
Class JCollectionType

java.lang.Object
  extended by org.codehaus.modello.plugin.java.javasource.JType
      extended by org.codehaus.modello.plugin.java.javasource.JComponentizedType
          extended by org.codehaus.modello.plugin.java.javasource.JCollectionType

public final class JCollectionType
extends JComponentizedType

JType sub-class for collections.

Since:
1.0.4
Version:
$Revision: 1041 $ $Date: 2008-12-21 23:06:18 +0100 (So, 21 Dez 2008) $
Author:
Werner Guttman

Field Summary
 
Fields inherited from class org.codehaus.modello.plugin.java.javasource.JType
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, SHORT
 
Constructor Summary
JCollectionType(String typeName, JType componentType, boolean useJava50)
          Creates an instance of a collection type, of type 'collectionName'.
JCollectionType(String typeName, String instanceName, 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.codehaus.modello.plugin.java.javasource.JComponentizedType
getComponentType, isUseJava50
 
Methods inherited from class org.codehaus.modello.plugin.java.javasource.JType
changePackage, createArray, getLocalName, getName, isArray, isPrimitive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

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.
Method Detail

getInstanceName

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

Returns:
The instance name of this collection type.

toString

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

Overrides:
toString in class JType
Returns:
the String representation of this JType


Copyright © 2001-2011 Codehaus. All Rights Reserved.