Change 'type empty' mapping
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / main / java / org / opendaylight / mdsal / binding / java / api / generator / Constants.java
1 /*
2  * Copyright (c) 2013 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.java.api.generator;
9
10 import org.opendaylight.mdsal.binding.model.api.Type;
11 import org.opendaylight.mdsal.binding.model.util.Types;
12 import org.opendaylight.yangtools.yang.common.Empty;
13
14 /**
15  * Various constants when generating JAVA source code.
16  */
17 final class Constants {
18     public static final String COMMA = ",";
19     public static final String DOT = ".";
20
21     /**
22      * Name or prefix (multiple patterns in builder class as composed with '_' and upper case of the field name)
23      * of the class constant which contains list of <code>Pattern</code> instances. The type of this constant is
24      * Pattern[] for more than one pattern, or Pattern if there is only a single one.
25      */
26     public static final String MEMBER_PATTERN_LIST = "patterns";
27
28     /**
29      * Name or prefix (multiple patterns in builder class as composed with '_' and upper case of the field name)
30      * of the class constant which contains a list of XSD regular expression strings. The type of this constant is
31      * String[] (or String for single strings) and it corresponds to {@link #MEMBER_PATTERN_LIST} in both size
32      * and ordering.
33      */
34     public static final String MEMBER_REGEX_LIST = "regexes";
35
36     // This should live in a common artifact
37     static final Type EMPTY = Types.typeForClass(Empty.class);
38
39     private Constants() {
40
41     }
42 }