org.castor.xml

Interface XMLNaming

Known Implementing Classes:
AbstractXMLNaming, DefaultNaming

public interface XMLNaming

XMLNaming contains all methods required by Castor to build valid XML names. It was originally an abstract class by Keith Visco for which I create this interface.
Version:
$Id$
Author:
Joachim Grueneis, jgrueneis_at_codehaus_dot_org

Method Summary

abstract String
createXMLName(Class c)
Deprecated. because this method removes the package part which is JavaNaming responsibility
abstract String
toXMLName(String name)
Converts the given String to an XML name.

Method Details

createXMLName

public abstract String createXMLName(Class c)

Deprecated. because this method removes the package part which is JavaNaming responsibility

Creates the XML Name for the given class The actual behavior of this method is determined by the implementation. The only restriction is that the name returned must be a valid xml name.
Parameters:
c - the Class to create the XML Name for
Returns:
the XML name based on the given class

toXMLName

public abstract String toXMLName(String name)
Converts the given String to an XML name. The actual behavior of this method is determined by the implementation. The only restriction is that the name returned must be a valid xml name.
Returns:
an XML name based on the given String

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com