com.sun.xml.xsom.impl.parser.Messages Maven / Gradle / Ivy
/*
* Copyright (c) 1997, 2022 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;
import java.text.MessageFormat;
import java.util.ResourceBundle;
/**
* Formats error messages.
*/
public final class Messages {
private 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
public static final String INVALID_JAXP_IMPLEMENTATION =
"INVALID_JAXP_IMPLEMENTATION"; // arg:0
}