dsto.dfc.databeans.io
Class XmlIO

java.lang.Object
  extended by dsto.dfc.databeans.io.XmlIO

public final class XmlIO
extends Object

XML input/output support.

Version:
$Revision$
Author:
mpp

Method Summary
static void addTypeAlias(String alias, Class type)
           
static void addTypeAlias(String alias, String type)
          Add a global type alias.
static Map getAliasToType()
          Get a map that maps aliases to their type names.
static String getType(String classType)
           
static Map getTypeToAlias()
          Get a map that maps type names to their aliases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addTypeAlias

public static void addTypeAlias(String alias,
                                Class type)
See Also:
addTypeAlias(String,String)

addTypeAlias

public static void addTypeAlias(String alias,
                                String type)
Add a global type alias. This can be used to provide shortened names for types eg "java.lang.String" becomes "string".

Parameters:
alias - The type alias.
type - The type for the alias.
See Also:
getAliasToType(), getTypeToAlias()

getType

public static String getType(String classType)

getTypeToAlias

public static Map getTypeToAlias()
Get a map that maps type names to their aliases.

See Also:
addTypeAlias(String, String)

getAliasToType

public static Map getAliasToType()
Get a map that maps aliases to their type names.

See Also:
addTypeAlias(String, String)


Copyright © 2008 Commonwealth of Australia