|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.resources.Utilities
A set of miscellaneous methods.
Field Summary | |
private static java.lang.String[] |
spacesFactory
An array of strings containing only white spaces. |
Constructor Summary | |
private |
Utilities()
Forbive object creation. |
Method Summary | |
static boolean |
equals(java.lang.Object object1,
java.lang.Object object2)
Convenience method for testing two objects for equality. |
static java.lang.String |
getShortClassName(java.lang.Object object)
Returns a short class name for the specified object. |
static java.lang.String |
getShortName(java.lang.Class classe)
Returns a short class name for the specified class. |
static boolean |
isSubScript(char c)
Determines whether the character is a subscript. |
static boolean |
isSuperScript(char c)
Determines whether the character is a superscript. |
static java.lang.String |
spaces(int length)
Returns a string of the specified length filled with white spaces. |
static char |
toNormalScript(char c)
Converts the character argument to normal script. |
static char |
toSubScript(char c)
Converts the character argument to subscript. |
static char |
toSuperScript(char c)
Converts the character argument to superscript. |
static void |
unexpectedException(java.lang.String paquet,
java.lang.String classe,
java.lang.String method,
java.lang.Throwable error)
Invoked when an unexpected error occured. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String[] spacesFactory
spacesFactory
array. For example,
spacesFactory[4]
contains a string of length 5. Strings are
constructed only when first needed.
Constructor Detail |
private Utilities()
Method Detail |
public static boolean isSuperScript(char c)
? ¹ ² ³ ? ? ? ? ? ? ? ? ? ? ? ?
public static boolean isSubScript(char c)
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
public static char toSuperScript(char c)
0 1 2 3 4 5 6 7 8 9 + - = ( ) n
public static char toSubScript(char c)
0 1 2 3 4 5 6 7 8 9 + - = ( ) n
public static char toNormalScript(char c)
public static java.lang.String spaces(int length)
length
- The string length. Negative values are clamp to 0.
length
filled with with spaces.public static java.lang.String getShortName(java.lang.Class classe)
String
object.
classe
- The object (may be null
).
public static java.lang.String getShortClassName(java.lang.Object object)
String
object.
object
- The object (may be null
).
public static boolean equals(java.lang.Object object1, java.lang.Object object2)
public static void unexpectedException(java.lang.String paquet, java.lang.String classe, java.lang.String method, java.lang.Throwable error)
paquet
- The package where the error occured. This information may be used
to fetch an appropriate Logger
for logging the error.classe
- The class name where the error occured.method
- The method name where the error occured.error
- The error.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |