Java Doc for JavaUtils.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » util » 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 » Web Services AXIS2 » kernal » org.apache.axis2.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.util.JavaUtils

JavaUtils
public class JavaUtils (Code)
JavaUtils


Field Summary
final public static  String[]EMPTY_STRING_ARRAY
     An empty immutable String array.
final static  CollatorenglishCollator
    
final static  charkeywordPrefix
    
final static  Stringkeywords
     These are java keywords as specified at the following URL (sorted alphabetically).


Method Summary
public static  StringcapitalizeFirstChar(String name)
     Capitalizes the first character of the name.
public static  ClassgetWrapperClass(Class primitive)
    
public static  booleanhasUpperCase(String word)
    
public static  intindexOfIgnoreCase(String string, String search)
     Scans the parameter string for the parameter search ignoring case when comparing characters.
Parameters:
  string -
Parameters:
  search - If test is empty -1 is always returned.
public static  booleanisFalse(String value)
    
public static  booleanisFalse(Object value, boolean defaultVal)
     Tests the Object 'value': if its null, return default.
public static  booleanisFalse(Object value)
    
public static  booleanisFalseExplicitly(String value)
    
public static  booleanisFalseExplicitly(Object value, boolean defaultVal)
     Tests the Object 'value': if its null, return default.
public static  booleanisFalseExplicitly(Object value)
    
public static  booleanisJavaId(String id)
    
public static  booleanisJavaKeyword(String keyword)
     Checks if the input string is a valid java keyword.
public static  booleanisTrue(String value)
    
public static  booleanisTrue(Object value, boolean defaultVal)
     Tests the Object 'value': if its null, return default.
public static  booleanisTrue(Object value)
    
public static  booleanisTrueExplicitly(String value)
    
public static  booleanisTrueExplicitly(Object value, boolean defaultVal)
     Tests the Object 'value': if its null, return default.
public static  booleanisTrueExplicitly(Object value)
    
public static  StringmakeNonJavaKeyword(String keyword)
     Turns a java keyword string into a non-Java keyword string.
public static  String[]split(String str, char separatorChar)
    

Splits the provided text into an array, separator specified.

public static  StringxmlNameToJava(String name)
    
public static  StringxmlNameToJavaIdentifier(String name)
    

Field Detail
EMPTY_STRING_ARRAY
final public static String[] EMPTY_STRING_ARRAY(Code)
An empty immutable String array.



englishCollator
final static Collator englishCollator(Code)
Collator for comparing the strings



keywordPrefix
final static char keywordPrefix(Code)
Use this character as suffix



keywords
final static String keywords(Code)
These are java keywords as specified at the following URL (sorted alphabetically). http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#229308 Note that false, true, and null are not strictly keywords; they are literal values, but for the purposes of this array, they can be treated as literals. PLEASE KEEP THIS LIST SORTED IN ASCENDING ORDER ******





Method Detail
capitalizeFirstChar
public static String capitalizeFirstChar(String name)(Code)
Capitalizes the first character of the name.
Parameters:
  name - Returns String.



getWrapperClass
public static Class getWrapperClass(Class primitive)(Code)



hasUpperCase
public static boolean hasUpperCase(String word)(Code)
Check if the word has any uppercase letters
Parameters:
  word -



indexOfIgnoreCase
public static int indexOfIgnoreCase(String string, String search)(Code)
Scans the parameter string for the parameter search ignoring case when comparing characters.
Parameters:
  string -
Parameters:
  search - If test is empty -1 is always returned. -1 if the string was not found or the index of the first matchingcharacter



isFalse
public static boolean isFalse(String value)(Code)
Tests the String 'value': return 'true' if its 'false', '0', or 'no' - else 'false'

Follow in 'C' tradition of boolean values: false is specific (0), everything else is true;




isFalse
public static boolean isFalse(Object value, boolean defaultVal)(Code)
Tests the Object 'value': if its null, return default. if its a Boolean, return booleanValue() if its an Integer, return 'false' if its '0' else 'true' if its a String, return 'false' if its 'false', 'no', or '0' - else 'true' All other types return 'true'



isFalse
public static boolean isFalse(Object value)(Code)



isFalseExplicitly
public static boolean isFalseExplicitly(String value)(Code)
Tests the String 'value': return 'true' if its null, 'false', '0', or 'no' - else 'false'



isFalseExplicitly
public static boolean isFalseExplicitly(Object value, boolean defaultVal)(Code)
Tests the Object 'value': if its null, return default. if its a Boolean, return !booleanValue() if its an Integer, return 'true' if its '0' else 'false' if its a String, return isFalseExplicitly((String)value). All other types return 'false'



isFalseExplicitly
public static boolean isFalseExplicitly(Object value)(Code)



isJavaId
public static boolean isJavaId(String id)(Code)



isJavaKeyword
public static boolean isJavaKeyword(String keyword)(Code)
Checks if the input string is a valid java keyword. Returns boolean.



isTrue
public static boolean isTrue(String value)(Code)
Tests the String 'value': return 'false' if its 'false', '0', or 'no' - else 'true'

Follow in 'C' tradition of boolean values: false is specific (0), everything else is true;




isTrue
public static boolean isTrue(Object value, boolean defaultVal)(Code)
Tests the Object 'value': if its null, return default. if its a Boolean, return booleanValue() if its an Integer, return 'false' if its '0' else 'true' if its a String, return 'false' if its 'false', 'no', or '0' - else 'true' All other types return 'true'



isTrue
public static boolean isTrue(Object value)(Code)



isTrueExplicitly
public static boolean isTrueExplicitly(String value)(Code)
Tests the String 'value': return 'true' if its 'true', '1', or 'yes' - else 'false'



isTrueExplicitly
public static boolean isTrueExplicitly(Object value, boolean defaultVal)(Code)
Tests the Object 'value': if its null, return default. if its a Boolean, return booleanValue() if its an Integer, return 'false' if its '0' else 'true' if its a String, return isTrueExplicitly((String)value). All other types return 'true'



isTrueExplicitly
public static boolean isTrueExplicitly(Object value)(Code)



makeNonJavaKeyword
public static String makeNonJavaKeyword(String keyword)(Code)
Turns a java keyword string into a non-Java keyword string. (Right now this simply means appending an underscore.)



split
public static String[] split(String str, char separatorChar)(Code)

Splits the provided text into an array, separator specified. This is an alternative to using StringTokenizer.

The separator is not included in the returned String array. Adjacent separators are treated as one separator.

A null input String returns null.

 StringUtils.split(null, *)         = null
 StringUtils.split("", *)           = []
 StringUtils.split("a.b.c", '.')    = ["a", "b", "c"]
 StringUtils.split("a..b.c", '.')   = ["a", "b", "c"]
 StringUtils.split("a:b:c", '.')    = ["a:b:c"]
 StringUtils.split("a\tb\nc", null) = ["a", "b", "c"]
 StringUtils.split("a b c", ' ')    = ["a", "b", "c"]
 

Parameters:
  str - the String to parse, may be null
Parameters:
  separatorChar - the character used as the delimiter,null splits on whitespace an array of parsed Strings, null if null String input



xmlNameToJava
public static String xmlNameToJava(String name)(Code)



xmlNameToJavaIdentifier
public static String xmlNameToJavaIdentifier(String name)(Code)
converts an xml name to a java identifier
Parameters:
  name - java identifier



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.