org.wikidata.wdtk.dumpfiles.constraint.template.TemplateConstant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wdtk-dumpfiles Show documentation
Show all versions of wdtk-dumpfiles Show documentation
WDTK support for processing Wikibase dump files
package org.wikidata.wdtk.dumpfiles.constraint.template;
/*
* #%L
* Wikidata Toolkit Dump File Handling
* %%
* Copyright (C) 2014 Wikidata Toolkit Developers
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/**
* This interface contains constants used to have a string representation of
* Wikibase templates.
*
* @author Julian Mendez
*
*/
public interface TemplateConstant {
String OPENING_BRACES = "{{";
String CLOSING_BRACES = "}}";
String OPENING_BRACKETS = "[[";
String CLOSING_BRACKETS = "]]";
String OPENING_NOWIKI = "";
String CLOSING_NOWIKI = " ";
String VERTICAL_BAR = "|";
String EQUALS_SIGN = "=";
String UNDERSCORE = "_";
String SPACE = " ";
String COMMA = ",";
String COLON = ":";
String SEMICOLON = ";";
String NEWLINE = "\n";
/**
* Regular expression to identify all HTML comments in a string.
*
* (?s) makes dot '.' also match new lines '\n'
*
* .*? is a reluctant quantifier
*/
String REG_EXP_HTML_COMMENT = "(?s)";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy