org.exolab.castor.xml
Class AbstractXMLNaming

java.lang.Object
  extended by org.exolab.castor.xml.AbstractXMLNaming
All Implemented Interfaces:
XMLNaming
Direct Known Subclasses:
DefaultNaming

public abstract class AbstractXMLNaming
extends java.lang.Object
implements XMLNaming

An abstract class to handing XML naming

Version:
$Revision: 8034 $ $Date: 2003-09-12 03:23:33 -0600 (Fri, 12 Sep 2003) $
Author:
Keith Visco

Constructor Summary
AbstractXMLNaming()
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXMLNaming

public AbstractXMLNaming()
Method Detail

createXMLName

public abstract java.lang.String createXMLName(java.lang.Class c)
Description copied from interface: XMLNaming
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.

Specified by:
createXMLName in interface XMLNaming
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)
Description copied from interface: XMLNaming
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.

Specified by:
toXMLName in interface XMLNaming
Returns:
an XML name based on the given String

getInstance

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

See Also:
org.exolab.castor.util.AbstractProperties


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