3d35c03ba5a1285340d8e82766ca5127ac29c895
[mdsal.git] / code-generator / binding-data-codec / src / main / java / org / opendaylight / yangtools / binding / data / codec / gen / impl / AbstractGenerator.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.binding.data.codec.gen.impl;
9
10 /**
11  * Package-private base class for sharing the loading capability.
12  */
13 abstract class AbstractGenerator {
14     /**
15      * Ensure that the serializer class for specified class is loaded
16      * and return its name.
17      *
18      * @param cls Data object class
19      * @return Serializer class name
20      */
21     protected abstract String loadSerializerFor(final Class<?> cls);
22 }