public final class BIGlobalBinding extends Object
One of the information contained in a global customization is the default binding for properties. This object contains a BIProperty object to keep this information.
Modifier and Type | Field and Description |
---|---|
static QName |
NAME |
NameConverter |
nameConverter
Gets the name converter that will govern the
XML -> Java
name conversion process for this compilation. |
protected BindInfo |
parent |
Constructor and Description |
---|
BIGlobalBinding()
Creates a bind info object with the default values
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeMappedToTypeSafeEnum(QName typeName)
Checks if the given XML Schema built-in type can be mapped to
a type-safe enum class.
|
boolean |
canBeMappedToTypeSafeEnum(String nsUri,
String localName) |
boolean |
canBeMappedToTypeSafeEnum(XSDeclaration decl) |
void |
dispatchGlobalConversions(XSSchemaSet schema)
Moves global BIConversion to the right object.
|
void |
errorCheck()
Performs error check
|
protected BGMBuilder |
getBuilder() |
Collection<BIDeclaration> |
getChildren()
Gets child
BIDeclaration s if any. |
ImplStructureStrategy |
getCodeGenerationStrategy() |
protected JCodeModel |
getCodeModel() |
int |
getDefaultEnumMemberSizeCap() |
BIProperty |
getDefaultProperty() |
EnumMemberMode |
getEnumMemberMode() |
LocalScoping |
getFlattenClasses() |
Locator |
getLocation()
Gets the source location where this declaration was written.
|
QName |
getName()
Gets the name of this binding declaration,
which is the same as the tag name of the binding element.
|
protected XSComponent |
getOwner() |
BISerializable |
getSerializable() |
JDefinedClass |
getSuperClass() |
JDefinedClass |
getSuperInterface() |
boolean |
isAcknowledged()
Checks if this declaration was acknowledged.
|
boolean |
isChoiceContentPropertyEnabled() |
boolean |
isEqual(BIGlobalBinding b) |
boolean |
isGenerateElementClass() |
boolean |
isGenerateMixedExtensions() |
boolean |
isJavaNamingConventionEnabled() |
boolean |
isRestrictionFreshType() |
boolean |
isSimpleMode() |
boolean |
isSimpleTypeSubstitution() |
void |
markAsAcknowledged()
Marks this declaration to be acknowledged -- either actually
used or the existence is admitted (for example when
a property customization is given at the point of definition.)
|
void |
onSetOwner()
Called when the parent
BindInfo got its owner set. |
void |
setParent(BindInfo parent)
Sets the parent BindInfo object of this declaration.
|
public NameConverter nameConverter
XML -> Java
name conversion process for this compilation.
The "underscoreBinding" customization will determine the exact object returned from this method. The rest of XJC should just use the NameConverter interface.
Always non-null.
public static final QName NAME
protected BindInfo parent
public BIGlobalBinding()
public JDefinedClass getSuperClass()
public JDefinedClass getSuperInterface()
public BIProperty getDefaultProperty()
public boolean isJavaNamingConventionEnabled()
public BISerializable getSerializable()
public boolean isGenerateElementClass()
public boolean isGenerateMixedExtensions()
public boolean isChoiceContentPropertyEnabled()
public int getDefaultEnumMemberSizeCap()
public boolean isSimpleMode()
public boolean isRestrictionFreshType()
public EnumMemberMode getEnumMemberMode()
public boolean isSimpleTypeSubstitution()
public ImplStructureStrategy getCodeGenerationStrategy()
public LocalScoping getFlattenClasses()
public void errorCheck()
public void onSetOwner()
BIDeclaration
BindInfo
got its owner set.
This is when declarations are connected to BGMBuilder
and
its sibling components.onSetOwner
in interface BIDeclaration
public void setParent(BindInfo parent)
BIDeclaration
This method can be only called from BindInfo
,
and only once. This is a good opportunity to do some
follow-up initialization after JAXB unmarshalling
populated BIDeclaration
.
setParent
in interface BIDeclaration
public void dispatchGlobalConversions(XSSchemaSet schema)
public boolean canBeMappedToTypeSafeEnum(QName typeName)
typeName
- public boolean canBeMappedToTypeSafeEnum(XSDeclaration decl)
public QName getName()
BIDeclaration
public boolean isEqual(BIGlobalBinding b)
public Locator getLocation()
BIDeclaration
getLocation
in interface BIDeclaration
protected final XSComponent getOwner()
protected final BGMBuilder getBuilder()
protected final JCodeModel getCodeModel()
public final boolean isAcknowledged()
BIDeclaration
isAcknowledged
in interface BIDeclaration
public Collection<BIDeclaration> getChildren()
BIDeclaration
BIDeclaration
s if any.getChildren
in interface BIDeclaration
public void markAsAcknowledged()
BIDeclaration
Declarations that are not acknowledged will be considered as an error.
markAsAcknowledged
in interface BIDeclaration
Copyright © 2021 JBoss by Red Hat. All rights reserved.