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;
11 import org.opendaylight.yangtools.yang.binding.BindingCodec;
12 import org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode;
15 public interface GeneratorListener {
16 void onClassProcessed(Class<?> cl);
18 void onCodecCreated(Class<?> codec);
19 void onValueCodecCreated(Class<?> valueClass, Class<?> valueCodec);
20 void onCaseCodecCreated(Class<?> choiceClass, Class<? extends BindingCodec<Map<QName, Object>, Object>> choiceCodec);
21 void onDataContainerCodecCreated(Class<?> dataClass, Class<? extends BindingCodec<?, ?>> dataCodec);
23 void onChoiceCodecCreated(Class<?> choiceClass,
24 Class<? extends BindingCodec<Map<QName, Object>, Object>> choiceCodec, ChoiceSchemaNode schema);