org.exolab.castor.xml

Class XMLNaming

public abstract class XMLNaming extends Object

An abstract class to handing XML naming

Version: $Revision: 5951 $ $Date: 2003-09-12 03:23:33 -0600 (Fri, 12 Sep 2003) $

Author: Keith Visco

Method Summary
abstract StringcreateXMLName(Class c)
Creates the XML Name for the given class The actual behavior of this method is determined by the implementation.
static XMLNaminggetInstance()
Returns the default instance of XMLNaming
abstract StringtoXMLName(String name)
Converts the given String to an XML name.

Method Detail

createXMLName

public abstract String createXMLName(Class c)
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

getInstance

public static final XMLNaming getInstance()
Returns the default instance of XMLNaming

See Also:

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-2006. All rights reserved http://www.intalio.com