|
||||||||||
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.AbstractDeclarationImpl
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding
public final class BIGlobalBinding
Global binding customization. The code is highly temporary.
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.
Nested Class Summary | |
---|---|
(package private) static class |
BIGlobalBinding.ClassNameAdapter
|
(package private) static class |
BIGlobalBinding.ClassNameBean
Used to unmarshal |
(package private) static class |
BIGlobalBinding.GlobalStandardConversion
Global <jaxb:javaType>. |
(package private) static class |
BIGlobalBinding.GlobalVendorConversion
Global <xjc:javaType>. |
Field Summary | |
---|---|
(package private) boolean |
choiceContentProperty
|
(package private) ImplStructureStrategy |
codeGenerationStrategy
The code generation strategy. |
(package private) int |
defaultEnumMemberSizeCap
Default cap to the number of constants in the enum. |
(package private) LocalScoping |
flattenClasses
If true, interfaces/classes that are normally generated as a nested interface/class will be generated into the package, allowing the generated classes to be flat. |
(package private) boolean |
generateElementClass
True to generate a class for elements by default. |
(package private) Boolean |
generateElementProperty
|
(package private) EnumMemberMode |
generateEnumMemberName
Returns true if the compiler needs to generate type-safe enum member names when enumeration values cannot be used as constant names. |
(package private) boolean |
isJavaNamingConventionEnabled
Returns true if the "isJavaNamingConventionEnabled" option is turned on. |
static QName |
NAME
|
NameConverter |
nameConverter
Gets the name converter that will govern the XML->Java name conversion process for this compilation. |
(package private) String |
noMarshaller
|
(package private) String |
noUnmarshaller
|
(package private) String |
noValidatingUnmarshaller
|
(package private) String |
noValidator
|
(package private) OptionalPropertyMode |
optionalProperty
|
(package private) String |
simpleMode
Generate the simpler optimized code, but not necessarily conforming to the spec. |
(package private) boolean |
simpleTypeSubstitution
True to generate classes for every simple type. |
(package private) BIGlobalBinding.ClassNameBean |
superClass
If <xjc:superClass> extension is specified, returns the specified root class. |
(package private) BIGlobalBinding.ClassNameBean |
superInterface
If <xjc:superInterface> extension is specified, returns the specified root class. |
(package private) String |
treatRestrictionLikeNewType
Handles complex type restriction as if it were a new type. |
(package private) com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.TypeSubstitutionElement |
typeSubstitution
|
Fields inherited from class com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl |
---|
loc, parent |
Constructor Summary | |
---|---|
BIGlobalBinding()
Creates a bind info object with the default values |
Method Summary | |
---|---|
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 |
ImplStructureStrategy |
getCodeGenerationStrategy()
|
int |
getDefaultEnumMemberSizeCap()
|
BIProperty |
getDefaultProperty()
|
EnumMemberMode |
getEnumMemberMode()
|
LocalScoping |
getFlattenClasses()
|
QName |
getName()
Gets the name of this binding declaration, which is the same as the tag name of the binding element. |
BISerializable |
getSerializable()
|
com.sun.codemodel.JDefinedClass |
getSuperClass()
|
com.sun.codemodel.JDefinedClass |
getSuperInterface()
|
(package private) com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.UnderscoreBinding |
getUnderscoreBinding()
|
boolean |
isChoiceContentPropertyEnabled()
|
boolean |
isGenerateElementClass()
|
boolean |
isJavaNamingConventionEnabled()
|
boolean |
isRestrictionFreshType()
|
boolean |
isSimpleMode()
|
boolean |
isSimpleTypeSubstitution()
|
void |
onSetOwner()
Called when the parent BindInfo got its owner set. |
(package private) void |
setGenerateIsSetMethod(boolean b)
|
void |
setParent(BindInfo parent)
Sets the parent BindInfo object of this declaration. |
(package private) void |
setUnderscoreBinding(com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.UnderscoreBinding ub)
|
(package private) void |
setXjcSerializable(BISerializable s)
Another 1.0 compatibility customization (but we accept it and treat it as serializable ) |
Methods inherited from class com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl |
---|
getBuilder, getChildren, getCodeModel, getLocation, getOwner, isAcknowledged, markAsAcknowledged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public NameConverter nameConverter
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.
boolean isJavaNamingConventionEnabled
boolean simpleTypeSubstitution
EnumMemberMode generateEnumMemberName
ImplStructureStrategy codeGenerationStrategy
BIGlobalBinding.ClassNameBean superClass
BIGlobalBinding.ClassNameBean superInterface
String simpleMode
String treatRestrictionLikeNewType
boolean generateElementClass
Boolean generateElementProperty
boolean choiceContentProperty
OptionalPropertyMode optionalProperty
int defaultEnumMemberSizeCap
LocalScoping flattenClasses
String noMarshaller
String noUnmarshaller
String noValidator
String noValidatingUnmarshaller
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.TypeSubstitutionElement typeSubstitution
public static final QName NAME
Constructor Detail |
---|
public BIGlobalBinding()
Method Detail |
---|
void setUnderscoreBinding(com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.UnderscoreBinding ub)
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.UnderscoreBinding getUnderscoreBinding()
public com.sun.codemodel.JDefinedClass getSuperClass()
public com.sun.codemodel.JDefinedClass getSuperInterface()
public BIProperty getDefaultProperty()
public boolean isJavaNamingConventionEnabled()
public BISerializable getSerializable()
public boolean isGenerateElementClass()
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()
void setGenerateIsSetMethod(boolean b)
void setXjcSerializable(BISerializable s)
serializable
)
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
onSetOwner
in class AbstractDeclarationImpl
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
setParent
in class AbstractDeclarationImpl
public void dispatchGlobalConversions(XSSchemaSet schema)
public boolean canBeMappedToTypeSafeEnum(QName typeName)
typeName
- public boolean canBeMappedToTypeSafeEnum(String nsUri, String localName)
public boolean canBeMappedToTypeSafeEnum(XSDeclaration decl)
public QName getName()
BIDeclaration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |