Package org.apache.xmlbeans
Class BindingConfig
java.lang.Object
org.apache.xmlbeans.BindingConfig
- Direct Known Subclasses:
BindingConfigImpl
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInterfaceExtensions(String fullJavaName) getPrePostExtension(String fullJavaName) UserType[]lookupJavanameForQName(QName qname, int kind) lookupUserTypeForQName(QName qname)
-
Field Details
-
QNAME_TYPE
public static final int QNAME_TYPE- See Also:
-
QNAME_DOCUMENT_TYPE
public static final int QNAME_DOCUMENT_TYPE- See Also:
-
QNAME_ACCESSOR_ELEMENT
public static final int QNAME_ACCESSOR_ELEMENT- See Also:
-
QNAME_ACCESSOR_ATTRIBUTE
public static final int QNAME_ACCESSOR_ATTRIBUTE- See Also:
-
-
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.
-