|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo
public final class BindInfo
Container for customization declarations. We use JAXB ourselves and parse this object from "xs:annotation".
| Field Summary | |
|---|---|
static SchemaCache |
bindingFileSchema
Lazily parsed schema for the binding file. |
static BindInfo |
empty
An instance with the empty contents. |
| Constructor Summary | |
|---|---|
BindInfo()
|
|
| 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. |
|
|
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. |
|
static JAXBContext |
getCustomizationContext()
|
|
static Unmarshaller |
getCustomizationUnmarshaller()
|
|
BIDeclaration[] |
getDecls()
Gets all the declarations |
|
String |
getDocumentation()
Gets the documentation parsed from <xs:documentation>s. |
|
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 |
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final BindInfo empty
public static final SchemaCache bindingFileSchema
| Constructor Detail |
|---|
public BindInfo()
| Method Detail |
|---|
public boolean isPointless()
BindInfo doesn't contain any useful
information.
This flag is used to discard unused BindInfos early to save memory footprint.
public 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(Class<T> kind)
public BIDeclaration[] getDecls()
public String getDocumentation()
JDocComment.append(Object).
public void absorb(BindInfo bi)
public int size()
public BIDeclaration get(int idx)
public Iterator<BIDeclaration> iterator()
iterator in interface 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 JAXBContext getCustomizationContext()
public static Unmarshaller getCustomizationUnmarshaller()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||