Package org.jibx.binding.def
Interface ITypeBinding
- All Known Subinterfaces:
IContextObj
- All Known Implementing Classes:
ObjectBinding
,PrecompiledBinding
public interface ITypeBinding
Interface for accessing methods used in a type binding. All the methods
accessed by this interface are public, static, methods.
- Author:
- Dennis M. Sosnoski
-
Method Summary
Modifier and TypeMethodDescriptionGet the method which marshals attributes from an instance.Get the method which checks attributes to determine if an instance is present.Get the method which unmarshals attributes into an instance.Get the method which handles unmarshalling completion.Get the method which marshals child elements and character data content from an instance.Get the method which checks child elements to determine if an instance is present.Get the method which unmarshals child elements and character data content into an instance.Get the method which creates an instance of the bound class if one does not already exist.Get the method which handles preparation for marshalling an instance.
-
Method Details
-
getCreateMethod
Get the method which creates an instance of the bound class if one does not already exist. This method takes a reference to the bound type as the first parameter and the unmarshalling context as the second parameter. If the passed reference is non-null
that reference will simply be returned; otherwise, a new instance will be created and returned. This method also handles any appropriate pre-set processing for the instance.- Returns:
- create method, or
null
if none - Throws:
JiBXException
- on error in code generation
-
getCompleteMethod
Get the method which handles unmarshalling completion. This method takes a reference to the bound type as the first parameter and the unmarshalling context as the second parameter. There is no return value from the method.- Returns:
- complete method, or
null
if none - Throws:
JiBXException
- on error in code generation
-
getPrepareMethod
Get the method which handles preparation for marshalling an instance. This method takes a reference to the bound type as the first parameter and the unmarshalling context as the second parameter. There is no return value from the method.- Returns:
- prepare method, or
null
if none - Throws:
JiBXException
- on error in code generation
-
getAttributePresentTestMethod
Get the method which checks attributes to determine if an instance is present. This method takes the unmarshalling context as the only parameter. It returnstrue
if an attribute of the mapping is found,false
if not.- Returns:
- test method, or
null
if none - Throws:
JiBXException
- on error in code generation
-
getAttributeUnmarshalMethod
Get the method which unmarshals attributes into an instance. This method takes a reference to the bound type as the first parameter and the unmarshalling context as the second parameter. The return value is the unmarshalled instance, which may not be the same instance as was passed as a parameter.- Returns:
- attribute unmarshal method, or
null
if none - Throws:
JiBXException
- on error in code generation
-
getAttributeMarshalMethod
Get the method which marshals attributes from an instance. This method takes a reference to the bound type as the first parameter and the unmarshalling context as the second parameter. There is no return value from the method.- Returns:
- attribute marshal method, or
null
if none - Throws:
JiBXException
- on error in code generation
-
getContentPresentTestMethod
Get the method which checks child elements to determine if an instance is present. This method takes the unmarshalling context as the only parameter. It returnstrue
if an attribute of the mapping is found,false
if not.- Returns:
- content test method, or
null
if none - Throws:
JiBXException
- on error in code generation
-
getContentUnmarshalMethod
Get the method which unmarshals child elements and character data content into an instance. This method takes a reference to the bound type as the first parameter and the unmarshalling context as the second parameter. There is no return value from the method. The return value is the unmarshalled instance, which may not be the same instance as was passed as a parameter.- Returns:
- content unmarshal method, or
null
if none - Throws:
JiBXException
- on error in code generation
-
getContentMarshalMethod
Get the method which marshals child elements and character data content from an instance. This method takes a reference to the bound type as the first parameter and the unmarshalling context as the second parameter. There is no return value from the method.- Returns:
- content marshal method, or
null
if none - Throws:
JiBXException
- on error in code generation
-