public class OperationGenerator extends AbstractGenerator
| Constructor and Description |
|---|
OperationGenerator() |
createFreemarkerConfiguration, getDefaultScopes, setTemplateDirectory, validatepublic List<org.tentackle.validate.ValidationResult> generate() throws IOException, freemarker.template.TemplateException
IOException - if file creation failedfreemarker.template.TemplateException - if code generation failedpublic boolean isDomainValid()
public boolean isPersistenceValid()
@Bindable @NotNull public OperationProfile getProfile()
@Bindable public void setProfile(OperationProfile profile)
@Bindable @NotNull(message="missing operation name") public String getOperationName()
@Bindable public void setOperationName(String operationName)
@Bindable public String getSuperOperationName()
@Bindable public void setSuperOperationName(String superOperationName)
@Bindable public boolean isAbstractOperation()
@Bindable public void setAbstractOperation(boolean abstractOperation)
@Bindable @NotNull(message="missing short description") public String getShortDescription()
@Bindable public void setShortDescription(String shortDescription)
@Bindable public String getLongDescription()
@Bindable public void setLongDescription(String longDescription)
@Bindable
@NotNull(message="missing domain interface",
condition="!$isPersistenceValid")
public String getDomainInterface()
@Bindable public void setDomainInterface(String domainInterface)
@Bindable
@NotNull(message="missing persistence interface",
condition="!$isDomainValid")
public String getPersistenceInterface()
@Bindable public void setPersistenceInterface(String persistenceInterface)
@Bindable @Changeable(condition="$isDomainValid") public String getDomainImplementation()
@Bindable public void setDomainImplementation(String domainImplementation)
@Bindable @Changeable(condition="$isPersistenceValid") public String getPersistenceImplementation()
@Bindable public void setPersistenceImplementation(String persistenceImplementation)
@Bindable public boolean isRemoteEnabled()
@Bindable public void setRemoteEnabled(boolean remoteEnabled)
public String getSuperOperationInterface()
public String getSuperDomainInterface()
public String getSuperPersistenceInterface()
public String getSuperDomainImplementation()
public String getSuperPersistenceImplementation()
Tentackle - distributed, domain- and model-driven