|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
public abstract class E4Object
This is a useful base class, where most of the classes in E4S are inherited from.
It also can be used for object counting (E4ObjectCounter but provides useful
functionality such as ok(String) but most of all trace functionality (#TRACE(String)).
$LastChangedDate: 2010-03-02 13:36:11 +0100 (Di, 02 Mär 2010) $
$LastChangedRevision: 5817 $
$LastChangedBy: norbert $
| Field Summary | |
|---|---|
static java.lang.String |
CRLF
Defines the string for "\\n" (note that this could be implementation dependent). |
static Language |
E4S_CORE_SYSTEM_LANGUAGE
This is the core language for labels and displays programmed in the e4s system modules. |
static java.lang.String |
NBSP
Defines the string for " ". |
static java.lang.String |
NULLSTR
Same as (java.lang.String)null. |
static java.lang.String |
URL_ENCODING_CHARSET
This is the characterset used by the encode(java.lang.String) function. |
| Constructor Summary | |
|---|---|
E4Object()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
|
static java.util.Calendar |
Calendar(java.util.Date date)
Create a calendar and assign the value with the given date value. |
static java.lang.String |
CName(java.lang.Class clazz)
Get the base name of a class. |
static java.lang.String |
CName(java.lang.String clazz)
Get the base name of a class. |
E4LabelApp |
E4LabelApp(E4String s)
|
E4LabelApp |
E4LabelApp(java.lang.String s)
|
E4LabelApp |
E4LabelApp(java.lang.String s,
int p1)
|
E4LabelApp |
E4LabelApp(java.lang.String s,
java.lang.String p1)
|
E4LabelApp |
E4LabelApp(java.lang.String s,
java.lang.String p1,
java.lang.String p2)
|
E4LabelApp |
E4LabelApp(java.lang.String s,
java.lang.String p1,
java.lang.String p2,
java.lang.String p3)
|
E4LabelNone |
E4LabelNone()
|
E4LabelNone |
E4LabelNone(E4String s)
|
E4LabelNone |
E4LabelNone(long l)
|
E4LabelNone |
E4LabelNone(java.lang.String s)
|
E4LabelSys |
E4LabelSys(E4String s)
|
E4LabelSys |
E4LabelSys(java.lang.String s)
|
static java.lang.String |
e4sCopyright()
Get the e4s-Copyright notice. |
static java.lang.String |
e4sVersion()
Get the e4s-Version. |
static java.lang.String |
encode(E4Label_Intf str,
Language dest_lang)
Deprecated. |
static java.lang.String |
encode(E4String str)
|
static java.lang.String |
encode(java.lang.String str)
|
java.lang.String |
encodeHtml(E4Label_Intf label,
Language dest_lang)
Encode a string by replacing ä,ö,ü,Ä,Ö,Ü,ß,>,< to ä, ö, ü, Ä, Ö, Ü, SS, >, < TODO: Note: this is not a complete implementation! |
java.lang.String |
encodeHtml(E4String s)
Encode a string by replacing ä,ö,ü,Ä,Ö,Ü,ß,>,< to ä, ö, ü, Ä, Ö, Ü, SS, >, < TODO: Note: this is not a complete implementation! |
java.lang.String |
encodeHtml(java.lang.String s)
Encode a string by replacing ä,ö,ü,Ä,Ö,Ü,ß,>,< to ä, ö, ü, Ä, Ö, Ü, SS, >, < TODO: Note: this is not a complete implementation! |
static java.lang.String |
encodeURL(E4Label_Intf str,
Language dest_lang)
Translates a string into application/x-www-form-urlencoded format using a specific encoding scheme as defined in URL_ENCODING_CHARSET. |
static java.lang.String |
encodeURL(E4String str)
Translates a string into application/x-www-form-urlencoded format using a specific encoding scheme as defined in URL_ENCODING_CHARSET. |
static java.lang.String |
encodeURL(java.lang.String str)
Translates a string into application/x-www-form-urlencoded format using a specific encoding scheme as defined in URL_ENCODING_CHARSET. |
void |
finalize()
|
static java.lang.String |
getLINE()
|
static java.lang.String |
getTRACE()
|
static java.lang.String |
getTRACE(int n_calling)
Get the calling class, function and line of code. |
static java.lang.String |
getTRACE(java.lang.Object obj)
|
static java.lang.String |
getTRACE(java.lang.Object obj,
int n_calling)
|
static java.lang.String |
getTRACE(java.lang.String txt)
|
static java.lang.String |
getTRACE(java.lang.String txt,
int n_calling)
Get the calling class, function and line of code. |
static java.lang.String[] |
getTraceMemory()
|
java.lang.String |
HtmlEncode(E4String s)
Deprecated. |
java.lang.String |
HtmlEncode(Language dest_lang,
E4Label_Intf label)
|
static java.lang.String |
HtmlEncode(java.lang.String s)
Deprecated. |
static boolean |
isdecimal(java.lang.String s)
Test, if this String is not null and if it contains only digits or the - sign. |
static boolean |
isdigit(java.lang.String s)
Test, if this String is not null and if it contains only digits. |
static boolean |
isnotok(E4String s)
Test, if this String is null or if it contains some value, except blanks. |
static boolean |
isnotok(java.lang.String s)
Test, if this String is null or if it contains some value, except blanks. |
static boolean |
isnumeric(java.lang.String s)
Test, if this String is not null and if it contains only digits or the - sign. |
static boolean |
isok(E4Long l)
Test, if this long is not null. |
static boolean |
isok(E4String s)
Test, if this String is not null and if it contains some value, except blanks. |
static boolean |
isok(Language dest_lang,
E4Label_Intf s)
Test, if this String is not null and if it contains some value, except blanks. |
static boolean |
isok(java.lang.String s)
Test, if this String is not null and if it contains some value, except blanks. |
static java.lang.String |
lastCallingFunction()
|
static java.lang.String |
lastCallingFunction(java.lang.Class visibility)
Get the caller, that was last function before (!) |
static java.lang.String |
lastCallingFunction(java.lang.Class visibility,
int calling)
Get the caller, that was last function before (!) |
static java.lang.String |
lastCallingFunction(int n_calling)
|
static java.lang.StackTraceElement |
lastCallingStack(java.lang.Class visibility,
int calling)
|
static void |
mkdirs(java.lang.String path)
Create the specified directories - same as File.mkdirs(). |
static java.lang.String |
null2nbsp(E4String s)
The given String or NBSP if null. |
static java.lang.String |
null2nbsp(Language dest_lang,
E4Label_Intf s)
The given String or NBSP if null. |
static java.lang.String |
null2nbsp(java.lang.String s)
The given String or NBSP if null. |
static java.lang.String |
ok(E4Label_Intf s,
Language dest_lang)
Change null to empty string. |
static java.lang.String |
ok(E4String s)
Change null to empty string. |
static java.lang.String |
ok(Language dest_lang,
E4Label_Intf s)
Deprecated. |
static java.lang.String |
ok(java.lang.String s)
Change null to empty string. |
static void |
outPrintln(java.lang.String string)
Write a string to the TRACE logfile (if defined) or System.out |
static void |
setLogFile4Trace(java.lang.String path)
Define a path for trace files (optionally, if not specified: logging goes to Tomcat/Standard-Out). |
static void |
setTraceMemory(boolean mode)
|
static void |
STACKTRACE()
Write out the calling class, function and line of code. |
E4Debug |
toDebug()
|
static double |
toDouble(java.lang.String fStr)
Same as Double.parseDouble(String). |
static float |
toFloat(E4String fStr)
|
static float |
toFloat(java.lang.String fStr)
Same as Float.parseFloat(String). |
java.lang.String |
toString()
|
static void |
TRACE_CALLS()
|
static void |
TRACE()
Write out the calling class, function and line of code. |
static void |
TRACE(boolean val)
Write out the calling class, function and line of code. |
static void |
TRACE(char val)
Write out the calling class, function and line of code. |
static void |
TRACE(java.util.Date date)
Write out the calling class, function and line of code. |
static void |
TRACE(double d)
Write out the calling class, function and line of code. |
static void |
TRACE(float f)
Write out the calling class, function and line of code. |
static void |
TRACE(int val)
Write out the calling class, function and line of code. |
static void |
TRACE(int[] val)
Write out the calling class, function and line of code. |
static void |
TRACE(long lng)
Write out the calling class, function and line of code. |
static void |
TRACE(java.lang.Object obj)
Write out the calling class, function and line of code. |
static void |
TRACE(java.lang.Object obj1,
java.lang.Object obj2)
Write out the calling class, function and line of code. |
static void |
TRACE(java.lang.String txt,
int n_calling)
Write out the calling class, function and line of code. |
static void |
wait(int interval)
Suspend for a specified time interval in ms. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Language E4S_CORE_SYSTEM_LANGUAGE
E4Settings.APP_CORE_LANGUAGEpublic static final java.lang.String NBSP
null2nbsp(java.lang.String),
Constant Field Valuespublic static final java.lang.String CRLF
public static final java.lang.String NULLSTR
public static java.lang.String URL_ENCODING_CHARSET
encode(java.lang.String) function.
Typical values might be: US-ASCII, ISO-8859-1, UTF-8, UTF-16, .. as described in the Java-API documentation.
JDK 1.4 implementation only.
| Constructor Detail |
|---|
public E4Object()
| Method Detail |
|---|
public void finalize()
finalize in class java.lang.Objectpublic static java.lang.String e4sVersion()
e4sCopyright(),
E4S_VERSIONpublic static java.lang.String e4sCopyright()
e4sVersion(),
E4S_COPYRIGHTpublic static boolean isok(java.lang.String s)
s - the String to be tested
#isok(e4s.html.E4Long),
isnotok(java.lang.String)public static boolean isnumeric(java.lang.String s)
s - the String to be tested
#isok(e4s.html.E4Long),
isnotok(java.lang.String)public static boolean isdecimal(java.lang.String s)
s - the String to be tested
#isok(e4s.html.E4Long),
isnotok(java.lang.String)public static boolean isdigit(java.lang.String s)
s - the String to be tested
#isok(e4s.html.E4Long),
isnotok(java.lang.String)public static boolean isnotok(java.lang.String s)
s - the String to be tested
public static boolean isok(E4String s)
s - the String to be tested
public static boolean isok(Language dest_lang,
E4Label_Intf s)
s - the String to be tested
public static boolean isnotok(E4String s)
s - the String to be tested
isok(java.lang.String)public static boolean isok(E4Long l)
l - the long (E4Long) to be tested
isok(String)public static java.lang.String ok(java.lang.String s)
s - the String to be converted
public static java.lang.String ok(Language dest_lang,
E4Label_Intf s)
public static java.lang.String ok(E4Label_Intf s,
Language dest_lang)
s - the String to be converted
public static java.lang.String ok(E4String s)
s - the String to be converted
public static void TRACE()
TRACE()(null)
#TRACE(String),
getTRACE(int),
TRACE(Object)public static java.lang.String getTRACE(int n_calling)
n_calling - the number of the item in the call stackTRACE(),
getTRACE(String,int)public static java.lang.String getTRACE()
public static java.lang.String getLINE()
public static void TRACE(java.lang.String txt,
int n_calling)
txt - additional text to displayTRACE(),
TRACE(Object)public static void TRACE(long lng)
lng - additional value to displayTRACE(),
TRACE(Object)public static void TRACE(java.util.Date date)
lng - additional value to displayTRACE(),
TRACE(Object)public static void TRACE(float f)
f - additional value to displayTRACE(),
TRACE(Object)public static void TRACE(double d)
d - additional value to displayTRACE(),
TRACE(Object)public static void TRACE(char val)
val - additional value to displayTRACE(),
TRACE(Object)public static void TRACE(int val)
val - additional value to displayTRACE(),
TRACE(Object)public static void TRACE(int[] val)
val - additional value to displayTRACE(),
TRACE(Object)public static void TRACE(boolean val)
val - additional value to displayTRACE(),
TRACE(Object)
public static java.lang.String getTRACE(java.lang.String txt,
int n_calling)
txt - additional text to displayTRACE(),
TRACE(Object)public static java.lang.String getTRACE(java.lang.String txt)
public static void TRACE(java.lang.Object obj)
obj - an object to be displayed
public static void TRACE(java.lang.Object obj1,
java.lang.Object obj2)
obj1 - an object to be displayedobj2 - an object to be displayed
public static java.lang.String getTRACE(java.lang.Object obj,
int n_calling)
public static java.lang.String getTRACE(java.lang.Object obj)
public static java.lang.String lastCallingFunction(int n_calling)
public static java.lang.String lastCallingFunction()
public static java.lang.String lastCallingFunction(java.lang.Class visibility,
int calling)
visibility - the class, where the information is required, but typically
not the class where information is expected. Information
is expected about the function, that called the function(s)
before the visibility class was involved.calling - take the n-th first class that was called before visibility
public static java.lang.StackTraceElement lastCallingStack(java.lang.Class visibility,
int calling)
public static java.lang.String lastCallingFunction(java.lang.Class visibility)
visibility - the class, where the information is required, but typically
not the class where information is expected. Information
is expected about the function, that called the function(s)
before the visibility class was involved.
public static java.lang.String null2nbsp(java.lang.String s)
NBSP if null.
s - the string to test
public static java.lang.String null2nbsp(Language dest_lang,
E4Label_Intf s)
NBSP if null.
s - the string to test
public static java.lang.String null2nbsp(E4String s)
NBSP if null.
s - the string to test
public java.lang.String toString()
toString in class java.lang.Object
public static float toFloat(java.lang.String fStr)
throws java.lang.NumberFormatException
fStr - the float String value to be parsed
java.lang.NumberFormatException
public static double toDouble(java.lang.String fStr)
throws java.lang.NumberFormatException
fStr - the float String value to be parsed
java.lang.NumberFormatExceptionpublic static float toFloat(E4String fStr)
public static java.lang.String encode(java.lang.String str)
encodeURL(String)public static java.lang.String encode(E4String str)
encodeURL(e4s.util.E4String)public static java.lang.String encodeURL(java.lang.String str)
URL_ENCODING_CHARSET.
See java.net.URLEncoder
URL_ENCODING_CHARSET,
encode(E4String)
public static java.lang.String encodeURL(E4String str)
throws java.lang.NumberFormatException
URL_ENCODING_CHARSET.
See java.net.URLEncoder
java.lang.NumberFormatExceptionURL_ENCODING_CHARSET,
encodeURL(String)
public static java.lang.String encodeURL(E4Label_Intf str,
Language dest_lang)
URL_ENCODING_CHARSET.
See java.net.URLEncoder
URL_ENCODING_CHARSET,
encodeURL(String)
public static java.lang.String encode(E4Label_Intf str,
Language dest_lang)
public static void wait(int interval)
interval - - time interval in milli seconds to suspendpublic E4Debug toDebug()
public static void TRACE_CALLS()
public E4LabelApp E4LabelApp(java.lang.String s)
public E4LabelApp E4LabelApp(E4String s)
public E4LabelApp E4LabelApp(java.lang.String s,
java.lang.String p1)
public E4LabelApp E4LabelApp(java.lang.String s,
int p1)
public E4LabelApp E4LabelApp(java.lang.String s,
java.lang.String p1,
java.lang.String p2)
public E4LabelApp E4LabelApp(java.lang.String s,
java.lang.String p1,
java.lang.String p2,
java.lang.String p3)
public E4LabelSys E4LabelSys(java.lang.String s)
public E4LabelSys E4LabelSys(E4String s)
public E4LabelNone E4LabelNone()
public E4LabelNone E4LabelNone(java.lang.String s)
public E4LabelNone E4LabelNone(E4String s)
public E4LabelNone E4LabelNone(long l)
public static final void mkdirs(java.lang.String path)
path - a pathname which will be created in the file system.public static java.util.Calendar Calendar(java.util.Date date)
date - the date value
public static java.lang.String HtmlEncode(java.lang.String s)
encodeHtml(String)public java.lang.String encodeHtml(java.lang.String s)
s - the string to be converted
public java.lang.String HtmlEncode(E4String s)
encodeHtml(e4s.util.E4String)public java.lang.String encodeHtml(E4String s)
s - the string to be converted
public java.lang.String HtmlEncode(Language dest_lang,
E4Label_Intf label)
encodeHtml(java.lang.String)
public java.lang.String encodeHtml(E4Label_Intf label,
Language dest_lang)
label - the label to be converted - E4Label_Intf.getDest(e4s.application.Language)
public static java.lang.String CName(java.lang.String clazz)
clazz - the class which name should be returned
public static java.lang.String CName(java.lang.Class clazz)
clazz - the class which name should be returned
public static void STACKTRACE()
val - additional value to displayTRACE(),
TRACE(Object)public static void outPrintln(java.lang.String string)
string - the string to be writtenE4Settings.getSysTraceLogPath(),
setLogFile4Trace(String)public static void setTraceMemory(boolean mode)
public static java.lang.String[] getTraceMemory()
public static void setLogFile4Trace(java.lang.String path)
path - the path for the logfiles, if null turns off logging#TRACE(String),
outPrintln(String),
E4Settings.getSysTraceLogPath()public static java.lang.String _getSVNVersionString()
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||