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

Class BindInfo

public class BindInfo extends Object

Root of the binding information.
Field Summary
CodeModelClassFactoryclassFactory
Wrap the codeModel object and automate error reporting.
JCodeModelcodeModel
CodeModel object that is used by this binding file.
protected ErrorReceivererrorReceiver
Controller object that can be used to report errors.
Modelmodel
Constructor Summary
BindInfo(Model model, InputSource source, ErrorReceiver _errorReceiver)
BindInfo(Model model, Document _dom, ErrorReceiver _errorReceiver)
Method Summary
BIConversionconversion(String name)
Gets the conversion declaration from the binding info.
BIElementelement(String name)
Gets the element declaration from the binding info.
Collection<BIElement>elements()
Iterates all BIElements in a read-only set.
LonggetSerialVersionUID()
Gets the serialVersionUID if it's turned on.
JClassgetSuperClass()
Gets the xjc:superClass customization if it's turned on.
JClassgetSuperInterface()
Gets the xjc:superInterface customization if it's turned on.
JPackagegetTargetPackage()
Gets the specified package name (options/@package).
Collection<BIInterface>interfaces()
Returns all BIInterfaces in a read-only set.

Field Detail

classFactory

final CodeModelClassFactory classFactory
Wrap the codeModel object and automate error reporting.

codeModel

final JCodeModel codeModel
CodeModel object that is used by this binding file.

errorReceiver

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

model

final Model model

Constructor Detail

BindInfo

public BindInfo(Model model, InputSource source, ErrorReceiver _errorReceiver)

BindInfo

public BindInfo(Model model, Document _dom, ErrorReceiver _errorReceiver)

Method Detail

conversion

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

Returns: A non-null valid BIConversion object.

element

public BIElement element(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 Collection<BIElement> elements()
Iterates all BIElements in a read-only set.

getSerialVersionUID

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

getSuperClass

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

getSuperInterface

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

getTargetPackage

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

interfaces

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