3 import Generator
.Extentions
5 abstract class NamedGeneratorBase(GeneratorBase
):
6 [Property(Name
), Argument('The name of the thing to generate')]
11 return _name
.ToVarName()
15 return _name
.ToClassName()
19 return _name
.ToFileName()
23 return PluralClassName
25 virtual PluralClassName
:
27 return ClassName
.ToPlural()
29 virtual CrossPlatformPluralClassName
:
31 return ClassName
.ToPlural().ToLower()
33 virtual PluralVarName
:
35 return VarName
.ToPlural()
37 virtual SingularVarName
:
39 return VarName
.ToSingular()
43 return _name
.ToHumanName()
45 virtual PluralHumanName
:
47 return HumanName
.ToPlural()
49 virtual SingularHumanName
:
51 return HumanName
.ToSingular()