Class BindingConfig

  • Direct Known Subclasses:
    BindingConfigImpl

    public class BindingConfig
    extends java.lang.Object
    The BindingConfig class is used during compilation to control the generation of java source files. The default BindingConfig does nothing, but sub-classes should provide more interesting behavior.
    See Also:
    XmlBeans.compileXmlBeans()
    • Constructor Detail

      • BindingConfig

        public BindingConfig()
    • Method Detail

      • lookupPackageForNamespace

        public java.lang.String lookupPackageForNamespace​(java.lang.String uri)
        Parameters:
        uri - the namespace uri
        Returns:
        the package name for a namespace or null.
      • lookupPrefixForNamespace

        public java.lang.String lookupPrefixForNamespace​(java.lang.String uri)
        Parameters:
        uri - the namespace uri
        Returns:
        the prefix applied to each java name for a namespace or null.
      • lookupSuffixForNamespace

        public java.lang.String lookupSuffixForNamespace​(java.lang.String uri)
        Parameters:
        uri - the namespace uri
        Returns:
        Get the suffix applied to each java name for a namespace or null.
      • lookupJavanameForQName

        public java.lang.String lookupJavanameForQName​(javax.xml.namespace.QName qname)
        Deprecated.
        Parameters:
        qname - the qname of the java name
        Returns:
        the java name for a QName or null.
      • getInterfaceExtensions

        public InterfaceExtension[] getInterfaceExtensions()
        Returns:
        all configured InterfaceExtensions or an empty array.
      • getInterfaceExtensions

        public InterfaceExtension[] getInterfaceExtensions​(java.lang.String fullJavaName)
        Parameters:
        fullJavaName - the fully qualified java type name
        Returns:
        all InterfaceExtensions defined for the fully qualified java type generated from schema compilation or an empty array.
      • getPrePostExtensions

        public PrePostExtension[] getPrePostExtensions()
        Returns:
        all configued PrePostExtensions or an empty array.
      • getPrePostExtension

        public PrePostExtension getPrePostExtension​(java.lang.String fullJavaName)
        Parameters:
        fullJavaName - the fully qualified java type name
        Returns:
        the PrePostExtension defined for the fully qualified java type generated from schema compilation or null.
      • getUserTypes

        public UserType[] getUserTypes()
        Returns:
        all defined user types.
      • lookupUserTypeForQName

        public UserType lookupUserTypeForQName​(javax.xml.namespace.QName qname)
        Parameters:
        qname - the qname of the user type
        Returns:
        a user defined Java type for a given QName.