public class VirtualMappingMethod extends MappingMethod
BuiltInMethod.Writable.Context| Constructor and Description |
|---|
VirtualMappingMethod(BuiltInMethod method) |
VirtualMappingMethod(HelperMethod method) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Type |
findType(String name)
Finds a
Type by a given name. |
Set<Type> |
getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
String |
getTemplateName()
Returns the name of the template to be used for a specific writable type.
|
int |
hashCode() |
getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, isExistingInstanceMapping, isStatic, toStringgetTemplateNameForClass, writepublic VirtualMappingMethod(BuiltInMethod method)
public VirtualMappingMethod(HelperMethod method)
public String getTemplateName()
FreeMarkerWritableFreeMarkerWritable.getTemplateNameForClass(Class) is called with getClass(), but this can be customized by
overriding this method if required.getTemplateName in class FreeMarkerWritablenull.public Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in class MappingMethodnull.public Type findType(String name)
Type by a given name. The name will be compared to the fully-qualified and also simple
names of the importTypes.name - Fully-qualified or simple name of the type.null.IllegalArgumentException - In case no Type was found for given name.public int hashCode()
hashCode in class MappingMethodpublic boolean equals(Object obj)
equals in class MappingMethodCopyright © 2012–2018. All rights reserved.