Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The first letter of the identifier will be a small letter. If the three special characters occur alone or in group, they will be removed and the consecutive letter will be capitalized.

      • name-conversion will be mapped as nameConversion

      • yang-._constuct-generation will be mapped as yangConstuctGeneration

  • When identifier name has a special character followed by a number, the following letter from the digits will be capitalized.

      • yang_123construct will be mapped to yang123Construct

  • In java file, class name or attribute name cannot have java keyword or start with digits. During the conversion into java, we add prefix to the identifier “yangAutoPrefix”, by default.

      • _123date will be mapped to yangAutoPrefix123Date

      • const will be mapped to yangAutoPrefixConst

  • As per camelcase conversion rules, no two consecutive letters will have capitalization and the last letter will also not be capitalized.

      • ca-l.e_nder will be mapped to caLeNder

      • tric-._k will be mapped to trick        

  • If users input has capital case, the following will be the conversion methods.

      • TESTNAME will be mapped to testname

      • TEST-NAME will be mapped to testName

      • TestName will be mapped to testName

      • TEST3NAME will be mapped to test3Name

Note :  When the identifier has to be used as java class name, after the above conversion, the first letter will be capitalized and if consecutive capital letters are present, it will be corrected and assigned as java class name. 

...