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