com.sun.tools.xjc.util

Class Util

public final class Util extends Object

Other miscellaneous utility methods.
Method Summary
static booleanequals(Locator lhs, Locator rhs)
Compares if two Locators point to the exact same position.
static StringgetSystemProperty(String name)
An easier-to-use version of the System.getProperty method that doesn't throw an exception even if a property cannot be read.
static StringgetSystemProperty(Class clazz, String name)
Calls the other getSystemProperty method with "[clazz].[name].

Method Detail

equals

public static boolean equals(Locator lhs, Locator rhs)
Compares if two Locators point to the exact same position.

getSystemProperty

public static String getSystemProperty(String name)
An easier-to-use version of the System.getProperty method that doesn't throw an exception even if a property cannot be read.

getSystemProperty

public static String getSystemProperty(Class clazz, String name)
Calls the other getSystemProperty method with "[clazz].[name].