public class FormatterMetadata
extends org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem
RooFormatter.| Constructor and Description |
|---|
FormatterMetadata(String identifier,
org.springframework.roo.model.JavaType aspectName,
org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata,
org.springframework.roo.model.JavaType entity,
org.springframework.roo.model.JavaType identifierType,
List<org.springframework.roo.classpath.details.MethodMetadata> entityAccessors,
org.springframework.roo.model.JavaType service)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
createIdentifier(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.project.LogicalPath path) |
org.springframework.roo.classpath.details.ConstructorMetadata |
getConstructor()
This method returns the formatter constructor
|
org.springframework.roo.classpath.details.FieldMetadata |
getConversionServiceField()
This method returns conversionSevice field included on controller
|
static org.springframework.roo.model.JavaType |
getJavaType(String metadataIdentificationString) |
static String |
getMetadataIdentiferType() |
org.springframework.roo.classpath.details.MethodMetadata |
getParseMethod()
This method returns the parse method necessary on generated
formatters
|
static org.springframework.roo.project.LogicalPath |
getPath(String metadataIdentificationString) |
org.springframework.roo.classpath.details.MethodMetadata |
getPrintMethod()
This method returns the print method necessary on generated
formatters
|
org.springframework.roo.classpath.details.FieldMetadata |
getServiceField()
This method returns service field included on controller
|
static boolean |
isValid(String metadataIdentificationString) |
String |
toString() |
buildItd, ensureGovernorExtends, ensureGovernorHasConstructor, ensureGovernorHasField, ensureGovernorHasMethod, ensureGovernorImplements, ensureGovernorIsAnnotated, getAccessorMethod, getAccessorMethod, getAccessorMethod, getAccessorMethod, getAspectName, getField, getField, getGovernorMethod, getGovernorMethod, getMemberHoldingTypeDetails, getMethod, getMutatorMethod, getMutatorMethod, getTypeAnnotation, governorHasMethod, governorHasMethod, governorHasMethodWithSameName, hashCode, isImplementingpublic FormatterMetadata(String identifier, org.springframework.roo.model.JavaType aspectName, org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata, org.springframework.roo.model.JavaType entity, org.springframework.roo.model.JavaType identifierType, List<org.springframework.roo.classpath.details.MethodMetadata> entityAccessors, org.springframework.roo.model.JavaType service)
identifier - the identifier for this item of metadata (required)aspectName - the Java type of the ITD (required)governorPhysicalTypeMetadata - the governor, which is expected to
contain a ClassOrInterfaceTypeDetails (required)entity - Javatype with entityidentifierType - JavaType with the identifier type of provided entityentityAccessors - List with all accessors of declared entityservice - JavaType with servicepublic static String createIdentifier(org.springframework.roo.model.JavaType javaType, org.springframework.roo.project.LogicalPath path)
public static org.springframework.roo.model.JavaType getJavaType(String metadataIdentificationString)
public static String getMetadataIdentiferType()
public static org.springframework.roo.project.LogicalPath getPath(String metadataIdentificationString)
public static boolean isValid(String metadataIdentificationString)
public org.springframework.roo.classpath.details.ConstructorMetadata getConstructor()
public org.springframework.roo.classpath.details.MethodMetadata getParseMethod()
public org.springframework.roo.classpath.details.MethodMetadata getPrintMethod()
public org.springframework.roo.classpath.details.FieldMetadata getServiceField()
public org.springframework.roo.classpath.details.FieldMetadata getConversionServiceField()
public String toString()
toString in class org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItemCopyright © 2009–2016. All rights reserved.