org.springframework.roo.classpath.details
Class DefaultPhysicalTypeDetails

java.lang.Object
  extended by org.springframework.roo.model.AbstractCustomDataAccessorProvider
      extended by org.springframework.roo.classpath.details.DefaultPhysicalTypeDetails
All Implemented Interfaces:
PhysicalTypeDetails, org.springframework.roo.model.CustomDataAccessor

public class DefaultPhysicalTypeDetails
extends org.springframework.roo.model.AbstractCustomDataAccessorProvider
implements PhysicalTypeDetails

Simple implementation of PhysicalTypeDetails that is suitable for PhysicalTypeCategory.OTHER or sub-classing by category-specific implementations.

Since:
1.0
Author:
Ben Alex

Constructor Summary
DefaultPhysicalTypeDetails(PhysicalTypeCategory physicalTypeCategory, org.springframework.roo.model.JavaType javaType)
           
 
Method Summary
 org.springframework.roo.model.JavaType getName()
           
 PhysicalTypeCategory getPhysicalTypeCategory()
           
 org.springframework.roo.model.JavaType getType()
          Returns the JavaType provided by this physical type.
 
Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorProvider
getCustomData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.roo.model.CustomDataAccessor
getCustomData
 

Constructor Detail

DefaultPhysicalTypeDetails

public DefaultPhysicalTypeDetails(PhysicalTypeCategory physicalTypeCategory,
                                  org.springframework.roo.model.JavaType javaType)
Method Detail

getName

public org.springframework.roo.model.JavaType getName()
Specified by:
getName in interface PhysicalTypeDetails
See Also:
#getType(), which returns the same thing but is better named

getPhysicalTypeCategory

public PhysicalTypeCategory getPhysicalTypeCategory()
Specified by:
getPhysicalTypeCategory in interface PhysicalTypeDetails
Returns:
the category of Java type being provided by this PhysicalTypeDetails instance (never null)

getType

public org.springframework.roo.model.JavaType getType()
Description copied from interface: PhysicalTypeDetails
Returns the JavaType provided by this physical type. If possible, indicates any type parameters.

Specified by:
getType in interface PhysicalTypeDetails
Returns:
the full name of the type that members will eventually be available from when compiled, including any available type parameters (may be null if unable to parse)


Copyright © 2009–2015. All rights reserved.