Merge changes I6265d077,I0be9473e,If481ebdb
[yangtools.git] / code-generator / binding-generator-impl / src / main / java / org / opendaylight / yangtools / sal / binding / generator / impl / GeneratorListener.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.yangtools.sal.binding.generator.impl;
9
10 import java.util.Map;
11
12 import org.opendaylight.yangtools.yang.binding.BindingCodec;
13 import org.opendaylight.yangtools.yang.common.QName;
14 import org.opendaylight.yangtools.yang.model.api.ChoiceNode;
15
16 public interface GeneratorListener {
17
18
19
20     void onClassProcessed(Class<?> cl);
21
22     void onCodecCreated(Class<?> codec);
23     void onValueCodecCreated(Class<?> valueClass, Class<?> valueCodec);
24     void onCaseCodecCreated(Class<?> choiceClass, Class<? extends BindingCodec<Map<QName, Object>, Object>> choiceCodec);
25     void onDataContainerCodecCreated(Class<?> dataClass, Class<? extends BindingCodec<?, ?>> dataCodec);
26
27     void onChoiceCodecCreated(Class<?> choiceClass,
28                               Class<? extends BindingCodec<Map<QName, Object>, Object>> choiceCodec, ChoiceNode schema);
29 }