org.andromda.cartridges.java
Class JavaUtils

java.lang.Object
  extended by org.andromda.cartridges.java.JavaUtils

public class JavaUtils
extends Object

Contains utilities used within the WebService cartridge.

Author:
Chad Brandon

Field Summary
static char NAMESPACE_DELIMITER
          The namespace delimiter (separates namespaces).
 
Constructor Summary
JavaUtils()
           
 
Method Summary
static String getDate()
          Returns the current Date in the specified format.
static String getDate(String format)
          Returns the current Date in the specified format.
static String getJDKVersion()
          Returns the current JDK version.
static String reversePackage(String packageName)
          Reverses the packageName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE_DELIMITER

public static final char NAMESPACE_DELIMITER
The namespace delimiter (separates namespaces).

See Also:
Constant Field Values
Constructor Detail

JavaUtils

public JavaUtils()
Method Detail

reversePackage

public static String reversePackage(String packageName)
Reverses the packageName.

Parameters:
packageName - the package name to reverse.
Returns:
the reversed package name.

getDate

public static String getDate(String format)
Returns the current Date in the specified format.

Parameters:
format - The format for the output date
Returns:
the current date in the specified format.

getDate

public static String getDate()
Returns the current Date in the specified format.

Returns:
the current date with the default format .

getJDKVersion

public static String getJDKVersion()
Returns the current JDK version.

Returns:
the current JDK version (1.4, 1.5, 1.6, 1.7 etc).


Copyright © 2003-2012 AndroMDA.org. All Rights Reserved.