Java Doc for KeTools.java in  » J2EE » WiSerFramework » de » ug2t » kernel » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » WiSerFramework » de.ug2t.kernel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.ug2t.kernel.KeTools

KeTools
public class KeTools (Code)

author:
   Dirk
author:
   date: 02.01.2004 project: WiSer-Framework
author:
  


author:
   A set of tools
author:
  




Constructor Summary
public  KeTools()
    

Method Summary
final public static  Stringpcmf_array2String(Object xArray)
    
final public static  Stringpcmf_array2String(Object xArray, int cutIdx)
    
final public static  Stringpcmf_array2String(Object xArray, int cutIdx, int xStart, int xEnd)
    
public static  voidpcmf_copyDir(String xSource, String xTarget)
    

Copies the content of one directory to the other.

public static  voidpcmf_copyDir(String xSource, String xTarget, String[] xFiles, boolean xExact)
    

Copies files with a defined name from one directory to the other.

public static  voidpcmf_copyFile(String xSource, String xTarget)
    
final public static  Stringpcmf_deRef(String xValue, String xDef)
    

Dereferences a variable (mainly used for internationalisation).

final public static  Stringpcmf_deRef(String xValue)
    

Dereferences a variable (mainly used for internationalisation).

final public static  Objectpcmf_deRefObj(String xValue)
    
public static  voidpcmf_deleteFiles(File xFile, boolean xDelThis)
    

Deletes a file or directory.

public static  Stringpcmf_eventType(String xEvent)
    
final public static  voidpcmf_except(String xLoc, int xNr, String xMess, String xPar1, String xPar2)
    
public static  Stringpcmf_formatNumber(int xNumber, int xLen)
    
public static  Stringpcmf_getClassName(Class xClass)
    
public static  intpcmf_getHeight(String xEvent)
    
public static synchronized  Stringpcmf_getNewId()
    
public static  intpcmf_getWidth(String xEvent)
    
public static  intpcmf_getX(String xEvent)
    
public static  intpcmf_getY(String xEvent)
    
final public static  booleanpcmf_isObjReference(String xValue)
    
public static  voidpcmf_setDeRefDelegate(IKeDeRefDelegate xDelegate)
    
final public static  Stringpcmf_stringCutParam(KeStringWrapper xString, String xParam)
    
final public static  KeStringTemplatepcmf_stringSingleSubst(KeStringTemplate xString, String xOrg, KeStringTemplate xNew)
    
final public static  KeStringTemplatepcmf_stringSingleSubst(KeStringTemplate xString, String xOrg, String xNew)
    
final public static  Stringpcmf_stringSingleSubst(String xString, String xOrg, String xNew)
    
final public static  Stringpcmf_stringSingleSubstIC(String xString, String xOrg, String xNew)
    
final public static  KeStringTemplatepcmf_stringSubst(KeStringTemplate xString, String xOrg, String xNew)
    
final public static  KeStringTemplatepcmf_stringSubst(KeStringTemplate xString, String xOrg, KeStringTemplate xNew)
    
final public static  Stringpcmf_stringSubst(String xString, String xOrg, String xNew)
    
final public static  KeStringTemplatepcmf_stringSubstAppend(KeStringTemplate xString, String xOrg, String xNew, String xAppend)
    
final public static  ArrayListpcmf_stringTokens(String xString, String xTokenizer)
    
final public static  ArrayListpcmf_stringTokens(String xString, String xTokenizer, int xTokens)
    
public static  Stringpcmf_wildcardToRegex(String xWildcard)
    


Constructor Detail
KeTools
public KeTools()(Code)




Method Detail
pcmf_array2String
final public static String pcmf_array2String(Object xArray)(Code)
For internal use only



pcmf_array2String
final public static String pcmf_array2String(Object xArray, int cutIdx)(Code)
For internal use only



pcmf_array2String
final public static String pcmf_array2String(Object xArray, int cutIdx, int xStart, int xEnd)(Code)
For internal use only



pcmf_copyDir
public static void pcmf_copyDir(String xSource, String xTarget) throws Exception(Code)

Copies the content of one directory to the other. The function works recursive


Parameters:
  xSource - Source directory
Parameters:
  xTarget - Target directory




pcmf_copyDir
public static void pcmf_copyDir(String xSource, String xTarget, String[] xFiles, boolean xExact) throws Exception(Code)

Copies files with a defined name from one directory to the other. The function works recursive


Parameters:
  xSource - Source directory
Parameters:
  xTarget - Target directory
Parameters:
  xFiles - File names
Parameters:
  xExact - true indicates an exact match, false means the string has to bepart of the file name




pcmf_copyFile
public static void pcmf_copyFile(String xSource, String xTarget) throws Exception(Code)

Copies one file to an other


Parameters:
  xSource - Source file
Parameters:
  xTarget - Target file




pcmf_deRef
final public static String pcmf_deRef(String xValue, String xDef)(Code)

Dereferences a variable (mainly used for internationalisation). This method works recursive! The string representation of a registered object #[register name] or a value from a parameter file which is referenced by %[parameter file]:[cluster]:[parameter]. or the result of a java expression *[scope]:[name].[function].[parameters separated by ;] while scope is either application (access to a value from the application context), registry (access to a registered object) or httpsession (only for web applications). The parameters may be references to objects only from the registry (~objname) or Strings ==> String(AB), Integers ==> Integer (3254236), Floats ==> Float(12.434), Booleans ==> Boolean (false), Long ==> Long(375437) and Doubles ==> Double(34.4687). null means null. Everything else is interpreted as String. A parameter can be any type of variable explained in this chapter. ##, %%, ** are the escape sequences for the corresponding special signs.


Parameters:
  xValue - variable to dereference
Parameters:
  xDef - default if vairiable is not valid, if null the variable string isreturned




pcmf_deRef
final public static String pcmf_deRef(String xValue)(Code)

Dereferences a variable (mainly used for internationalisation). This method works recursive! The string representation of a registered object #[register name] or a value from a parameter file which is referenced by %[parameter file]:[cluster]:[parameter]. or the result of a java expression *[scope]:[name].[function].[parameters separated by ;] while scope is either application (access to a value from the application context), registry (access to a registered object) or httpsession (only for web applications). The parameters may be references to objects only from the registry (~objname) or Strings ==> String(AB), Integers ==> Integer (3254236), Floats ==> Float(12.434), Booleans ==> Boolean (false), Long ==> Long(375437) and Doubles ==> Double(34.4687). null means null. Everything else is interpreted as String. A parameter can be any type of variable explained in this chapter. ##, %%, ** are the escape sequences for the corresponding special signs.


Parameters:
  xValue - variable to dereference




pcmf_deRefObj
final public static Object pcmf_deRefObj(String xValue)(Code)
For internal use only



pcmf_deleteFiles
public static void pcmf_deleteFiles(File xFile, boolean xDelThis)(Code)

Deletes a file or directory. This method works recursive.


Parameters:
  xFile - File or directory to delete
Parameters:
  xDelThis - In case of a directory this indicates whether the directory itselfis deleted or only it's content




pcmf_eventType
public static String pcmf_eventType(String xEvent)(Code)



pcmf_except
final public static void pcmf_except(String xLoc, int xNr, String xMess, String xPar1, String xPar2) throws Exception(Code)
For internal use only



pcmf_formatNumber
public static String pcmf_formatNumber(int xNumber, int xLen)(Code)

Formats a number with leading 0


Parameters:
  xNumber - the int to format
Parameters:
  xLen - the length the formatted string




pcmf_getClassName
public static String pcmf_getClassName(Class xClass)(Code)
For internal use only



pcmf_getHeight
public static int pcmf_getHeight(String xEvent)(Code)
For internal use only



pcmf_getNewId
public static synchronized String pcmf_getNewId()(Code)

Gets a unique ID as String




pcmf_getWidth
public static int pcmf_getWidth(String xEvent)(Code)
For internal use only



pcmf_getX
public static int pcmf_getX(String xEvent)(Code)
For internal use only



pcmf_getY
public static int pcmf_getY(String xEvent)(Code)
For internal use only



pcmf_isObjReference
final public static boolean pcmf_isObjReference(String xValue)(Code)
For internal use only



pcmf_setDeRefDelegate
public static void pcmf_setDeRefDelegate(IKeDeRefDelegate xDelegate)(Code)

Sets a delegate method for derefencing variables via pcmf_deRef(String xValue)


Parameters:
  xDelegate - the delegate class




pcmf_stringCutParam
final public static String pcmf_stringCutParam(KeStringWrapper xString, String xParam)(Code)
For internal use only



pcmf_stringSingleSubst
final public static KeStringTemplate pcmf_stringSingleSubst(KeStringTemplate xString, String xOrg, KeStringTemplate xNew)(Code)
For internal use only



pcmf_stringSingleSubst
final public static KeStringTemplate pcmf_stringSingleSubst(KeStringTemplate xString, String xOrg, String xNew)(Code)
For internal use only



pcmf_stringSingleSubst
final public static String pcmf_stringSingleSubst(String xString, String xOrg, String xNew)(Code)
For internal use only



pcmf_stringSingleSubstIC
final public static String pcmf_stringSingleSubstIC(String xString, String xOrg, String xNew)(Code)
For internal use only



pcmf_stringSubst
final public static KeStringTemplate pcmf_stringSubst(KeStringTemplate xString, String xOrg, String xNew)(Code)
For internal use only



pcmf_stringSubst
final public static KeStringTemplate pcmf_stringSubst(KeStringTemplate xString, String xOrg, KeStringTemplate xNew)(Code)
For internal use only



pcmf_stringSubst
final public static String pcmf_stringSubst(String xString, String xOrg, String xNew)(Code)
For internal use only



pcmf_stringSubstAppend
final public static KeStringTemplate pcmf_stringSubstAppend(KeStringTemplate xString, String xOrg, String xNew, String xAppend)(Code)
For internal use only



pcmf_stringTokens
final public static ArrayList pcmf_stringTokens(String xString, String xTokenizer)(Code)

Returns an ArraList with all tokens of a string


Parameters:
  xString - String to be tokenized
Parameters:
  xTokenizer - separators




pcmf_stringTokens
final public static ArrayList pcmf_stringTokens(String xString, String xTokenizer, int xTokens)(Code)

Returns an ArraList with all tokens of a string while tokenizing is stopped after xTokens have been found


Parameters:
  xString - String to be tokenized
Parameters:
  xTokenizer - separators
Parameters:
  xTokens - stop after




pcmf_wildcardToRegex
public static String pcmf_wildcardToRegex(String xWildcard)(Code)

Builds a regular expression from a string with wildcards *?


Parameters:
  xWildcard - wildcard string regular expression string




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.