eu.peppol.validation.commons.schematron.svrl
Interface ISVRLLocationBeautifierSPI


public interface ISVRLLocationBeautifierSPI

Implement this SPI interface to beautify SVRL error messages by replacing namespaceURLs with common prefixes.

Author:
PEPPOL.AT, BRZ, Philip Helger

Method Summary
 String getReplacementText(String sNamespaceURI, String sLocalName)
          Beautify the passed combination.
 

Method Detail

getReplacementText

@Nullable
String getReplacementText(@Nonnull
                                   String sNamespaceURI,
                                   @Nonnull
                                   String sLocalName)
Beautify the passed combination.

Parameters:
sNamespaceURI - Namespace URI
sLocalName - Element local name
Returns:
null to indicate that this object does not know how to handle the namespace. Otherwise the replacement text should be returned.
Example for UBL: Input parameters urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 and Party. The result may be cac:Party as cac is the common namespace prefix for the passed namespace URI.


Copyright © 2011 PEPPOL project. All Rights Reserved.