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

java.lang.Object
  extended by com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl
      extended by com.sun.tools.xjc.reader.xmlschema.bindinfo.BIClass
All Implemented Interfaces:
BIDeclaration

public final class BIClass
extends AbstractDeclarationImpl

Class declaration. This customization turns arbitrary schema component into a Java content interface.

This customization is acknowledged by the ClassSelector.


Field Summary
static QName NAME
          Name of this declaration.
 
Fields inherited from class com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl
loc, parent
 
Constructor Summary
protected BIClass()
           
 
Method Summary
 String getClassName()
          Gets the specified class name, or null if not specified.
 String getExistingClassRef()
          Reference to the existing class, or null.
 String getJavadoc()
          Gets the javadoc comment specified in the customization.
 QName getName()
          Gets the name of this binding declaration, which is the same as the tag name of the binding element.
 String getUserSpecifiedImplClass()
          Gets the fully qualified name of the user-specified implementation class, if any.
 void setParent(BindInfo p)
          Sets the parent BindInfo object of this declaration.
 
Methods inherited from class com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl
getBuilder, getChildren, getCodeModel, getLocation, getOwner, isAcknowledged, markAsAcknowledged, onSetOwner
 
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 this declaration.

Constructor Detail

BIClass

protected BIClass()
Method Detail

getClassName

@Nullable
public String getClassName()
Gets the specified class name, or null if not specified. (Not a fully qualified name.)

Returns:
Returns a class name. The caller should NOT apply XML-to-Java name conversion to the name returned from this method.

getUserSpecifiedImplClass

public String getUserSpecifiedImplClass()
Gets the fully qualified name of the user-specified implementation class, if any. Or null.


getExistingClassRef

public String getExistingClassRef()
Reference to the existing class, or null. Fully qualified name.

Caller needs to perform error check on this.


getJavadoc

public String getJavadoc()
Gets the javadoc comment specified in the customization. Can be null if none is specified.


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.


setParent

public void setParent(BindInfo p)
Description copied from interface: BIDeclaration
Sets the parent BindInfo object of this declaration. A declaration object can use this pointer to access context information, such as other customizations.

This method can be only called from BindInfo, and only once. This is a good opportunity to do some follow-up initialization after JAXB unmarshalling populated BIDeclaration.

Specified by:
setParent in interface BIDeclaration
Overrides:
setParent in class AbstractDeclarationImpl