Beispiel #1
0
  static String invalidAttributeFormat(
      String attributeName, String value, String elementPath, String formatKey) {
    String inputValueFormat = _formatter.getMessage(formatKey);

    return _formatter.format(
        "invalid-attribute-format",
        new Object[] {attributeName, value, elementPath, inputValueFormat});
  }
Beispiel #2
0
 static String dupeAttributeMapping(
     AttributeMappingDescriptor newDescriptor, AttributeMappingDescriptor existingDescriptor) {
   return _formatter.format(
       "dupe-attribute-mapping",
       newDescriptor.getAttributeName(),
       existingDescriptor.getLocation());
 }
Beispiel #3
0
 static String booleanAttribute(String value, String name, String path) {
   return _formatter.format("boolean-attribute", new Object[] {value, name, path});
 }
Beispiel #4
0
 static String unknownAttribute(String name, String path) {
   return _formatter.format("unknown-attribute", name, path);
 }
Beispiel #5
0
 static String requiredAttribute(String name, String path, Location location) {
   return _formatter.format("required-attribute", name, path, location);
 }
Beispiel #6
0
 static String unableToLookup(String name, Context context) {
   return FORMATTER.format("unable-to-lookup", name, context);
 }
Beispiel #7
0
 static String unexpectedElement(String elementName, String elementPath) {
   return _formatter.format("unexpected-element", elementName, elementPath);
 }
Beispiel #8
0
 static String errorReadingDescriptor(Resource resource, Throwable cause) {
   return _formatter.format("error-reading-descriptor", resource, cause);
 }
Beispiel #9
0
 static String unableToInitialize(Throwable cause) {
   return _formatter.format("unable-to-initialize", cause);
 }
Beispiel #10
0
 static String invalidElementKeyAttribute(String schemaId, Throwable cause) {
   return _formatter.format("invalid-element-key-attribute", schemaId, cause);
 }
Beispiel #11
0
 static String duplicateSchema(String schemaId, Schema existingSchema) {
   return _formatter.format("duplicate-schema", schemaId, existingSchema.getLocation());
 }
Beispiel #12
0
 static String coordinatorLocked(String methodName) {
   return FORMATTER.format("coordinator-locked", methodName);
 }
Beispiel #13
0
 static String wrongType(String name, Object object, Class expectedType) {
   return FORMATTER.format("wrong-type", name, object, expectedType);
 }
Beispiel #14
0
 static String noObject(String name, Class expectedType) {
   return FORMATTER.format("no-object", name, expectedType);
 }
Beispiel #15
0
 static String invalidAttributeValue(String value, String name, String path) {
   return _formatter.format("invalid-attribute-value", new Object[] {value, name, path});
 }
Beispiel #16
0
 static String invalidNumericValue(String value, String name, String path) {
   return _formatter.format("invalid-numeric-value", new Object[] {value, name, path});
 }
Beispiel #17
0
 static String extraMappings(Collection extraNames, ElementModel model) {
   return _formatter.format("extra-mappings", extraNames, model.getElementName());
 }
Beispiel #18
0
 static String badRuleClass(String className, Location location, Throwable cause) {
   return _formatter.format("bad-rule-class", className, location, cause);
 }
Beispiel #19
0
 static String multipleContributionsSchemas(String configurationId, Location location) {
   return _formatter.format("multiple-contributions-schemas", configurationId, location);
 }
Beispiel #20
0
 static String missingResource(Resource resource) {
   return _formatter.format("missing-resource", resource);
 }
Beispiel #21
0
 static String multipleParametersSchemas(String serviceId, Location location) {
   return _formatter.format("multiple-parameters-schemas", serviceId, location);
 }
Beispiel #22
0
 static String notModule(String elementName, Location location) {
   return _formatter.format("not-module", elementName, location);
 }
Beispiel #23
0
 static String ejbProxyDescription(String serviceId, Class serviceInterface, String jndiName) {
   return FORMATTER.format(
       "ejb-proxy-description", serviceId, serviceInterface.getName(), jndiName);
 }