|
||||||||||
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.GlobalConversion
|
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) 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 javax.xml.namespace.QName |
NAME
|
com.sun.xml.bind.api.impl.NameConverter |
nameConverter
Gets the name converter that will govern the XML->Java name conversion process for this compilation. |
(package private) java.lang.String |
noMarshaller
|
(package private) java.lang.String |
noUnmarshaller
|
(package private) java.lang.String |
noValidatingUnmarshaller
|
(package private) java.lang.String |
noValidator
|
(package private) OptionalPropertyMode |
optionalProperty
|
(package private) java.lang.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) 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(javax.xml.namespace.QName typeName)
Checks if the given XML Schema built-in type can be mapped to a type-safe enum class. |
boolean |
canBeMappedToTypeSafeEnum(java.lang.String nsUri,
java.lang.String localName)
|
boolean |
canBeMappedToTypeSafeEnum(com.sun.xml.xsom.XSDeclaration decl)
|
void |
dispatchGlobalConversions(com.sun.xml.xsom.XSSchemaSet schema)
Moves global BIConversion to the right object. |
void |
errorCheck()
Performs error check |
ImplStructureStrategy |
getCodeGenerationStrategy()
|
int |
getDefaultEnumMemberSizeCap()
|
BIProperty |
getDefaultProperty()
|
EnumMemberMode |
getEnumMemberMode()
|
LocalScoping |
getFlattenClasses()
|
javax.xml.namespace.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 |
isSimpleMode()
|
boolean |
isSimpleTypeSubstitution()
|
(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 |
---|
_assert, getBuilder, getCodeModel, getLocation, getOwner, isAcknowledged, markAsAcknowledged, onSetOwner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public com.sun.xml.bind.api.impl.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
java.lang.String simpleMode
boolean generateElementClass
boolean choiceContentProperty
OptionalPropertyMode optionalProperty
int defaultEnumMemberSizeCap
LocalScoping flattenClasses
java.lang.String noMarshaller
java.lang.String noUnmarshaller
java.lang.String noValidator
java.lang.String noValidatingUnmarshaller
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.TypeSubstitutionElement typeSubstitution
public static final javax.xml.namespace.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 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 setParent(BindInfo parent)
BIDeclaration
This method can be only called from BindInfo
,
and only once.
setParent
in interface BIDeclaration
setParent
in class AbstractDeclarationImpl
public void dispatchGlobalConversions(com.sun.xml.xsom.XSSchemaSet schema)
public boolean canBeMappedToTypeSafeEnum(javax.xml.namespace.QName typeName)
typeName
- public boolean canBeMappedToTypeSafeEnum(java.lang.String nsUri, java.lang.String localName)
public boolean canBeMappedToTypeSafeEnum(com.sun.xml.xsom.XSDeclaration decl)
public javax.xml.namespace.QName getName()
BIDeclaration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |