com.sun.tools.xjc.reader.xmlschema.bindinfo
Class BIConversion

java.lang.Object
  extended by com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl
      extended by com.sun.tools.xjc.reader.xmlschema.bindinfo.BIConversion
All Implemented Interfaces:
BIDeclaration
Direct Known Subclasses:
BIConversion.Static, BIConversion.User, BIConversion.UserAdapter

public abstract class BIConversion
extends AbstractDeclarationImpl

Conversion declaration.

A conversion declaration specifies how an XML type gets mapped to a Java type.


Nested Class Summary
static class BIConversion.Static
          Implementation that returns a statically-determined constant TypeUse.
static class BIConversion.User
          User-specified <javaType> customization.
static class BIConversion.UserAdapter
           
 
Field Summary
static QName NAME
          Name of the conversion declaration.
 
Fields inherited from class com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl
loc, parent
 
Constructor Summary
protected BIConversion()
           
  BIConversion(Locator loc)
          Deprecated. 
 
Method Summary
 QName getName()
          Gets the name of this binding declaration, which is the same as the tag name of the binding element.
abstract  TypeUse getTypeUse(XSSimpleType owner)
          Gets the TypeUse object that this conversion represents.
 
Methods inherited from class com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl
getBuilder, getChildren, getCodeModel, getLocation, getOwner, isAcknowledged, markAsAcknowledged, onSetOwner, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final QName NAME
Name of the conversion declaration.

Constructor Detail

BIConversion

@Deprecated
public BIConversion(Locator loc)
Deprecated. 


BIConversion

protected BIConversion()
Method Detail

getTypeUse

public abstract TypeUse getTypeUse(XSSimpleType owner)
Gets the TypeUse object that this conversion represents.

The returned TypeUse object is properly adapted.

Parameters:
owner - A BIConversion is always associated with one XSSimpleType, but that's not always available when a BIConversion is built. So we pass this as a parameter to this method.

getName

public QName getName()
Description copied from interface: BIDeclaration
Gets the name of this binding declaration, which is the same as the tag name of the binding element.