| com.sun.xml.bind.api.impl.NameConverter
NameConverter | public interface NameConverter (Code) | | Converts aribitrary strings into Java identifiers.
author: Kohsuke KAWAGUCHI |
jaxrpcCompatible | final public static NameConverter jaxrpcCompatible(Code) | | JAX-PRC compatible name converter implementation.
The only difference is that we treat '_' as a valid character
and not as a word separator.
|
smart | final public static NameConverter smart(Code) | | Smarter converter used for RELAX NG support.
|
standard | final public static NameConverter standard(Code) | | The name converter implemented by Code Model.
This is the standard name conversion for JAXB.
|
toClassName | String toClassName(String token)(Code) | | converts a string into an identifier suitable for classes.
In general, this operation should generate "NamesLikeThis".
|
toConstantName | String toConstantName(String token)(Code) | | converts a string into an identifier suitable for constants.
In the standard Java naming convention, this operation should
generate "NAMES_LIKE_THIS".
|
toInterfaceName | String toInterfaceName(String token)(Code) | | 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 | String toPackageName(String namespaceUri)(Code) | | 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 | String toPropertyName(String token)(Code) | | 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 | String toVariableName(String token)(Code) | | Converts a string into an identifier suitable for variables.
In general it should generate "namesLikeThis".
|
|
|