www.element4solution.com

e4s.util
Class E4Object

java.lang.Object
  extended by e4s.util.E4Object
Direct Known Subclasses:
AEP_EditingDataDescriptor, AEP_modifyClient_Impl, Align, CurrencyCode.CURRENCY, E4Ajax, E4AjaxData, E4AjaxDataRepository, E4AjaxTable.E4AjaxTableColumn, E4ApplObjBasic, E4BackupFile, E4CgiParams, E4CSS, E4CssFile, E4Date, E4DBColumnInfo, E4DBConnectionDefault, E4DBConnectionMonitor, E4DBConnectionMonitor.E4DBConnectionMonitorVector, E4DBDatabase, E4DBDict, E4DBDictChangeLog.E4DBChangeLogModification, E4DBDictPluginRepositorySettings, E4DBDictPlugInTypeReferenceChange, E4DBDictPlugInTypeReferenceChange.TypeChanger, E4DBDictRepository, E4DBDictRepository.E4DBDictRepositoriesHash, E4DBFilter, E4DBFreeFields, E4DBFreeFieldsVector, E4DBFreeValueContent, E4DBGeneratedClass, E4DBIntegrity, E4DBJavaGeneratorPrintStream, E4DBLogging, E4DBObjectFreefields, E4DBReference, E4DBResultSetMetaData, E4DBSelectDistinct, E4DBStatement, E4DBType.E4DBTypeConst, E4DBTypes, E4DBTypeUsage, E4DBValidatorInterfaces, E4DBValidatorPackageName, E4Debug, E4DefaultTables, E4DirEntry, E4DirEntryDefaultImages, E4DocumentBase, E4Draggable, E4DropdownMenu.E4DropDownMenuItem, E4DurationTimer, E4EditingDataDescriptor, E4EditingDataDescriptor.Descriptor, E4EditingDefinitionTableColumn, E4EditingElement.E4EditingElementAdditionalButton, E4EditingElement.E4EditingElementOnlyEditing, E4EditingFormatterDefault, E4EditingPersistance.TableLayout, E4ExternalTranslation, E4GridSize, E4HashEventHandler, E4HtmlObject, E4ImageResizer, E4ImageResizer.E4ImageResizerSize, E4ImageResizer.PostProcessingInformation, E4Images, E4InputMultiStateOptions, E4InputMultiStateOptions.M_OPTION, E4JavaScript.JSBODY, E4JavaScript.JSRETURN, E4JavaScript.JSVAR, E4JavaScriptIncludes, E4JavaScriptLibrary, E4LabelsVec, E4MemoryWatchdog, E4Method, E4Method.E4MethodStatistics, E4MethodCallTrace, E4MethodCallTrace.E4MethodCall, E4MethodPickup.PickParams, E4MethodRegistry, E4ModuleDeclarations, E4ModuleMainMenu.E4AdditionalMenuItem, E4MultipartRequest, E4ObjectCounter, E4ObjectLifecycleWatcher, E4ObjectLifecycleWatcher.E4HttpServletWatch, E4ObjectLifecycleWatcher.WatchObject, E4PermissionAnd, E4PermissionOr, E4PermissionRegistry, E4PersistantBase, E4PersistantRepository, E4PersistantVector, E4PrintStream, E4ReceiveMail, E4ScriptsVec, E4SelectValues, E4SelectValues.OPTION, E4SelectValues.OPTIONGROUP, E4SelectValuesFieldDependent, E4SendMail, E4ServletImplementation, E4SessionListener, E4Settings, E4SimpleXmlEncoder, E4SortedListItem, E4String, E4StringBufferHtml, E4StyleAttributes, E4StyleDefinition, E4StylesHash, E4StyleUsage, E4StyleValue, E4Symbols, E4TempFile, E4TranslationsClientRepository, E4TranslationsRepository, E4TreeNode, E4User, E4UserValues, E4Util, E4ValidatorDATEFIELD, E4ValidatorEMail, E4ValidatorFileUpload, E4ValidatorFLOATFIELD, E4ValidatorID, E4ValidatorLONGFIELD, E4ValidatorNoBlanks, E4ValidatorPassword, E4ValidatorSqlName, E4ValidatorUrl, HTML.E4HtmlMetaTags, IMG.Area, STYLE, STYLE_Name, T_E4S_CLIENT_Obj, T_E4S_CLIENT_VAL_Obj, T_E4S_COMPANY_Vec, T_E4S_FREEFIELD_DEF_Obj, T_E4S_FREEFIELD_DEF_Vec, T_E4S_FREEFIELD_VAL_Obj, T_E4S_HINT_Obj, T_E4S_HINT_READ_Obj, T_E4S_LOGIN_HISTORY_Obj, T_E4S_MAIL_SENT_Obj, T_E4S_OVERVIEW_Obj, T_E4S_PERMISSION_COMPANY_Obj, T_E4S_PERMISSION_GROUP_Obj, T_E4S_PERMISSION_USER_Obj, T_E4S_QUERY_CLIENTS_Obj, T_E4S_QUERY_Obj, T_E4S_QUERY_PARAMS_Obj, T_E4S_TRANS_APP_Obj, T_E4S_TRANS_DATA_Obj, T_E4S_TRANS_SYS_Obj, T_E4S_USER_VAL_Obj

public abstract class E4Object
extends java.lang.Object

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 $

Since:
JDK 1.4

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

E4S_CORE_SYSTEM_LANGUAGE

public static final Language E4S_CORE_SYSTEM_LANGUAGE
This is the core language for labels and displays programmed in the e4s system modules.

See Also:
E4Settings.APP_CORE_LANGUAGE

NBSP

public static final java.lang.String NBSP
Defines the string for "&nbsp;".

See Also:
null2nbsp(java.lang.String), Constant Field Values

CRLF

public static final java.lang.String CRLF
Defines the string for "\\n" (note that this could be implementation dependent).

See Also:
Constant Field Values

NULLSTR

public static final java.lang.String NULLSTR
Same as (java.lang.String)null.


URL_ENCODING_CHARSET

public static java.lang.String URL_ENCODING_CHARSET
This is the characterset used by the 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

E4Object

public E4Object()
Method Detail

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

e4sVersion

public static java.lang.String e4sVersion()
Get the e4s-Version.

Returns:
the version as String.
See Also:
e4sCopyright(), E4S_VERSION

e4sCopyright

public static java.lang.String e4sCopyright()
Get the e4s-Copyright notice.

Returns:
the copyright as String.
See Also:
e4sVersion(), E4S_COPYRIGHT

isok

public static boolean isok(java.lang.String s)
Test, if this String is not null and if it contains some value, except blanks.

Parameters:
s - the String to be tested
Returns:
true if not null, and not s.trim().equals("")
See Also:
#isok(e4s.html.E4Long), isnotok(java.lang.String)

isnumeric

public static boolean isnumeric(java.lang.String s)
Test, if this String is not null and if it contains only digits or the - sign.

Parameters:
s - the String to be tested
Returns:
true if not null and String contains only digits
See Also:
#isok(e4s.html.E4Long), isnotok(java.lang.String)

isdecimal

public static boolean isdecimal(java.lang.String s)
Test, if this String is not null and if it contains only digits or the - sign.

Parameters:
s - the String to be tested
Returns:
true if not null and String contains only digits
See Also:
#isok(e4s.html.E4Long), isnotok(java.lang.String)

isdigit

public static boolean isdigit(java.lang.String s)
Test, if this String is not null and if it contains only digits.

Parameters:
s - the String to be tested
Returns:
true if not null and String contains only digits
See Also:
#isok(e4s.html.E4Long), isnotok(java.lang.String)

isnotok

public static boolean isnotok(java.lang.String s)
Test, if this String is null or if it contains some value, except blanks.

Parameters:
s - the String to be tested
Returns:
false if not null, and not s.trim().equals("")

isok

public static boolean isok(E4String s)
Test, if this String is not null and if it contains some value, except blanks.

Parameters:
s - the String to be tested
Returns:
true if not null, and not s.trim().equals("")

isok

public static boolean isok(Language dest_lang,
                           E4Label_Intf s)
Test, if this String is not null and if it contains some value, except blanks.

Parameters:
s - the String to be tested
Returns:
true if not null, and not s.trim().equals("")

isnotok

public static boolean isnotok(E4String s)
Test, if this String is null or if it contains some value, except blanks.

Parameters:
s - the String to be tested
Returns:
false if not null, and not s.trim().equals("")
See Also:
isok(java.lang.String)

isok

public static boolean isok(E4Long l)
Test, if this long is not null. In any case, it contains a value as every value that can be represented by a long datatype is valid. This function is for compatibility reasons between E4String and E4Long only.

Parameters:
l - the long (E4Long) to be tested
Returns:
true if not null
See Also:
isok(String)

ok

public static java.lang.String ok(java.lang.String s)
Change null to empty string.

Parameters:
s - the String to be converted
Returns:
"" if s is null, otherwise the String itself

ok

public static java.lang.String ok(Language dest_lang,
                                  E4Label_Intf s)
Deprecated. 


ok

public static java.lang.String ok(E4Label_Intf s,
                                  Language dest_lang)
Change null to empty string.

Parameters:
s - the String to be converted
Returns:
"" if s is null, otherwise the String itself

ok

public static java.lang.String ok(E4String s)
Change null to empty string.

Parameters:
s - the String to be converted
Returns:
"" if s is null, otherwise the String itself

TRACE

public static void TRACE()
Write out the calling class, function and line of code. Uses the System.out stream. Useful for trace and debugging only. Same as TRACE()(null)

See Also:
#TRACE(String), getTRACE(int), TRACE(Object)

getTRACE

public static java.lang.String getTRACE(int n_calling)
Get the calling class, function and line of code. Useful for trace and debugging only.

Parameters:
n_calling - the number of the item in the call stack
See Also:
TRACE(), getTRACE(String,int)

getTRACE

public static java.lang.String getTRACE()

getLINE

public static java.lang.String getLINE()

TRACE

public static void TRACE(java.lang.String txt,
                         int n_calling)
Write out the calling class, function and line of code. Append the text if not null. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
txt - additional text to display
See Also:
TRACE(), TRACE(Object)

TRACE

public static void TRACE(long lng)
Write out the calling class, function and line of code. Append the long value. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
lng - additional value to display
See Also:
TRACE(), TRACE(Object)

TRACE

public static void TRACE(java.util.Date date)
Write out the calling class, function and line of code. Append the long value. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
lng - additional value to display
See Also:
TRACE(), TRACE(Object)

TRACE

public static void TRACE(float f)
Write out the calling class, function and line of code. Append the long value. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
f - additional value to display
See Also:
TRACE(), TRACE(Object)

TRACE

public static void TRACE(double d)
Write out the calling class, function and line of code. Append the long value. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
d - additional value to display
See Also:
TRACE(), TRACE(Object)

TRACE

public static void TRACE(char val)
Write out the calling class, function and line of code. Append the long value. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
val - additional value to display
See Also:
TRACE(), TRACE(Object)

TRACE

public static void TRACE(int val)
Write out the calling class, function and line of code. Append the long value. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
val - additional value to display
See Also:
TRACE(), TRACE(Object)

TRACE

public static void TRACE(int[] val)
Write out the calling class, function and line of code. Append the long value. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
val - additional value to display
See Also:
TRACE(), TRACE(Object)

TRACE

public static void TRACE(boolean val)
Write out the calling class, function and line of code. Append the long value. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
val - additional value to display
See Also:
TRACE(), TRACE(Object)

getTRACE

public static java.lang.String getTRACE(java.lang.String txt,
                                        int n_calling)
Get the calling class, function and line of code. Append the text if not null. Useful for trace and debugging only.

Parameters:
txt - additional text to display
See Also:
TRACE(), TRACE(Object)

getTRACE

public static java.lang.String getTRACE(java.lang.String txt)

TRACE

public static void TRACE(java.lang.Object obj)
Write out the calling class, function and line of code. Append the obj.toString() if not null. If the object is of type Hashtable, Vector then all elements are listed seperatley, each one line. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
obj - an object to be displayed

TRACE

public static void TRACE(java.lang.Object obj1,
                         java.lang.Object obj2)
Write out the calling class, function and line of code. Append the obj1.toString() if not null. If the object is of type Hashtable, Vector then all elements are listed seperatley, each one line. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
obj1 - an object to be displayed
obj2 - an object to be displayed

getTRACE

public static java.lang.String getTRACE(java.lang.Object obj,
                                        int n_calling)

getTRACE

public static java.lang.String getTRACE(java.lang.Object obj)

lastCallingFunction

public static java.lang.String lastCallingFunction(int n_calling)

lastCallingFunction

public static java.lang.String lastCallingFunction()

lastCallingFunction

public static java.lang.String lastCallingFunction(java.lang.Class visibility,
                                                   int calling)
Get the caller, that was last function before (!) any function in the call stack from visibility. Used ONLY for debug functionality to read the call stack.

Parameters:
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
Returns:
class-name, plus ".", plus function name (no parameter list)

lastCallingStack

public static java.lang.StackTraceElement lastCallingStack(java.lang.Class visibility,
                                                           int calling)

lastCallingFunction

public static java.lang.String lastCallingFunction(java.lang.Class visibility)
Get the caller, that was last function before (!) any function in the call stack from visibility. Used ONLY for debug functionality to read the call stack.

Parameters:
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.
Returns:
class-name, plus ".", plus function name (no parameter list)

null2nbsp

public static java.lang.String null2nbsp(java.lang.String s)
The given String or NBSP if null.

Parameters:
s - the string to test
Returns:
the string or NBSP if the string is null, only blanks or empty

null2nbsp

public static java.lang.String null2nbsp(Language dest_lang,
                                         E4Label_Intf s)
The given String or NBSP if null.

Parameters:
s - the string to test
Returns:
the string or NBSP if the string is null, only blanks or empty

null2nbsp

public static java.lang.String null2nbsp(E4String s)
The given String or NBSP if null.

Parameters:
s - the string to test
Returns:
the string or NBSP if the string is null, only blanks or empty

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toFloat

public static float toFloat(java.lang.String fStr)
                     throws java.lang.NumberFormatException
Same as Float.parseFloat(String).

Parameters:
fStr - the float String value to be parsed
Returns:
the parsed value
Throws:
java.lang.NumberFormatException

toDouble

public static double toDouble(java.lang.String fStr)
                       throws java.lang.NumberFormatException
Same as Double.parseDouble(String).

Parameters:
fStr - the float String value to be parsed
Returns:
the parsed value
Throws:
java.lang.NumberFormatException

toFloat

public static float toFloat(E4String fStr)

encode

public static java.lang.String encode(java.lang.String str)
See Also:
encodeURL(String)

encode

public static java.lang.String encode(E4String str)
See Also:
encodeURL(e4s.util.E4String)

encodeURL

public 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. See java.net.URLEncoder

See Also:
URL_ENCODING_CHARSET, encode(E4String)

encodeURL

public static java.lang.String encodeURL(E4String str)
                                  throws java.lang.NumberFormatException
Translates a string into application/x-www-form-urlencoded format using a specific encoding scheme as defined in URL_ENCODING_CHARSET. See java.net.URLEncoder

Throws:
java.lang.NumberFormatException
See Also:
URL_ENCODING_CHARSET, encodeURL(String)

encodeURL

public 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. See java.net.URLEncoder

See Also:
URL_ENCODING_CHARSET, encodeURL(String)

encode

public static java.lang.String encode(E4Label_Intf str,
                                      Language dest_lang)
Deprecated. 


wait

public static void wait(int interval)
Suspend for a specified time interval in ms. Similar to Thread.sleep().

Parameters:
interval - - time interval in milli seconds to suspend

toDebug

public E4Debug toDebug()

TRACE_CALLS

public static void TRACE_CALLS()

E4LabelApp

public E4LabelApp E4LabelApp(java.lang.String s)

E4LabelApp

public E4LabelApp E4LabelApp(E4String s)

E4LabelApp

public E4LabelApp E4LabelApp(java.lang.String s,
                             java.lang.String p1)

E4LabelApp

public E4LabelApp E4LabelApp(java.lang.String s,
                             int p1)

E4LabelApp

public E4LabelApp E4LabelApp(java.lang.String s,
                             java.lang.String p1,
                             java.lang.String p2)

E4LabelApp

public E4LabelApp E4LabelApp(java.lang.String s,
                             java.lang.String p1,
                             java.lang.String p2,
                             java.lang.String p3)

E4LabelSys

public E4LabelSys E4LabelSys(java.lang.String s)

E4LabelSys

public E4LabelSys E4LabelSys(E4String s)

E4LabelNone

public E4LabelNone E4LabelNone()

E4LabelNone

public E4LabelNone E4LabelNone(java.lang.String s)

E4LabelNone

public E4LabelNone E4LabelNone(E4String s)

E4LabelNone

public E4LabelNone E4LabelNone(long l)

mkdirs

public static final void mkdirs(java.lang.String path)
Create the specified directories - same as File.mkdirs(). Supresses possible IO errors.

Parameters:
path - a pathname which will be created in the file system.

Calendar

public static java.util.Calendar Calendar(java.util.Date date)
Create a calendar and assign the value with the given date value.

Parameters:
date - the date value
Returns:
null, if date is null or a new Calendar instance assigned with this date value

HtmlEncode

public static java.lang.String HtmlEncode(java.lang.String s)
Deprecated. 

See Also:
encodeHtml(String)

encodeHtml

public java.lang.String encodeHtml(java.lang.String s)
Encode a string by replacing ä,ö,ü,Ä,Ö,Ü,ß,>,< to ä, ö, ü, Ä, Ö, Ü, SS, >, < TODO: Note: this is not a complete implementation!

Parameters:
s - the string to be converted
Returns:
null, if s == null or the String with replaces special characters

HtmlEncode

public java.lang.String HtmlEncode(E4String s)
Deprecated. 

See Also:
encodeHtml(e4s.util.E4String)

encodeHtml

public java.lang.String encodeHtml(E4String s)
Encode a string by replacing ä,ö,ü,Ä,Ö,Ü,ß,>,< to ä, ö, ü, Ä, Ö, Ü, SS, >, < TODO: Note: this is not a complete implementation!

Parameters:
s - the string to be converted
Returns:
null, if s == null or the String with replaces special characters

HtmlEncode

public java.lang.String HtmlEncode(Language dest_lang,
                                   E4Label_Intf label)
See Also:
encodeHtml(java.lang.String)

encodeHtml

public 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!

Parameters:
label - the label to be converted - E4Label_Intf.getDest(e4s.application.Language)
Returns:
null, if label == null

CName

public static java.lang.String CName(java.lang.String clazz)
Get the base name of a class. e.g. java.io.InputStream results in "InputStream".

Parameters:
clazz - the class which name should be returned
Returns:
the basic name of the class (without packages)

CName

public static java.lang.String CName(java.lang.Class clazz)
Get the base name of a class. e.g. java.io.InputStream results in "InputStream".

Parameters:
clazz - the class which name should be returned
Returns:
the basic name of the class (without packages)

STACKTRACE

public static void STACKTRACE()
Write out the calling class, function and line of code. Append the long value. Uses the System.out stream. Useful for trace and debugging only.

Parameters:
val - additional value to display
See Also:
TRACE(), TRACE(Object)

outPrintln

public static void outPrintln(java.lang.String string)
Write a string to the TRACE logfile (if defined) or System.out

Parameters:
string - the string to be written
See Also:
E4Settings.getSysTraceLogPath(), setLogFile4Trace(String)

setTraceMemory

public static void setTraceMemory(boolean mode)

getTraceMemory

public static java.lang.String[] getTraceMemory()

setLogFile4Trace

public static void setLogFile4Trace(java.lang.String path)
Define a path for trace files (optionally, if not specified: logging goes to Tomcat/Standard-Out).

Parameters:
path - the path for the logfiles, if null turns off logging
See Also:
#TRACE(String), outPrintln(String), E4Settings.getSysTraceLogPath()

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com