Package org.jibx.binding.def
Interface ITypeBinding
-
- All Known Subinterfaces:
IContextObj
- All Known Implementing Classes:
ObjectBinding,PrecompiledBinding
public interface ITypeBindingInterface 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAttributeMarshalMethod()Get the method which marshals attributes from an instance.java.lang.StringgetAttributePresentTestMethod()Get the method which checks attributes to determine if an instance is present.java.lang.StringgetAttributeUnmarshalMethod()Get the method which unmarshals attributes into an instance.java.lang.StringgetCompleteMethod()Get the method which handles unmarshalling completion.java.lang.StringgetContentMarshalMethod()Get the method which marshals child elements and character data content from an instance.java.lang.StringgetContentPresentTestMethod()Get the method which checks child elements to determine if an instance is present.java.lang.StringgetContentUnmarshalMethod()Get the method which unmarshals child elements and character data content into an instance.java.lang.StringgetCreateMethod()Get the method which creates an instance of the bound class if one does not already exist.java.lang.StringgetPrepareMethod()Get the method which handles preparation for marshalling an instance.
-
-
-
Method Detail
-
getCreateMethod
java.lang.String getCreateMethod() throws JiBXExceptionGet 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-nullthat 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
nullif none - Throws:
JiBXException- on error in code generation
-
getCompleteMethod
java.lang.String getCompleteMethod() throws JiBXExceptionGet 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
nullif none - Throws:
JiBXException- on error in code generation
-
getPrepareMethod
java.lang.String getPrepareMethod() throws JiBXExceptionGet 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
nullif none - Throws:
JiBXException- on error in code generation
-
getAttributePresentTestMethod
java.lang.String getAttributePresentTestMethod() throws JiBXExceptionGet the method which checks attributes to determine if an instance is present. This method takes the unmarshalling context as the only parameter. It returnstrueif an attribute of the mapping is found,falseif not.- Returns:
- test method, or
nullif none - Throws:
JiBXException- on error in code generation
-
getAttributeUnmarshalMethod
java.lang.String getAttributeUnmarshalMethod() throws JiBXExceptionGet 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
nullif none - Throws:
JiBXException- on error in code generation
-
getAttributeMarshalMethod
java.lang.String getAttributeMarshalMethod() throws JiBXExceptionGet 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
nullif none - Throws:
JiBXException- on error in code generation
-
getContentPresentTestMethod
java.lang.String getContentPresentTestMethod() throws JiBXExceptionGet the method which checks child elements to determine if an instance is present. This method takes the unmarshalling context as the only parameter. It returnstrueif an attribute of the mapping is found,falseif not.- Returns:
- content test method, or
nullif none - Throws:
JiBXException- on error in code generation
-
getContentUnmarshalMethod
java.lang.String getContentUnmarshalMethod() throws JiBXExceptionGet 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
nullif none - Throws:
JiBXException- on error in code generation
-
getContentMarshalMethod
java.lang.String getContentMarshalMethod() throws JiBXExceptionGet 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
nullif none - Throws:
JiBXException- on error in code generation
-
-