2 * Copyright (c) 2013 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.mdsal.binding.java.api.generator;
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;
15 * Various constants when generating JAVA source code.
17 final class Constants {
18 public static final String COMMA = ",";
19 public static final String DOT = ".";
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.
26 public static final String MEMBER_PATTERN_LIST = "patterns";
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
34 public static final String MEMBER_REGEX_LIST = "regexes";
36 // This should live in a common artifact
37 static final Type EMPTY = Types.typeForClass(Empty.class);