Top Description Fields Constructors Methods
com.sun.tools.xjc.reader.dtd.bindinfo

public Class BIUserConversion

extends Object
implements BIConversion
Class Inheritance
All Implemented Interfaces
com.sun.tools.xjc.reader.dtd.bindinfo.BIConversion
Imports
java.io.IOException, .StringReader, java.util.Map, jakarta.xml.bind.annotation.adapters.XmlAdapter, javax.xml.parsers.DocumentBuilderFactory, .ParserConfigurationException, com.sun.codemodel.JClass, .JClassAlreadyExistsException, .JCodeModel, .JDefinedClass, .JExpr, .JExpression, .JMethod, .JMod, .JPackage, .JPrimitiveType, .JType, .JVar, com.sun.tools.xjc.model.CAdapter, .CBuiltinLeafInfo, .TypeUse, .TypeUseFactory, org.glassfish.jaxb.core.v2.util.XmlFactory, org.w3c.dom.Element, org.xml.sax.InputSource, .Locator, .SAXException

<conversion> declaration in the binding file. This declaration declares a conversion by user-specified methods.

Field Summary

Modifier and TypeField and Description
private final Element
e

<conversion> element which this object is wrapping.

private final BindInfo
owner

The owner BindInfo object to which this object belongs.

Constructor Summary

AccessConstructor and Description
pack-priv
BIUserConversion(BindInfo bi, Element _e)

Wraps a given <conversion> element in the binding file.

Method Summary

Modifier and TypeMethod and Description
private static void
pack-priv static void
addBuiltinConversions(BindInfo bi, Map<String, BIConversion> m)

Adds all built-in conversions into the given map.

private JDefinedClass
generateAdapter(JCodeModel cm, String parseMethod, String printMethod, JClass inMemoryType)

public Locator
getSourceLocation()

Gets the location where this declaration is declared.

public TypeUse
getTransducer()

Implements com.sun.tools.xjc.reader.dtd.bindinfo.BIConversion.getTransducer.

Gets a transducer for this conversion.

public String
name()

Implements com.sun.tools.xjc.reader.dtd.bindinfo.BIConversion.name.

Gets the conversion name.

private static Element
parse(String text)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eback to summary
private final Element e

<conversion> element which this object is wrapping.

ownerback to summary
private final BindInfo owner

The owner BindInfo object to which this object belongs.

Constructor Detail

BIUserConversionback to summary
pack-priv BIUserConversion(BindInfo bi, Element _e)

Wraps a given <conversion> element in the binding file.

Method Detail

addback to summary
private static void add(Map<String, BIConversion> m, BIConversion c)
addBuiltinConversionsback to summary
pack-priv static void addBuiltinConversions(BindInfo bi, Map<String, BIConversion> m)

Adds all built-in conversions into the given map.

generateAdapterback to summary
private JDefinedClass generateAdapter(JCodeModel cm, String parseMethod, String printMethod, JClass inMemoryType)
getSourceLocationback to summary
public Locator getSourceLocation()

Gets the location where this declaration is declared.

getTransducerback to summary
public TypeUse getTransducer()

Implements com.sun.tools.xjc.reader.dtd.bindinfo.BIConversion.getTransducer.

Gets a transducer for this conversion.

Annotations
@Override
nameback to summary
public String name()

Implements com.sun.tools.xjc.reader.dtd.bindinfo.BIConversion.name.

Gets the conversion name.

Annotations
@Override
parseback to summary
private static Element parse(String text)