Model component for elements that can contain detailed binding information in
the form of nested child components. Elements of this type include
mapping, template, structure, and collection
elements.
author: Dennis M. Sosnoski
classifyComponents(ValidationContext vctx) Classify child components as contributing attributes, content, or both.
This method is needed to handle on-demand classification during
validation.
Check that child components are of types compatible with the container
object type. This method may call itself recursively to process the
children of child components which do not themselves set a type. It's not
used directly, but is here for use by subclasses.
Parameters: vctx - validation context Parameters: type - structure object type Parameters: children - list of child components to be checked
Classify child components as contributing attributes, content, or both.
This method is needed to handle on-demand classification during
validation. When a child component is another instance of this class, the
method calls itself on the child component prior to checking the child
component's contribution.
Parameters: vctx -
Get list of child components contributing attribute items to this
container element. This call is only meaningful after validation.
list of child binding components defining attribute items
Get list of child components contributing content items to this
container element. This call is only meaningful after validation.
list of child binding components defining content items
Get new instance creation class information. This method is only usable
after a call to
ContainerElementBase.validate .
class information for type to be created (or null ifnone)
Check for child components classified. This is a convenience method for
subclasses to check if classification has already been done.
true if classified, false if not
Set child attribute and content components directly. This is provided for
use by subclasses requiring special handling, in particular the
<structure> element used as a mapping reference.
Parameters: attribs - Parameters: contents -
Set ID property child. Used to set the ID property associated with a
particular class instance. There can only be at most one child ID
property for each actual object instance.
Parameters: child - child defining the ID property Parameters: vctx - validation context
Check that there's a way to construct an instance of an object class for
input bindings. This can be a factory method, an unmarshaller, a
no-argument constructor already defined in the class, or a modifiable
class with constructor generation enabled. If a create-type is specified,
this is used in place of the declared type. The call always succeeds if
the binding is output-only.
Parameters: vctx - validation context Parameters: type - constructed object type
Fields inherited from org.jibx.binding.model.NestingElementBase