ec34733c96db97eed22f5cbc260aa61f1b65cdb4
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / 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.mdsal.binding.dom.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 }