com.sun.xml.xsom.impl.parser.Messages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of schema2proto-xsom Show documentation
Show all versions of schema2proto-xsom Show documentation
XML Schema Object Model (XSOM) is a Java library that allows applications to easily parse XML Schema
documents and inspect information in them. It is expected to be useful for applications that need to take XML
Schema as an input.
The newest version!
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.xsom.impl.parser;
/*-
* #%L
* XSOM
* %%
* Copyright (C) 2019 - 2020 Entur
* %%
* Licensed under the EUPL, Version 1.1 or – as soon they will be
* approved by the European Commission - subsequent versions of the
* EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://ec.europa.eu/idabc/eupl5
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
* #L%
*/
import java.text.MessageFormat;
import java.util.ResourceBundle;
/**
* Formats error messages.
*/
public class Messages
{
/** Loads a string resource and formats it with specified arguments. */
public static String format( String property, Object... args ) {
String text = ResourceBundle.getBundle(
Messages.class.getName()).getString(property);
return MessageFormat.format(text,args);
}
//
//
// Message resources
//
//
public static final String ERR_UNDEFINED_SIMPLETYPE =
"UndefinedSimpleType"; // arg:1
public static final String ERR_UNDEFINED_COMPLEXTYPE =
"UndefinedCompplexType"; // arg:1
public static final String ERR_UNDEFINED_TYPE =
"UndefinedType"; // arg:1
public static final String ERR_UNDEFINED_ELEMENT =
"UndefinedElement"; // arg:1
public static final String ERR_UNDEFINED_MODELGROUP =
"UndefinedModelGroup"; // arg:1
public static final String ERR_UNDEFINED_ATTRIBUTE =
"UndefinedAttribute"; // arg:1
public static final String ERR_UNDEFINED_ATTRIBUTEGROUP =
"UndefinedAttributeGroup"; // arg:1
public static final String ERR_UNDEFINED_IDENTITY_CONSTRAINT =
"UndefinedIdentityConstraint"; // arg:1
public static final String ERR_UNDEFINED_PREFIX =
"UndefinedPrefix"; // arg:1
public static final String ERR_DOUBLE_DEFINITION =
"DoubleDefinition"; // arg:1
public static final String ERR_DOUBLE_DEFINITION_ORIGINAL =
"DoubleDefinition.Original"; // arg:0
public static final String ERR_MISSING_SCHEMALOCATION =
"MissingSchemaLocation"; // arg:0
public static final String ERR_ENTITY_RESOLUTION_FAILURE =
"EntityResolutionFailure"; // arg:2
public static final String ERR_SIMPLE_CONTENT_EXPECTED =
"SimpleContentExpected"; // arg:2
public static final String JAXP_UNSUPPORTED_PROPERTY =
"JAXPUnsupportedProperty"; // arg:1
public static final String JAXP_SUPPORTED_PROPERTY =
"JAXPSupportedProperty"; // arg:1
}