com.sun.tools.xjc.reader.dtd.bindinfo
Class BindInfo

java.lang.Object
  extended by com.sun.tools.xjc.reader.dtd.bindinfo.BindInfo

public class BindInfo
extends java.lang.Object

Root of the binding information.


Field Summary
protected  ErrorReceiver errorReceiver
          Controller object that can be used to report errors.
 
Constructor Summary
BindInfo(Model model, org.w3c.dom.Document _dom, ErrorReceiver _errorReceiver)
           
BindInfo(Model model, org.xml.sax.InputSource source, ErrorReceiver _errorReceiver)
           
 
Method Summary
 BIConversion conversion(java.lang.String name)
          Gets the conversion declaration from the binding info.
 BIElement element(java.lang.String name)
          Gets the element declaration from the binding info.
 java.util.Collection<BIElement> elements()
          Iterates all BIElements in a read-only set.
 java.lang.Long getSerialVersionUID()
          Gets the serialVersionUID if it's turned on.
 com.sun.codemodel.JClass getSuperClass()
          Gets the xjc:superClass customization if it's turned on.
 com.sun.codemodel.JClass getSuperInterface()
          Gets the xjc:superInterface customization if it's turned on.
 com.sun.codemodel.JPackage getTargetPackage()
          Gets the specified package name (options/@package).
 java.util.Collection<BIInterface> interfaces()
          Returns all BIInterfaces in a read-only set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorReceiver

protected final ErrorReceiver errorReceiver
Controller object that can be used to report errors.

Constructor Detail

BindInfo

public BindInfo(Model model,
                org.xml.sax.InputSource source,
                ErrorReceiver _errorReceiver)
         throws AbortException
Throws:
AbortException

BindInfo

public BindInfo(Model model,
                org.w3c.dom.Document _dom,
                ErrorReceiver _errorReceiver)
Method Detail

getSerialVersionUID

public java.lang.Long getSerialVersionUID()
Gets the serialVersionUID if it's turned on.


getSuperClass

public com.sun.codemodel.JClass getSuperClass()
Gets the xjc:superClass customization if it's turned on.


getSuperInterface

public com.sun.codemodel.JClass getSuperInterface()
Gets the xjc:superInterface customization if it's turned on.


getTargetPackage

public com.sun.codemodel.JPackage getTargetPackage()
Gets the specified package name (options/@package).


conversion

public BIConversion conversion(java.lang.String name)
Gets the conversion declaration from the binding info.

Returns:
A non-null valid BIConversion object.

element

public BIElement element(java.lang.String name)
Gets the element declaration from the binding info.

Returns:
If there is no declaration with a given name, this method returns null.

elements

public java.util.Collection<BIElement> elements()
Iterates all BIElements in a read-only set.


interfaces

public java.util.Collection<BIInterface> interfaces()
Returns all BIInterfaces in a read-only set.