org.slim3.commons.beanutil
Class ParameterizedClassDesc

java.lang.Object
  extended by org.slim3.commons.beanutil.ParameterizedClassDesc

public final class ParameterizedClassDesc
extends Object

This class describes a parameterized class.

Since:
3.0
Author:
koichik, higa

Method Summary
static ParameterizedClassDesc create(Type type)
          Creates a parameterized class descriptor.
 ParameterizedClassDesc[] getArguments()
          Returns the ParameterizedClassDesc objects.
 Class<?> getElementClassOfCollection()
          Returns the element class of collection.
 Class<?> getKeyClassOfMap()
          Returns the key class of map.
 Class<?> getRawClass()
          Returns the raw class.
 Class<?> getValueClassOfMap()
          Returns the value class of map.
 boolean isParameterized()
          Determines if the property is parameterized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ParameterizedClassDesc create(Type type)
Creates a parameterized class descriptor.

Parameters:
type - the type
Returns:
a parameterized class descriptor

isParameterized

public boolean isParameterized()
Determines if the property is parameterized. Returns true if the property is parameterized.

Returns:
whether the property is parameterized

getRawClass

public Class<?> getRawClass()
Returns the raw class.

Returns:
the raw class

getArguments

public ParameterizedClassDesc[] getArguments()
Returns the ParameterizedClassDesc objects.

Returns:
the ParameterizedClassDesc objects

getElementClassOfCollection

public Class<?> getElementClassOfCollection()
Returns the element class of collection.

Returns:
the element class of collection

getKeyClassOfMap

public Class<?> getKeyClassOfMap()
Returns the key class of map.

Returns:
the key class of map

getValueClassOfMap

public Class<?> getValueClassOfMap()
Returns the value class of map.

Returns:
the value class of map


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.