Composite node <-> normalized node serializer and deserializer
[yangtools.git] / yang / yang-data-json / src / main / java / org / opendaylight / yangtools / yang / data / json / schema / cnsn / parser / LeafSetNodeCnSnParser.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.data.json.schema.cnsn.parser;
9
10 import org.opendaylight.yangtools.yang.data.api.Node;
11 import org.opendaylight.yangtools.yang.data.api.schema.LeafSetEntryNode;
12 import org.opendaylight.yangtools.yang.data.impl.schema.transform.ToNormalizedNodeParser;
13 import org.opendaylight.yangtools.yang.data.impl.schema.transform.base.parser.LeafSetNodeBaseParser;
14 import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
15
16 public class LeafSetNodeCnSnParser extends LeafSetNodeBaseParser<Node<?>> {
17
18     private final LeafSetEntryNodeCnSnParser leafSetEntryNodeCnSnParser;
19
20     public LeafSetNodeCnSnParser(LeafSetEntryNodeCnSnParser leafSetEntryNodeCnSnParser) {
21         this.leafSetEntryNodeCnSnParser = leafSetEntryNodeCnSnParser;
22     }
23
24     @Override
25     protected ToNormalizedNodeParser<Node<?>, LeafSetEntryNode<?>, LeafListSchemaNode> getLeafSetEntryNodeParser() {
26         return leafSetEntryNodeCnSnParser;
27     }
28 }