org.springframework.roo.addon.javabean
Class JavaBeanMetadata
java.lang.Object
org.springframework.roo.metadata.AbstractMetadataItem
org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem
org.springframework.roo.addon.javabean.JavaBeanMetadata
- All Implemented Interfaces:
- org.springframework.roo.classpath.itd.ItdTypeDetailsProvidingMetadataItem, org.springframework.roo.metadata.MetadataItem
public class JavaBeanMetadata
- extends org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem
Metadata for RooJavaBean
.
Any getter or setter produced by this metadata is automatically included in the
BeanInfoMetadata
.
- Since:
- 1.0
- Author:
- Ben Alex
Fields inherited from class org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem |
aspectName, builder, destination, governorPhysicalTypeMetadata, governorTypeDetails, itdTypeDetails |
Fields inherited from class org.springframework.roo.metadata.AbstractMetadataItem |
valid |
Constructor Summary |
JavaBeanMetadata(String identifier,
org.springframework.roo.model.JavaType aspectName,
org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata)
|
Method Summary |
static String |
createIdentifier(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.project.Path path)
|
org.springframework.roo.classpath.details.MethodMetadata |
getDeclaredGetter(org.springframework.roo.classpath.details.FieldMetadata field)
Obtains the specific accessor method that is either contained within the normal Java compilation unit or will
be introduced by this add-on via an ITD. |
org.springframework.roo.classpath.details.MethodMetadata |
getDeclaredSetter(org.springframework.roo.classpath.details.FieldMetadata field)
Obtains the specific mutator method that is either contained within the normal Java compilation unit or will
be introduced by this add-on via an ITD. |
static org.springframework.roo.model.JavaType |
getJavaType(String metadataIdentificationString)
|
static String |
getMetadataIdentiferType()
|
static org.springframework.roo.project.Path |
getPath(String metadataIdentificationString)
|
static boolean |
isValid(String metadataIdentificationString)
|
String |
toString()
|
Methods inherited from class org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem |
getItdTypeDetails |
Methods inherited from class org.springframework.roo.metadata.AbstractMetadataItem |
getId, isValid |
Methods inherited from interface org.springframework.roo.metadata.MetadataItem |
getId, isValid |
JavaBeanMetadata
public JavaBeanMetadata(String identifier,
org.springframework.roo.model.JavaType aspectName,
org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata)
getDeclaredGetter
public org.springframework.roo.classpath.details.MethodMetadata getDeclaredGetter(org.springframework.roo.classpath.details.FieldMetadata field)
- Obtains the specific accessor method that is either contained within the normal Java compilation unit or will
be introduced by this add-on via an ITD.
- Parameters:
field
- that already exists on the type either directly or via introduction (required; must be declared by this type to be located)
- Returns:
- the method corresponding to an accessor, or null if not found
getDeclaredSetter
public org.springframework.roo.classpath.details.MethodMetadata getDeclaredSetter(org.springframework.roo.classpath.details.FieldMetadata field)
- Obtains the specific mutator method that is either contained within the normal Java compilation unit or will
be introduced by this add-on via an ITD.
- Parameters:
field
- that already exists on the type either directly or via introduction (required; must be declared by this type to be located)
- Returns:
- the method corresponding to a mutator, or null if not found
toString
public String toString()
- Overrides:
toString
in class org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem
getMetadataIdentiferType
public static final String getMetadataIdentiferType()
createIdentifier
public static final String createIdentifier(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.project.Path path)
getJavaType
public static final org.springframework.roo.model.JavaType getJavaType(String metadataIdentificationString)
getPath
public static final org.springframework.roo.project.Path getPath(String metadataIdentificationString)
isValid
public static boolean isValid(String metadataIdentificationString)
Copyright © 2009-2010 VMware, Inc. All Rights Reserved.