org.exolab.castor.xml
Class XMLNaming
java.lang.Object
|
+--org.exolab.castor.xml.XMLNaming
- public abstract class XMLNaming
- extends java.lang.Object
An abstract class to handing XML naming
- Version:
- $Revision: 1.1 $ $Date: 2001/01/10 02:52:37 $
- Author:
- Keith Visco
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 |
XMLNaming
public XMLNaming()
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-2001. All rights reserved http://www.intalio.com