Class NamingKit


  • public class NamingKit
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      NamingKit()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toGraphqlName​(java.lang.String name)
      Graphql 3.x has valid names of [_A-Za-z][_0-9A-Za-z]* and hence Java generated names like Class$Inner wont work so we make a unique name from it
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NamingKit

        public NamingKit()
    • Method Detail

      • toGraphqlName

        public static java.lang.String toGraphqlName​(java.lang.String name)
        Graphql 3.x has valid names of [_A-Za-z][_0-9A-Za-z]* and hence Java generated names like Class$Inner wont work so we make a unique name from it
        Parameters:
        name - the name to ensure
        Returns:
        a valid name