| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final NameConverter | jaxrpcCompatible
JAX-PRC compatible name converter implementation. |
| public static final NameConverter | smart
Smarter converter used for RELAX NG support. |
| public static final NameConverter | standard
The name converter implemented by Code Model. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String |
| jaxrpcCompatible | back to summary |
|---|---|
| public static final NameConverter jaxrpcCompatible JAX-PRC compatible name converter implementation. The only difference is that we treat '_' as a valid character and not as a word separator. | |
| smart | back to summary |
|---|---|
| public static final NameConverter smart Smarter converter used for RELAX NG support. | |
| standard | back to summary |
|---|---|
| public static final NameConverter standard The name converter implemented by Code Model. This is the standard name conversion for JAXB. | |
| toClassName | back to summary |
|---|---|
| public String toClassName(String token) converts a string into an identifier suitable for classes. In general, this operation should generate "NamesLikeThis". | |
| toConstantName | back to summary |
|---|---|
| public String toConstantName(String token) converts a string into an identifier suitable for constants. In the standard Java naming convention, this operation should generate "NAMES_LIKE_THIS". | |
| toInterfaceName | back to summary |
|---|---|
| public String toInterfaceName(String token) converts a string into an identifier suitable for interfaces. In general, this operation should generate "NamesLikeThis". But for example, it can prepend every interface with 'I'. | |
| toPackageName | back to summary |
|---|---|
| public String toPackageName(String namespaceUri) Converts a namespace URI into a package name. This method should expect strings like "http://foo.bar.zot/org", "urn:abc:def:ghi" "", or even "###" (basically anything) and expected to return a package name, liks "org.acme.foo". | |
| toPropertyName | back to summary |
|---|---|
| public String toPropertyName(String token) converts a string into an identifier suitable for properties. In general, this operation should generate "NamesLikeThis", which will be used with known prefixes like "get" or "set". | |
| toVariableName | back to summary |
|---|---|
| public String toVariableName(String token) Converts a string into an identifier suitable for variables. In general it should generate "namesLikeThis". | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static String | |
| private static <T> ArrayList | |
| public String | toClassName(String s)
Implements org. converts a string into an identifier suitable for classes. |
| public String | toConstantName(String token)
Overrides org. Implements org. converts a string into an identifier suitable for constants. |
| public String | toInterfaceName(String token)
Implements org. converts a string into an identifier suitable for interfaces. |
| private static ArrayList | |
| public String | Returns: null if it fails to derive a package name.Implements org. Computes a Java package name from a namespace URI, as specified in the spec. |
| public String | toPropertyName(String s)
Implements org. converts a string into an identifier suitable for properties. |
| public String | toVariableName(String s)
Implements org. Converts a string into an identifier suitable for variables. |
| Standard | back to summary |
|---|---|
| public Standard() Default constructor. | |
| combine | back to summary |
|---|---|
| private static String combine(List<String> r, char sep) | |
| removeIllegalIdentifierChars | back to summary |
|---|---|
| private static String removeIllegalIdentifierChars(String token) | |
| reverse | back to summary |
|---|---|
| private static <T> ArrayList | |
| toClassName | back to summary |
|---|---|
| public String toClassName(String s) Implements org. Doc from org. converts a string into an identifier suitable for classes. In general, this operation should generate "NamesLikeThis".
| |
| toConstantName | back to summary |
|---|---|
| public String toConstantName(String token) Overrides org. Implements org. Doc from org. converts a string into an identifier suitable for constants. In the standard Java naming convention, this operation should generate "NAMES_LIKE_THIS".
| |
| toInterfaceName | back to summary |
|---|---|
| public String toInterfaceName(String token) Implements org. Doc from org. converts a string into an identifier suitable for interfaces. In general, this operation should generate "NamesLikeThis". But for example, it can prepend every interface with 'I'.
| |
| tokenize | back to summary |
|---|---|
| private static ArrayList | |
| toPackageName | back to summary |
|---|---|
| public String toPackageName(String nsUri) Implements org. Computes a Java package name from a namespace URI, as specified in the spec. | |
| toPropertyName | back to summary |
|---|---|
| public String toPropertyName(String s) Implements org. Doc from org. converts a string into an identifier suitable for properties. In general, this operation should generate "NamesLikeThis", which will be used with known prefixes like "get" or "set".
| |
| toVariableName | back to summary |
|---|---|
| public String toVariableName(String s) Implements org. Doc from org. Converts a string into an identifier suitable for variables. In general it should generate "namesLikeThis".
| |