org.castor.xml
Interface XMLNaming

All 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
 java.lang.String createXMLName(java.lang.Class c)
          Deprecated. because this method removes the package part which is JavaNaming responsibility
 java.lang.String toXMLName(java.lang.String name)
          Converts the given String to an XML name.
 

Method Detail

createXMLName

java.lang.String createXMLName(java.lang.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

java.lang.String toXMLName(java.lang.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


Copyright © 2011. All Rights Reserved.