org.castor.xml
Interface XMLNaming
- 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.
- Joachim Grueneis, jgrueneis_at_codehaus_dot_org
abstract String | createXMLName(Class c) - because this method removes the package part which is JavaNaming responsibility
|
abstract String | toXMLName(String name) - Converts the given String to an XML name.
|
createXMLName
public abstract String createXMLName(Class c)
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.
c
- the Class to create the XML Name for
- 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.
- an XML name based on the given String
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com