java.lang.Iterable<BIDeclaration>public final class BindInfo extends java.lang.Object implements java.lang.Iterable<BIDeclaration>
| Modifier and Type | Field | Description |
|---|---|---|
static SchemaCache |
bindingFileSchema |
Lazily parsed schema for the binding file.
|
static BindInfo |
empty |
An instance with the empty contents.
|
| Constructor | Description |
|---|---|
BindInfo() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
absorb(BindInfo bi) |
Merges all the declarations inside the given BindInfo
to this BindInfo.
|
void |
addDecl(BIDeclaration decl) |
Adds a new declaration.
|
BIDeclaration |
get(int idx) |
|
<T extends BIDeclaration> |
get(java.lang.Class<T> kind) |
Gets the first declaration with a given name, or null
if none is found.
|
BGMBuilder |
getBuilder() |
Back pointer to the BGMBuilder which is building
a BGM from schema components including this customization.
|
static javax.xml.bind.JAXBContext |
getCustomizationContext() |
|
static javax.xml.bind.Unmarshaller |
getCustomizationUnmarshaller() |
|
BIDeclaration[] |
getDecls() |
Gets all the declarations
|
java.lang.String |
getDocumentation() |
Gets the documentation parsed from
<xs:documentation>s. |
XSComponent |
getOwner() |
|
org.xml.sax.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. |
java.util.Iterator<BIDeclaration> |
iterator() |
|
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. |
public static final BindInfo empty
public static final SchemaCache bindingFileSchema
public boolean isPointless()
public org.xml.sax.Locator getSourceLocation()
public void setOwner(BGMBuilder _builder, XSComponent _owner)
public XSComponent getOwner()
public BGMBuilder getBuilder()
public void addDecl(BIDeclaration decl)
public <T extends BIDeclaration> T get(java.lang.Class<T> kind)
public BIDeclaration[] getDecls()
public java.lang.String getDocumentation()
<xs:documentation>s.
The returned collection is to be added to JDocComment.append(Object).public void absorb(BindInfo bi)
public int size()
public BIDeclaration get(int idx)
public java.util.Iterator<BIDeclaration> iterator()
iterator in interface java.lang.Iterable<BIDeclaration>public CCustomizations toCustomizationList()
CPluginCustomizations from this.
Note that calling this method marks all those plug-in customizations as 'used'. So call it only when it's really necessary.
public static javax.xml.bind.JAXBContext getCustomizationContext()
public static javax.xml.bind.Unmarshaller getCustomizationUnmarshaller()
Copyright © 2017 Oracle Corporation. All rights reserved.