Removed untyped contructor from ComponentRegistration and add a protected setter.
[castle.git] / Experiments / Generator / src / app / NamedGeneratorBase.boo
blob23b1cd5090785a0cd55785246e69bea1aac6607e
1 namespace Generator
3 import Generator.Extentions
5 abstract class NamedGeneratorBase(GeneratorBase):
6 [Property(Name), Argument('The name of the thing to generate')]
7 _name as string
9 virtual VarName:
10 get:
11 return _name.ToVarName()
13 virtual ClassName:
14 get:
15 return _name.ToClassName()
17 virtual FileName:
18 get:
19 return _name.ToFileName()
21 virtual TableName:
22 get:
23 return PluralClassName
25 virtual PluralClassName:
26 get:
27 return ClassName.ToPlural()
29 virtual CrossPlatformPluralClassName:
30 get:
31 return ClassName.ToPlural().ToLower()
33 virtual PluralVarName:
34 get:
35 return VarName.ToPlural()
37 virtual SingularVarName:
38 get:
39 return VarName.ToSingular()
41 virtual HumanName:
42 get:
43 return _name.ToHumanName()
45 virtual PluralHumanName:
46 get:
47 return HumanName.ToPlural()
49 virtual SingularHumanName:
50 get:
51 return HumanName.ToSingular()