public static class NameConverter.Standard extends Object implements NameConverter
NameConverter.Standard| Modifier and Type | Field and Description | 
|---|---|
| protected static int | DIGIT | 
| protected static int | LOWER_LETTER | 
| protected static int | OTHER | 
| protected static int | OTHER_LETTER | 
| protected static int | UPPER_LETTER | 
jaxrpcCompatible, smart, standard| Constructor and Description | 
|---|
| Standard() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | capitalize(String s)Capitalizes the first character of the specified string,
 and de-capitalize the rest of characters. | 
| protected int | classify(char c0)Classify a character into 5 categories that determine the word break. | 
| static void | escape(StringBuilder sb,
      String s,
      int start)Escapes characters is the given string so that they can be
 printed by only using US-ASCII characters. | 
| protected static boolean | isDigit(char c) | 
| protected boolean | isLetter(char c) | 
| protected static boolean | isLower(char c) | 
| protected boolean | isPunct(char c) | 
| protected static boolean | isUpper(char c) | 
| String | toClassName(String s)converts a string into an identifier suitable for classes. | 
| String | toConstantName(List<String> ss)Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF". | 
| String | toConstantName(String token)Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF". | 
| String | toInterfaceName(String token)converts a string into an identifier suitable for interfaces. | 
| protected String | toMixedCaseName(List<String> ss,
               boolean startUpper) | 
| protected String | toMixedCaseVariableName(String[] ss,
                       boolean startUpper,
                       boolean cdrUpper) | 
| String | toPackageName(String nsUri)Computes a Java package name from a namespace URI,
 as specified in the spec. | 
| String | toPropertyName(String s)converts a string into an identifier suitable for properties. | 
| String | toVariableName(String s)Converts a string into an identifier suitable for variables. | 
| List<String> | toWordList(String s)Tokenizes a string into words and capitalizes the first
 character of each word. | 
protected static final int UPPER_LETTER
protected static final int LOWER_LETTER
protected static final int OTHER_LETTER
protected static final int DIGIT
protected static final int OTHER
public String toClassName(String s)
NameConvertertoClassName in interface NameConverterpublic String toVariableName(String s)
NameConvertertoVariableName in interface NameConverterpublic String toInterfaceName(String token)
NameConvertertoInterfaceName in interface NameConverterpublic String toPropertyName(String s)
NameConvertertoPropertyName in interface NameConverterpublic String toConstantName(String token)
toConstantName in interface NameConverterpublic String toPackageName(String nsUri)
toPackageName in interface NameConverterprotected boolean isPunct(char c)
protected static boolean isDigit(char c)
protected static boolean isUpper(char c)
protected static boolean isLower(char c)
protected boolean isLetter(char c)
public String capitalize(String s)
protected int classify(char c0)
public List<String> toWordList(String s)
This method uses a change in character type as a splitter of two words. For example, "abc100ghi" will be splitted into {"Abc", "100","Ghi"}.
protected String toMixedCaseVariableName(String[] ss, boolean startUpper, boolean cdrUpper)
public String toConstantName(List<String> ss)
public static void escape(StringBuilder sb, String s, int start)
sb - StringBuffer that receives escaped string.s - String to be escaped. s.substring(start)
      will be escaped and copied to the string buffer.Copyright © 2017 JBoss by Red Hat. All rights reserved.