Class BindInfo
java.lang.Object
com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo
- All Implemented Interfaces:
Iterable<BIDeclaration>
Container for customization declarations.
We use JAXB ourselves and parse this object from "xs:annotation".
- Author:
- Kohsuke Kawaguchi (kohsuke,kawaguchi@sun.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SchemaCacheLazily parsed schema for the binding file.static final BindInfoAn instance with the empty contents. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMerges all the declarations inside the given BindInfo to this BindInfo.voidaddDecl(BIDeclaration decl) Adds a new declaration.get(int idx) <T extends BIDeclaration>
TGets the first declaration with a given name, or null if none is found.Back pointer to the BGMBuilder which is building a BGM from schema components including this customization.static jakarta.xml.bind.JAXBContextstatic jakarta.xml.bind.UnmarshallergetDecls()Gets all the declarationsGets the documentation parsed from<xs:documentation>s.getOwner()Gets the location of this annotation in the source file.booleanReturns true if thisBindInfodoesn't contain any useful information.iterator()voidsetOwner(BGMBuilder _builder, XSComponent _owner) Sets the owner schema component and a reference to BGMBuilder.intsize()Gets the number of declarations.Gets the list ofCPluginCustomizations from this.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
empty
An instance with the empty contents. -
bindingFileSchema
Lazily parsed schema for the binding file.
-
-
Constructor Details
-
BindInfo
public BindInfo()
-
-
Method Details
-
isPointless
public boolean isPointless() -
getSourceLocation
Gets the location of this annotation in the source file.- 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.
-
setOwner
Sets the owner schema component and a reference to BGMBuilder. This method is called from the BGMBuilder before any BIDeclaration inside it is used. -
getOwner
-
getBuilder
Back pointer to the BGMBuilder which is building a BGM from schema components including this customization. -
addDecl
Adds a new declaration. -
get
Gets the first declaration with a given name, or null if none is found. -
getDecls
Gets all the declarations -
getDocumentation
Gets the documentation parsed from<xs:documentation>s. The returned collection is to be added toJDocComment.append(Object).- Returns:
- maybe null.
-
absorb
Merges all the declarations inside the given BindInfo to this BindInfo. -
size
public int size()Gets the number of declarations. -
get
-
iterator
- Specified by:
iteratorin interfaceIterable<BIDeclaration>
-
toCustomizationList
Gets the list ofCPluginCustomizations from this.Note that calling this method marks all those plug-in customizations as 'used'. So call it only when it's really necessary.
-
getCustomizationContext
public static jakarta.xml.bind.JAXBContext getCustomizationContext() -
getCustomizationUnmarshaller
public static jakarta.xml.bind.Unmarshaller getCustomizationUnmarshaller()
-