Re: Immutable SyntexCheckers

2017-03-19 Thread Stefan Seelmann
On 03/20/2017 02:10 AM, Emmanuel Lécharny wrote: > public class BooleanSyntaxChecker extends SyntaxChecker > { > /** > * A static instance of BooleanSyntaxChecker > */ > public static final BooleanSyntaxChecker INSTANCE = new > BooleanSyntaxChecker( SchemaConstants.BOOLEAN_SYNTAX

Re: Immutable SyntexCheckers

2017-03-19 Thread Emmanuel Lécharny
Le 19/03/2017 à 17:47, Emmanuel Lecharny a écrit : > 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 object

Re: Immutable SyntexCheckers

2017-03-19 Thread Emmanuel Lecharny
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 a écrit : > O

Re: Immutable SyntexCheckers

2017-03-19 Thread Stefan Seelmann
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 n