Class OperationGenerator

  • All Implemented Interfaces:
    org.tentackle.validate.ScopeConfigurator, org.tentackle.validate.Validateable

    public class OperationGenerator
    extends AbstractValidateableGenerator
    Generator for the operation files.
    • Constructor Detail

      • OperationGenerator

        public OperationGenerator()
    • Method Detail

      • generate

        public java.util.List<org.tentackle.validate.ValidationResult> generate()
                                                                         throws java.io.IOException,
                                                                                freemarker.template.TemplateException
        Creates the operation files.
        Returns:
        the validation results, empty if okay, never null
        Throws:
        java.io.IOException - if file creation failed
        freemarker.template.TemplateException - if code generation failed
      • isDomainValid

        public boolean isDomainValid()
      • isPersistenceValid

        public boolean isPersistenceValid()
      • getOperationName

        @Bindable
        @NotNull(message="missing operation name")
        public java.lang.String getOperationName()
      • setOperationName

        @Bindable
        public void setOperationName​(java.lang.String operationName)
      • getSuperOperationName

        @Bindable
        public java.lang.String getSuperOperationName()
      • setSuperOperationName

        @Bindable
        public void setSuperOperationName​(java.lang.String superOperationName)
      • isAbstractOperation

        @Bindable
        public boolean isAbstractOperation()
      • setAbstractOperation

        @Bindable
        public void setAbstractOperation​(boolean abstractOperation)
      • getShortDescription

        @Bindable
        @NotNull(message="missing short description")
        public java.lang.String getShortDescription()
      • setShortDescription

        @Bindable
        public void setShortDescription​(java.lang.String shortDescription)
      • getLongDescription

        @Bindable
        public java.lang.String getLongDescription()
      • setLongDescription

        @Bindable
        public void setLongDescription​(java.lang.String longDescription)
      • getDomainInterface

        @Bindable
        @NotNull(message="missing domain interface",
                 condition="!$isPersistenceValid")
        public java.lang.String getDomainInterface()
      • setDomainInterface

        @Bindable
        public void setDomainInterface​(java.lang.String domainInterface)
      • getPersistenceInterface

        @Bindable
        @NotNull(message="missing persistence interface",
                 condition="!$isDomainValid")
        public java.lang.String getPersistenceInterface()
      • setPersistenceInterface

        @Bindable
        public void setPersistenceInterface​(java.lang.String persistenceInterface)
      • getDomainImplementation

        @Bindable
        @Changeable(condition="$isDomainValid")
        public java.lang.String getDomainImplementation()
      • setDomainImplementation

        @Bindable
        public void setDomainImplementation​(java.lang.String domainImplementation)
      • getPersistenceImplementation

        @Bindable
        @Changeable(condition="$isPersistenceValid")
        public java.lang.String getPersistenceImplementation()
      • setPersistenceImplementation

        @Bindable
        public void setPersistenceImplementation​(java.lang.String persistenceImplementation)
      • isRemoteEnabled

        @Bindable
        public boolean isRemoteEnabled()
      • setRemoteEnabled

        @Bindable
        public void setRemoteEnabled​(boolean remoteEnabled)
      • getSuperOperationInterface

        public java.lang.String getSuperOperationInterface()
        Gets the name of the parent operation interface.
        Returns:
        the super interface
      • getSuperDomainInterface

        public java.lang.String getSuperDomainInterface()
        Gets the name of the parent domain interface.
        Returns:
        the super domain interface
      • getSuperPersistenceInterface

        public java.lang.String getSuperPersistenceInterface()
        Gets the name of the parent persistence interface.
        Returns:
        the super persistence interface
      • getSuperDomainImplementation

        public java.lang.String getSuperDomainImplementation()
        Gets the name of the parent domain class.
        Returns:
        the super domain class
      • getSuperPersistenceImplementation

        public java.lang.String getSuperPersistenceImplementation()
        Gets the name of the parent persistence class.
        Returns:
        the super persistence class