| java.lang.Object org.jibx.binding.def.BindingBuilder
All known Subclasses: org.jibx.binding.def.BindingDefinition, org.jibx.binding.def.NestedBase,
BindingBuilder | abstract public class BindingBuilder (Code) | | Binding definition builder. This processes the binding definition file to
generate the code generation structure.
author: Dennis M. Sosnoski version: 1.0 |
Inner Class :static class ContainerBase | |
Method Summary | |
public static BindingDefinition | unmarshalBindingDefinition(UnmarshallingContext ctx, String name, URL root) Unmarshal binding definition. | public static void | unmarshalInclude(UnmarshallingContext ctx, BindingDefinition bdef, URL root, ArrayList nslist, HashSet paths) Unmarshal included binding. | public static IMapping | unmarshalMapping(UnmarshallingContext ctx, IContainer parent, ArrayList nss, boolean uord) Unmarshal mapping definition. | public static IComponent | unmarshalStructure(UnmarshallingContext ctx, IContainer contain, IContextObj cobj, boolean coll, boolean uord, boolean implic) Unmarshal subclass instance for structure definition. |
ACC_PACKAGE | final static int ACC_PACKAGE(Code) | | |
ACC_PRIVATE | final static int ACC_PRIVATE(Code) | | |
ACC_PROTECTED | final static int ACC_PROTECTED(Code) | | |
ACC_PUBLIC | final static int ACC_PUBLIC(Code) | | |
LINK_FIELDS | final static int LINK_FIELDS(Code) | | |
LINK_METHODS | final static int LINK_METHODS(Code) | | |
LINK_NONE | final static int LINK_NONE(Code) | | |
NAME_HYPHENS | final static int NAME_HYPHENS(Code) | | |
NAME_MIXED | final static int NAME_MIXED(Code) | | |
unmarshalBindingDefinition | public static BindingDefinition unmarshalBindingDefinition(UnmarshallingContext ctx, String name, URL root) throws JiBXException(Code) | | Unmarshal binding definition. This handles the entire binding definition
document.
Parameters: ctx - unmarshalling context information Parameters: name - default name for binding Parameters: root - base URL for binding, or null if unknown throws: JiBXException - if error in unmarshalling |
unmarshalInclude | public static void unmarshalInclude(UnmarshallingContext ctx, BindingDefinition bdef, URL root, ArrayList nslist, HashSet paths) throws JiBXException(Code) | | Unmarshal included binding. This handles the actual include element along
with the actual included binding. The current implementation allows for
nested includes, but requires that all the included bindings use
compatible settings for the attributes of the root element, and only
allows mapping elements as children of the included bindings (no
namespace or format elements).
Parameters: ctx - unmarshalling context information Parameters: bdef - binding defintion at root of includes Parameters: root - base URL for binding, or null if unknown Parameters: nslist - list of namespaces defined Parameters: paths - set of binding paths processed throws: JiBXException - if error in unmarshalling |
unmarshalMapping | public static IMapping unmarshalMapping(UnmarshallingContext ctx, IContainer parent, ArrayList nss, boolean uord) throws JiBXException(Code) | | Unmarshal mapping definition. This handles all combinations of attributes
on the start tag, generating the appropriate structure of nested
components and other classes to represent the binding information within
the current element. This must be called with the parse positioned at the
start tag of the element to be unmarshalled.
Parameters: ctx - unmarshalling context information Parameters: parent - containing binding definition structure Parameters: nss - extra namespaces to be included in this mapping definition(may be null ) Parameters: uord - container is unordered structure flag mapping definition constructed from binding throws: JiBXException - if error in unmarshalling |
unmarshalStructure | public static IComponent unmarshalStructure(UnmarshallingContext ctx, IContainer contain, IContextObj cobj, boolean coll, boolean uord, boolean implic) throws JiBXException(Code) | | Unmarshal subclass instance for structure definition. This handles all
combinations of attributes on the start tag, generating the appropriate
structure of nested components and other classes to represent the binding
information within the current element. This must be called with the
parse positioned at the start tag of the element to be unmarshalled.
TODO: At least split this up, or organize a better way to build binding
Parameters: ctx - unmarshalling context information Parameters: contain - containing binding definition structure Parameters: cobj - context object information Parameters: coll - collection structure flag Parameters: uord - container is unordered structure flag Parameters: implic - property value implicit flag root of component tree constructed from binding throws: JiBXException - if error in unmarshalling |
|
|