public static Processor GetProcessor(WSNormalizationMode mode)
        {
            switch (mode)
            {
            case WSNormalizationMode.Preserve:
                return(new Processor(preserve));

            case WSNormalizationMode.Replace:
                return(new Processor(replace));

            case WSNormalizationMode.Collapse:
                return(new Processor(collapse));

            default:
                // assertion failed
                throw new Exception();
            }
        }
Пример #2
0
 protected DatatypeImpl(WSNormalizationMode mode)
 {
     wsProcessor = WhitespaceNormalizer.GetProcessor(mode);
 }
 public StringType(WSNormalizationMode mode)
     : base(mode)
 {
 }
Пример #4
0
 public StringType(WSNormalizationMode mode) : base(mode)
 {
 }