|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.spi.db.BindingHelper
public class BindingHelper
BindingHelper
| Constructor Summary | |
|---|---|
BindingHelper()
|
|
| Method Summary | ||
|---|---|---|
static
|
erasure(java.lang.reflect.Type t)
|
|
static java.lang.reflect.Type |
getBaseType(java.lang.reflect.Type type,
java.lang.Class baseType)
Gets the parameterization of the given base type. |
|
static java.lang.String |
mangleNameToClassName(java.lang.String localName)
Computes a Java class name from a local name. |
|
static java.lang.String |
mangleNameToPropertyName(java.lang.String localName)
Computes a Java class name from a local name. |
|
static java.lang.String |
mangleNameToVariableName(java.lang.String localName)
Computes a Java identifier from a local name. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BindingHelper()
| Method Detail |
|---|
@NotNull
public static java.lang.String mangleNameToVariableName(@NotNull
java.lang.String localName)
This method faithfully implements the name mangling rule as specified in the JAXB spec.
In JAXB, a collision with a Java reserved word (such as "return") never happens. Accordingly, this method may return an identifier that collides with reserved words.
Use JJavaName.isJavaIdentifier(String) to check for such collision.
@NotNull
public static java.lang.String mangleNameToClassName(@NotNull
java.lang.String localName)
This method faithfully implements the name mangling rule as specified in the JAXB spec.
@NotNull
public static java.lang.String mangleNameToPropertyName(@NotNull
java.lang.String localName)
This method faithfully implements the name mangling rule as specified in the JAXB spec.
This method works like mangleNameToClassName(String) except that it looks
for "getClass" and returns something else.
@Nullable
public static java.lang.reflect.Type getBaseType(@NotNull
java.lang.reflect.Type type,
@NotNull
java.lang.Class baseType)
For example, given the following
This method works like this:interface Foo extends List > {} interface Bar extends Foo
{}
getBaseClass( Bar, List ) = List getBaseClass( Bar, Foo ) = Foo
getBaseClass( Foo extends Number>, Collection ) = Collection > getBaseClass( ArrayList extends BigInteger>, List ) = List extends BigInteger>
type - The type that derives from baseTypebaseType - The class whose parameterization we are interested in.
baseType in type.
or null if the type is not assignable to the base type.public static <T> java.lang.Class<T> erasure(java.lang.reflect.Type t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||