org.springframework.roo.addon.web.mvc.controller.details
Class JavaTypeMetadataDetails

java.lang.Object
  extended by org.springframework.roo.addon.web.mvc.controller.details.JavaTypeMetadataDetails

public class JavaTypeMetadataDetails
extends Object

Aggregates metadata for a given JavaType which is needed by Web scaffolding add-ons.

Since:
1.1.2
Author:
Stefan Schmidt

Constructor Summary
JavaTypeMetadataDetails(org.springframework.roo.model.JavaType javaType, String plural, boolean isEnumType, boolean isApplicationType, JavaTypePersistenceMetadataDetails persistenceDetails, String controllerPath)
          Constructor for JavaTypeMetadataDetails.
 
Method Summary
 boolean equals(Object obj)
           
 String getControllerPath()
           
 org.springframework.roo.model.JavaType getJavaType()
           
 JavaTypePersistenceMetadataDetails getPersistenceDetails()
           
 String getPlural()
           
 int hashCode()
           
 boolean isApplicationType()
           
 boolean isEnumType()
           
 boolean isPersistent()
          Indicates whether this JavaType is persisted by the application.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaTypeMetadataDetails

public JavaTypeMetadataDetails(org.springframework.roo.model.JavaType javaType,
                               String plural,
                               boolean isEnumType,
                               boolean isApplicationType,
                               JavaTypePersistenceMetadataDetails persistenceDetails,
                               String controllerPath)
Constructor for JavaTypeMetadataDetails.

Parameters:
javaType - (must not be null)
plural - (must contain text)
isEnumType -
isApplicationType -
persistenceDetails - (may be null if no persistence metadata is present for the javaType)
controllerPath - (must contain text)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getControllerPath

public String getControllerPath()

getJavaType

public org.springframework.roo.model.JavaType getJavaType()

getPersistenceDetails

public JavaTypePersistenceMetadataDetails getPersistenceDetails()

getPlural

public String getPlural()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isApplicationType

public boolean isApplicationType()

isEnumType

public boolean isEnumType()

isPersistent

public boolean isPersistent()
Indicates whether this JavaType is persisted by the application.

Returns:
false if for example it's an enum type
Since:
1.2.1

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009–2015. All rights reserved.