Class AttributeBuilderDescriptor

    • Constructor Detail

      • AttributeBuilderDescriptor

        public AttributeBuilderDescriptor()
    • Method Detail

      • getValueToBuilderMethod

        protected abstract java.lang.String getValueToBuilderMethod()
        A method name which when invoked will return a builder with all the properties set from the value object. This method will be invoked based on getValueToBuilderTarget()
        Returns:
        method to create a value instance. No () included.
      • getQualifiedValueToBuilderMethod

        public java.lang.String getQualifiedValueToBuilderMethod()
        Uses getValueToBuilderTarget() to determine appropriate format for creating a new builder from a value object. The template needs to still query isCopyMethodOnValueInstance() to determine whether to use [expression].[n.getQualifiedValueToBuilderMethod]() vs [n.getQualifiedValueToBuilderMethod]([expression])
        Returns:
        method to use for converting a value to a builder.
      • getBuildMethod

        public abstract java.lang.String getBuildMethod()
        A method to be invoked on the builder instance which returns a new value instance.
        Returns:
        a method which constructs a new value instance.
      • getQualifiedValueTypeName

        public abstract java.lang.String getQualifiedValueTypeName()
        A fully qualified type for the value object.
        Returns:
        fully qualified name of the value type.
      • getQualifiedBuilderTypeName

        public abstract java.lang.String getQualifiedBuilderTypeName()
        A fully qualified type for the builder object.
        Returns:
        fully qualified name of the builder type.
      • getQualifiedValueTypeNameWithUnderscores

        public java.lang.String getQualifiedValueTypeNameWithUnderscores()
        Use to generate helper methods for a specific builder/value in a unique namespace.
        Returns:
        fully qualified name of the value type joined by underscores.
      • getQualifiedBuilderConstructorMethod

        public abstract java.lang.String getQualifiedBuilderConstructorMethod()
        A fully qualified path and method which creates a new instance of a builder. If the builder is constructed from a no-arg constructor, the new keyword should be prepended with a space.
        Returns:
        static path which invoked will create a new empty builder. No () included.