Package org.apache.xmlbeans
Class BindingConfig
java.lang.Object
org.apache.xmlbeans.BindingConfig
- Direct Known Subclasses:
BindingConfigImpl
public class BindingConfig extends 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()
-
Field Summary
Fields Modifier and Type Field Description static intQNAME_ACCESSOR_ATTRIBUTEstatic intQNAME_ACCESSOR_ELEMENTstatic intQNAME_DOCUMENT_TYPEstatic intQNAME_TYPE -
Constructor Summary
Constructors Constructor Description BindingConfig() -
Method Summary
Modifier and Type Method Description InterfaceExtension[]getInterfaceExtensions()InterfaceExtension[]getInterfaceExtensions(String fullJavaName)PrePostExtensiongetPrePostExtension(String fullJavaName)PrePostExtension[]getPrePostExtensions()UserType[]getUserTypes()StringlookupJavanameForQName(QName qname, int kind)StringlookupPackageForNamespace(String uri)StringlookupPrefixForNamespace(String uri)StringlookupSuffixForNamespace(String uri)UserTypelookupUserTypeForQName(QName qname)
-
Field Details
-
QNAME_TYPE
public static final int QNAME_TYPE- See Also:
- Constant Field Values
-
QNAME_DOCUMENT_TYPE
public static final int QNAME_DOCUMENT_TYPE- See Also:
- Constant Field Values
-
QNAME_ACCESSOR_ELEMENT
public static final int QNAME_ACCESSOR_ELEMENT- See Also:
- Constant Field Values
-
QNAME_ACCESSOR_ATTRIBUTE
public static final int QNAME_ACCESSOR_ATTRIBUTE- See Also:
- Constant Field Values
-
-
Constructor Details
-
BindingConfig
public BindingConfig()
-
-
Method Details
-
lookupPackageForNamespace
- Parameters:
uri- the namespace uri- Returns:
- the package name for a namespace or null.
-
lookupPrefixForNamespace
- Parameters:
uri- the namespace uri- Returns:
- the prefix applied to each java name for a namespace or null.
-
lookupSuffixForNamespace
- Parameters:
uri- the namespace uri- Returns:
- Get the suffix applied to each java name for a namespace or null.
-
lookupJavanameForQName
- Parameters:
qname- the qname of the java namekind- the type of the qname, which one ofQNAME_TYPE,QNAME_DOCUMENT_TYPE,QNAME_ACCESSOR_ELEMENT,QNAME_ACCESSOR_ATTRIBUTE- Returns:
- Get the java name for a QName of a specific component kind, or null.
-
getInterfaceExtensions
- Returns:
- all configured InterfaceExtensions or an empty array.
-
getInterfaceExtensions
- 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
- Returns:
- all configued PrePostExtensions or an empty array.
-
getPrePostExtension
- 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
- Returns:
- all defined user types.
-
lookupUserTypeForQName
- Parameters:
qname- the qname of the user type- Returns:
- a user defined Java type for a given QName.
-