Merge "Do not depend on jersey-client"
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / transform / dom / serializer / LeafSetNodeDomSerializer.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.impl.schema.transform.dom.serializer;
9
10 import org.opendaylight.yangtools.yang.data.api.schema.LeafSetEntryNode;
11 import org.opendaylight.yangtools.yang.data.impl.schema.transform.FromNormalizedNodeSerializer;
12 import org.opendaylight.yangtools.yang.data.impl.schema.transform.base.serializer.LeafSetNodeBaseSerializer;
13 import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
14 import org.w3c.dom.Element;
15
16 final class LeafSetNodeDomSerializer extends LeafSetNodeBaseSerializer<Element> {
17     private final FromNormalizedNodeSerializer<Element, LeafSetEntryNode<?>, LeafListSchemaNode> leafSetEntryNodeSerializer;
18
19     LeafSetNodeDomSerializer(LeafSetEntryNodeDomSerializer leafSetEntryNodeSerializer) {
20         this.leafSetEntryNodeSerializer = leafSetEntryNodeSerializer;
21     }
22
23     @Override
24     protected FromNormalizedNodeSerializer<Element, LeafSetEntryNode<?>, LeafListSchemaNode> getLeafSetEntryNodeSerializer() {
25         return leafSetEntryNodeSerializer;
26     }
27 }