Move mdsal-binding-dom codec classes
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / gen / impl / DataObjectSerializerGenerator.java
1 /*
2  * Copyright (c) 2014 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.mdsal.binding.dom.codec.gen.impl;
9
10 import org.opendaylight.mdsal.binding.generator.util.BindingRuntimeContext;
11 import org.opendaylight.yangtools.yang.binding.DataObjectSerializerImplementation;
12
13 /**
14  * Public interface exposed from generator implementation.
15  */
16 public interface DataObjectSerializerGenerator
17         extends org.opendaylight.yangtools.binding.data.codec.gen.impl.DataObjectSerializerGenerator {
18     /**
19      * Get a serializer for a particular type.
20      *
21      * @param type Type class
22      * @return Serializer instance.
23      */
24     @Override
25     DataObjectSerializerImplementation getSerializer(Class<?> type);
26
27     /**
28      * Notify the generator that the runtime context has been updated.
29      * @param runtime New runtime context
30      */
31     @Override
32     void onBindingRuntimeContextUpdated(BindingRuntimeContext runtime);
33 }