Refactor PatternConstraintImpl
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / pattern / EmptyPatternConstraint.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. 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.yang.parser.rfc7950.stmt.pattern;
9
10 import org.opendaylight.yangtools.yang.model.api.type.ModifierKind;
11
12 final class EmptyPatternConstraint extends AbstractPatternConstraint {
13     EmptyPatternConstraint(final String regex, final String rawRegex) {
14         super(regex, rawRegex, null);
15     }
16
17     @Override
18     String description() {
19         return null;
20     }
21
22     @Override
23     String reference() {
24         return null;
25     }
26
27     @Override
28     String errorMessage() {
29         return null;
30     }
31
32     @Override
33     ModifierKind modifier() {
34         return null;
35     }
36 }