Thanks, Stefan. I'll have a look at generics tonite.
Regarding the need of a builder for each class, I think it would help habing a consistent system across all the SCs. Otherwise, this idea should apply to the other schema objects. Le dim. 19 mars 2017 à 10:58, Stefan Seelmann <m...@stefan-seelmann.de> a écrit : > On 03/17/2017 11:00 AM, Emmanuel Lécharny wrote: > > The only requirement is that each SC has its own builder (we can't put > > this code in the abstract SC, because it's abstract...) > > With some generics magic it should at least be possible to move common > stuff (setOid) to the parent. > > Otherwise, I'm not sure if it's worth to create builders for all the > "simple" syntax checkers (Boolean, DirectoryString, etc.) or if just a > singleton immutable instance is sufficient. > > But in general it makes sense to have immutable syntax checkers :) > > > -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com