2 * Copyright (c) 2014 Brocade Communications Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.cluster.datastore.node.utils.serialization;
10 import java.util.List;
13 * Implementation of the QNameDeSerializationContext interface.
15 * @author Thomas Pantelis
17 public class QNameDeSerializationContextImpl implements QNameDeSerializationContext {
19 private final List<String> codeList;
21 public QNameDeSerializationContextImpl(List<String> codeList) {
22 this.codeList = codeList;
26 public String getNamespace(int namespace) {
27 return codeList.get(namespace);
31 public String getRevision(int revision) {
32 return codeList.get(revision);
36 public String getLocalName(int localName) {
37 return codeList.get(localName);