org.exolab.castor.xml
Class XMLNaming

java.lang.Object
  extended byorg.exolab.castor.xml.XMLNaming

public abstract class XMLNaming
extends java.lang.Object

An abstract class to handing XML naming

Version:
$Revision: 1.2 $ $Date: 2003/09/12 09:23:33 $
Author:
Keith Visco

Constructor Summary
XMLNaming()
           
 
Method Summary
abstract  java.lang.String createXMLName(java.lang.Class c)
          Creates the XML Name for the given class The actual behavior of this method is determined by the implementation.
static XMLNaming getInstance()
          Returns the default instance of XMLNaming
abstract  java.lang.String toXMLName(java.lang.String name)
          Converts the given String to an XML name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLNaming

public XMLNaming()
Method Detail

createXMLName

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

toXMLName

public abstract 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

getInstance

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

See Also:
Configuration


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