All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ow2.easywsdl.schema.util.CustomPrefixMapper Maven / Gradle / Ivy

There is a newer version: 2.8.0
Show newest version
package org.ow2.easywsdl.schema.util;

import com.sun.xml.bind.marshaller.NamespacePrefixMapper;

public class CustomPrefixMapper extends NamespacePrefixMapper {

	public CustomPrefixMapper()
	{}
	
	@Override
	public String getPreferredPrefix(String namespaceUri, String suggestion,
			boolean requirePrefix) {
		
		if (namespaceUri.equals("http://www.w3.org/2001/XMLSchema"))
		{
			return "xs";
		}		
		
		return suggestion;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy