| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.js.Util
Various static utility methods.
| Constructor Summary | |
| Util() | |
| Method Summary | |
| static java.lang.String | asJavaIdentifier(java.lang.String pIdentifier)Takes as input an arbitrary String and maps it to a String, which is a valid Java identifier. | 
| static void | checkJavaIdentifier(java.lang.String pName)Returns whether the given name is a valid Java identifier. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Util()
| Method Detail | 
public static void checkJavaIdentifier(java.lang.String pName)
Returns whether the given name is a valid Java identifier.
 Works by using Character.isJavaIdentifierStart(char) and
 Character.isJavaIdentifierPart(char).
java.lang.IllegalArgumentException - The name is not valid. An explanation
   why is given in the detail message.public static java.lang.String asJavaIdentifier(java.lang.String pIdentifier)
Takes as input an arbitrary String and maps it to a String, which is a valid Java identifier. Mapping works as follows:
Character.isJavaIdentifierStart(char).
     If that method returns false, replaces the character with an
     underscore ('_').Character.isJavaIdentifierPart(char).
     If that method returns false, replaces the character with an
     underscore ('_').
pIdentifier - The identifier being mapped
java.lang.IllegalArgumentException - The parameter pIdentifier
   cannot be converted into a Java identifier, because it is null or
   empty.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||