Top Description Inners Fields Constructors Methods
com.sun.tools.xjc.reader.xmlschema.bindinfo

public final Class BISchemaBinding

extends AbstractDeclarationImpl
Class Inheritance
Annotations
@XmlRootElement
name:schemaBindings
Imports
jakarta.xml.bind.annotation.XmlAttribute, .XmlElement, .XmlRootElement, .XmlType, javax.xml.namespace.QName, com.sun.tools.xjc.reader.Const, com.sun.xml.xsom.XSAttributeDecl, .XSComponent, .XSElementDecl, .XSModelGroup, .XSModelGroupDecl, .XSType

Schema-wide binding customization.
Author
Kohsuke Kawaguchi ([email protected])

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
BISchemaBinding.NameRules

Name conversion rules.

public static class
BISchemaBinding.NamingRule

Default naming rules of the generated interfaces.

private static class

Field Summary

Modifier and TypeField and Description
private static final BISchemaBinding.NamingRule
defaultNamingRule

Default naming rule, that doesn't change the name.

public boolean
map

If false, it means not to generate any classes from this namespace.

public static final QName
private BISchemaBinding.NameRules
private BISchemaBinding.PackageInfo
Inherited from com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl:
locparent

Constructor Summary

AccessConstructor and Description
public
BISchemaBinding()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public String
public QName
getName()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.getName.

Gets the name of this binding declaration, which is the same as the tag name of the binding element.

public String
public String
public String
mangleClassName(String name, XSComponent
The schema component from which the default name is derived.
cmp
)

Transforms the default name produced from XML name by following the customization.

Inherited from com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl:
getBuildergetChildrengetCodeModelgetLocationgetOwnerisAcknowledgedmarkAsAcknowledgedonSetOwnersetParent

Field Detail

defaultNamingRuleback to summary
private static final BISchemaBinding.NamingRule defaultNamingRule

Default naming rule, that doesn't change the name.

mapback to summary
public boolean map

If false, it means not to generate any classes from this namespace. No ObjectFactory, no classes (the only way to bind them is by using <jaxb:class ref="..."/>)

Annotations
@XmlAttribute
name:map
NAMEback to summary
public static final QName NAME
nameXmlTransformback to summary
private BISchemaBinding.NameRules nameXmlTransform
Annotations
@XmlElement
packageInfoback to summary
private BISchemaBinding.PackageInfo packageInfo
Annotations
@XmlElement
name:package

Constructor Detail

BISchemaBindingback to summary
public BISchemaBinding()

Default constructor.

Method Detail

getJavadocback to summary
public String getJavadoc()
getNameback to summary
public QName getName()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.getName.

Doc from com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.getName.

Gets the name of this binding declaration, which is the same as the tag name of the binding element.

Annotations
@Override
getPackageNameback to summary
public String getPackageName()
mangleAnonymousTypeClassNameback to summary
public String mangleAnonymousTypeClassName(String name)
mangleClassNameback to summary
public String mangleClassName(String name, XSComponent cmp)

Transforms the default name produced from XML name by following the customization. This shouldn't be applied to a class name specified by a customization.

Parameters
cmp:XSComponent

The schema component from which the default name is derived.

com.sun.tools.xjc.reader.xmlschema.bindinfo back to summary

private final Class BISchemaBinding.NameRules

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.tools.xjc.reader.xmlschema.bindinfo.BISchemaBinding.NameRules
Annotations
@XmlType
propOrder:

Name conversion rules. All defaults to BISchemaBinding#defaultNamingRule.

Field Summary

Modifier and TypeField and Description
pack-priv BISchemaBinding.NamingRule
pack-priv BISchemaBinding.NamingRule
pack-priv BISchemaBinding.NamingRule
pack-priv BISchemaBinding.NamingRule
pack-priv BISchemaBinding.NamingRule

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

anonymousTypeNameback to summary
pack-priv BISchemaBinding.NamingRule anonymousTypeName
Annotations
@XmlElement
attributeNameback to summary
pack-priv BISchemaBinding.NamingRule attributeName
Annotations
@XmlElement
elementNameback to summary
pack-priv BISchemaBinding.NamingRule elementName
Annotations
@XmlElement
modelGroupNameback to summary
pack-priv BISchemaBinding.NamingRule modelGroupName
Annotations
@XmlElement
typeNameback to summary
pack-priv BISchemaBinding.NamingRule typeName
Annotations
@XmlElement

Constructor Detail

NameRulesback to summary
private NameRules()
com.sun.tools.xjc.reader.xmlschema.bindinfo back to summary

public final Class BISchemaBinding.NamingRule

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.tools.xjc.reader.xmlschema.bindinfo.BISchemaBinding.NamingRule

Default naming rules of the generated interfaces. It simply adds prefix and suffix to the name, but the caller shouldn't care how the name mangling is done.

Field Summary

Modifier and TypeField and Description
private String
private String

Constructor Summary

AccessConstructor and Description
public
NamingRule(String _prefix, String _suffix)

public

Method Summary

Modifier and TypeMethod and Description
public String
mangle(String originalName)

Changes the name according to the rule.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

prefixback to summary
private String prefix
Annotations
@XmlAttribute
suffixback to summary
private String suffix
Annotations
@XmlAttribute

Constructor Detail

NamingRuleback to summary
public NamingRule(String _prefix, String _suffix)
NamingRuleback to summary
public NamingRule()

Method Detail

mangleback to summary
public String mangle(String originalName)

Changes the name according to the rule.

com.sun.tools.xjc.reader.xmlschema.bindinfo back to summary

private final Class BISchemaBinding.PackageInfo

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.tools.xjc.reader.xmlschema.bindinfo.BISchemaBinding.PackageInfo

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

javadocback to summary
pack-priv String javadoc
Annotations
@XmlElement
nameback to summary
pack-priv String name
Annotations
@XmlAttribute

Constructor Detail

PackageInfoback to summary
private PackageInfo()