com.sun.tools.xjc.reader.xmlschema.bindinfo
final class BindInfo extends Object implements Iterable<BIDeclaration>
Field Summary | |
---|---|
static SchemaCache | bindingFileSchema
Lazily parsed schema for the binding file. |
BindInfo.Documentation | documentation
Documentation taken from <xs:documentation>s. |
static BindInfo | empty An instance with the empty contents. |
Locator | location |
Method Summary | |
---|---|
void | absorb(BindInfo bi)
Merges all the declarations inside the given BindInfo
to this BindInfo. |
void | addDecl(BIDeclaration decl) Adds a new declaration. |
<T extends BIDeclaration> T | get(Class<T> kind)
Gets the first declaration with a given name, or null
if none is found. |
BIDeclaration | get(int idx) |
BGMBuilder | getBuilder()
Back pointer to the BGMBuilder which is building
a BGM from schema components including this customization. |
BIDeclaration[] | getDecls()
Gets all the declarations |
String | getDocumentation()
Gets the documentation parsed from <xs:documentation>s.
|
static JAXBContextImpl | getJAXBContext() |
XSComponent | getOwner() |
Locator | getSourceLocation()
Gets the location of this annotation in the source file.
|
boolean | isPointless()
Returns true if this BindInfo doesn't contain any useful
information.
|
Iterator<BIDeclaration> | iterator() |
void | setAppinfo(BindInfo.AppInfo aib) |
void | setOwner(BGMBuilder _builder, XSComponent _owner)
Sets the owner schema component and a reference to BGMBuilder.
|
int | size() Gets the number of declarations. |
CCustomizations | toCustomizationList()
Gets the list of CPluginCustomizations from this.
|
Returns: maybe null.
Returns: If the declarations are in fact specified in the source code, a non-null valid object will be returned. If this BindInfo is generated internally by XJC, then null will be returned.
Note that calling this method marks all those plug-in customizations as 'used'. So call it only when it's really necessary.