A conversion declaration specifies how an XML type gets mapped to a Java type.
| Modifier and Type | Class and Description |
|---|---|
| public static class | BIConversion.
Implementation that returns a statically-determined constant |
| public static class | BIConversion.
User-specified |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final QName | NAME
Name of the conversion declaration. |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public QName | getName()
Implements com. Gets the name of this binding declaration, which is the same as the tag name of the binding element. |
| public abstract TypeUse | getTypeUse(XSSimpleType
A is always associated with one
owner)XSSimpleType, but that's not always available
when a is built. So we pass this
as a parameter to this method.Gets the |
| NAME | back to summary |
|---|---|
| public static final QName NAME Name of the conversion declaration. | |
| BIConversion | back to summary |
|---|---|
| public BIConversion(Locator loc)
Deprecated
| |
| BIConversion | back to summary |
|---|---|
| protected BIConversion() | |
| getName | back to summary |
|---|---|
| public QName getName() Implements com. Doc from com. Gets the name of this binding declaration, which is the same as the tag name of the binding element.
| |
| getTypeUse | back to summary |
|---|---|
| public abstract TypeUse getTypeUse(XSSimpleType owner) Gets the
The returned
| |
TypeUse.
| Modifier and Type | Field and Description |
|---|---|
| private final TypeUse | transducer
Always non-null. |
| Modifier and Type | Method and Description |
|---|---|
| public TypeUse | getTypeUse(XSSimpleType owner)
Implements abstract com. Gets the |
| transducer | back to summary |
|---|---|
| private final TypeUse transducer Always non-null. | |
| Static | back to summary |
|---|---|
| public Static(Locator loc, TypeUse transducer) | |
| getTypeUse | back to summary |
|---|---|
| public TypeUse getTypeUse(XSSimpleType owner) Implements abstract com. Doc from com. Gets the
The returned
| |
<javaType> customization.
The parse/print methods are allowed to be null,
and their default values are determined based on the
owner of the token.
| Modifier and Type | Field and Description |
|---|---|
| private JType | inMemoryType
If null, computed from |
| private static final String[] | |
| public static final QName | NAME
Hides com. |
| private String | |
| private String | |
| private String | |
| private TypeUse | typeUse
Cache used by |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private JDefinedClass | generateAdapter(String parseMethod, String printMethod, XSSimpleType owner)
generate the adapter class. |
| private String | |
| public QName | getName()
Overrides com. Implements com. Gets the name of this binding declaration, which is the same as the tag name of the binding element. |
| public TypeUse | getTypeUse(XSSimpleType owner)
Implements abstract com. Gets the |
| private String | |
| private String |
| inMemoryType | back to summary |
|---|---|
| private JType inMemoryType If null, computed from | |
| knownBases | back to summary |
|---|---|
| private static final String[] knownBases | |
| NAME | back to summary |
|---|---|
| public static final QName NAME Hides com. Name of the conversion declaration. | |
| parseMethod | back to summary |
|---|---|
| private String parseMethod
| |
| printMethod | back to summary |
|---|---|
| private String printMethod
| |
| type | back to summary |
|---|---|
private String type
| |
| typeUse | back to summary |
|---|---|
| private TypeUse typeUse Cache used by | |
| User | back to summary |
|---|---|
| public User(Locator loc, String parseMethod, String printMethod, JType inMemoryType) | |
| User | back to summary |
|---|---|
| public User() | |
| findBaseConversion | back to summary |
|---|---|
| private String findBaseConversion(XSSimpleType owner) | |
| generateAdapter | back to summary |
|---|---|
| private JDefinedClass generateAdapter(String parseMethod, String printMethod, XSSimpleType owner) generate the adapter class. | |
| getConversionMethod | back to summary |
|---|---|
| private String getConversionMethod(String methodPrefix, XSSimpleType owner) | |
| getName | back to summary |
|---|---|
| public QName getName() Overrides com. Implements com. Doc from com. Gets the name of this binding declaration, which is the same as the tag name of the binding element.
| |
| getTypeUse | back to summary |
|---|---|
| public TypeUse getTypeUse(XSSimpleType owner) Implements abstract com. Doc from com. Gets the
The returned
| |
| parseMethodFor | back to summary |
|---|---|
| private String parseMethodFor(XSSimpleType owner) | |
| printMethodFor | back to summary |
|---|---|
| private String printMethodFor(XSSimpleType owner) | |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private TypeUse |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private JClass | |
| public TypeUse | getTypeUse(XSSimpleType owner)
Implements abstract com. Gets the |
| adapter | back to summary |
|---|---|
| private String adapter
| |
| type | back to summary |
|---|---|
private String type
| |
| typeUse | back to summary |
|---|---|
| private TypeUse typeUse | |
| UserAdapter | back to summary |
|---|---|
| public UserAdapter() Default constructor. | |
| computeClassType | back to summary |
|---|---|
| private JClass computeClassType(String type) | |
| getTypeUse | back to summary |
|---|---|
| public TypeUse getTypeUse(XSSimpleType owner) Implements abstract com. Doc from com. Gets the
The returned
| |