2 * Copyright (c) 2014 Cisco 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.yangtools.sal.binding.generator.impl;
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;
16 public interface GeneratorListener {
20 void onClassProcessed(Class<?> cl);
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);
27 void onChoiceCodecCreated(Class<?> choiceClass,
28 Class<? extends BindingCodec<Map<QName, Object>, Object>> choiceCodec, ChoiceNode schema);