Package org.apache.xmlbeans.impl.config
Class BindingConfigImpl
java.lang.Object
org.apache.xmlbeans.BindingConfig
org.apache.xmlbeans.impl.config.BindingConfigImpl
public class BindingConfigImpl extends BindingConfig
An implementation of BindingConfig
-
Field Summary
Fields inherited from class org.apache.xmlbeans.BindingConfig
QNAME_ACCESSOR_ATTRIBUTE, QNAME_ACCESSOR_ELEMENT, QNAME_DOCUMENT_TYPE, QNAME_TYPE -
Method Summary
Modifier and Type Method Description static BindingConfigforConfigDocuments(org.apache.xmlbeans.impl.xb.xmlconfig.ConfigDocument.Config[] configs, File[] javaFiles, File[] classpath)InterfaceExtension[]getInterfaceExtensions()InterfaceExtension[]getInterfaceExtensions(String fullJavaName)PrePostExtensiongetPrePostExtension(String fullJavaName)PrePostExtension[]getPrePostExtensions()StringlookupJavanameForQName(QName qname)Deprecated.replaced withlookupJavanameForQName(QName, int)StringlookupJavanameForQName(QName qname, int kind)StringlookupPackageForNamespace(String uri)StringlookupPrefixForNamespace(String uri)StringlookupSuffixForNamespace(String uri)UserTypelookupUserTypeForQName(QName qname)
-
Method Details
-
forConfigDocuments
public static BindingConfig forConfigDocuments(org.apache.xmlbeans.impl.xb.xmlconfig.ConfigDocument.Config[] configs, File[] javaFiles, File[] classpath) -
lookupPackageForNamespace
- Overrides:
lookupPackageForNamespacein classBindingConfig- Parameters:
uri- the namespace uri- Returns:
- the package name for a namespace or null.
-
lookupPrefixForNamespace
- Overrides:
lookupPrefixForNamespacein classBindingConfig- Parameters:
uri- the namespace uri- Returns:
- the prefix applied to each java name for a namespace or null.
-
lookupSuffixForNamespace
- Overrides:
lookupSuffixForNamespacein classBindingConfig- Parameters:
uri- the namespace uri- Returns:
- Get the suffix applied to each java name for a namespace or null.
-
lookupJavanameForQName
Deprecated.replaced withlookupJavanameForQName(QName, int) -
lookupJavanameForQName
- Overrides:
lookupJavanameForQNamein classBindingConfig- Parameters:
qname- the qname of the java namekind- the type of the qname, which one ofBindingConfig.QNAME_TYPE,BindingConfig.QNAME_DOCUMENT_TYPE,BindingConfig.QNAME_ACCESSOR_ELEMENT,BindingConfig.QNAME_ACCESSOR_ATTRIBUTE- Returns:
- Get the java name for a QName of a specific component kind, or null.
-
lookupUserTypeForQName
- Overrides:
lookupUserTypeForQNamein classBindingConfig- Parameters:
qname- the qname of the user type- Returns:
- a user defined Java type for a given QName.
-
getInterfaceExtensions
- Overrides:
getInterfaceExtensionsin classBindingConfig- Returns:
- all configured InterfaceExtensions or an empty array.
-
getInterfaceExtensions
- Overrides:
getInterfaceExtensionsin classBindingConfig- 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
- Overrides:
getPrePostExtensionsin classBindingConfig- Returns:
- all configued PrePostExtensions or an empty array.
-
getPrePostExtension
- Overrides:
getPrePostExtensionin classBindingConfig- Parameters:
fullJavaName- the fully qualified java type name- Returns:
- the PrePostExtension defined for the fully qualified java type generated from schema compilation or null.
-