Class MethodMapping

java.lang.Object
no.sikt.graphitron.definitions.mapping.MethodMapping
Direct Known Subclasses:
JOOQMapping

public class MethodMapping extends Object
Stores operations related to rendering get and set method calls.
  • Constructor Details

    • MethodMapping

      public MethodMapping(String name)
  • Method Details

    • getName

      public String getName()
      Returns:
      The exact name of the data that this object corresponds to.
    • asGet

      public String asGet()
      Returns:
      The name for a get[name] method call.
    • asCamelGet

      public String asCamelGet()
      Returns:
      The name for a get[name] method call.
    • asGetCall

      public no.sikt.graphitron.javapoet.CodeBlock asGetCall()
      Returns:
      Format this name as a .get[name]() method call.
    • asSet

      public String asSet()
      Returns:
      The name for a set[name] method call.
    • asSetCall

      public no.sikt.graphitron.javapoet.CodeBlock asSetCall(String input)
      Returns:
      Format this name for a .set[name]([input]) method call.
    • asSetCall

      public no.sikt.graphitron.javapoet.CodeBlock asSetCall(no.sikt.graphitron.javapoet.CodeBlock input)
      Returns:
      Format this name for a .set[name]([input]) method call.
    • asSetKeyCall

      public no.sikt.graphitron.javapoet.CodeBlock asSetKeyCall(no.sikt.graphitron.javapoet.CodeBlock input)
    • asHas

      public String asHas()
      Returns:
      The name for a has[name] method call.
    • asCamelHas

      public String asCamelHas()
      Returns:
      The name for a has[name] method call.
    • asHasCall

      public no.sikt.graphitron.javapoet.CodeBlock asHasCall(no.sikt.graphitron.javapoet.CodeBlock input, boolean iterable)
      Returns:
      Format this name as a .has[name][s]([input]) method call.
    • asCamelHasCall

      public no.sikt.graphitron.javapoet.CodeBlock asCamelHasCall(no.sikt.graphitron.javapoet.CodeBlock input, boolean iterable)
      Returns:
      Format this name as a .has[name][s]([input]) method call.