Package org.jibx.binding.model
Class IncludeElement
java.lang.Object
org.jibx.binding.model.ElementBase
org.jibx.binding.model.NestingElementBase
org.jibx.binding.model.IncludeElement
Model component for include element of binding definition. During
prevalidation this reads the included binding definition. All further
processing of the included components needs to be handled directly by the
tree walking code in
TreeContext, since the
components of the included binding need to be treated as though they were
direct children of the container of this element (and accessed in the
appropriate order).- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BindingElementObject model for included binding.private StringPath to included binding definition.private booleanIncluded binding precompiled flag.static final StringArrayEnumeration of allowed attribute namesFields inherited from class org.jibx.binding.model.ElementBase
BINDING_ELEMENT, COLLECTION_ELEMENT, ELEMENT_NAMES, FORMAT_ELEMENT, INCLUDE_ELEMENT, INPUT_ELEMENT, MAPPING_ELEMENT, NAMESPACE_ELEMENT, OUTPUT_ELEMENT, SPLIT_ELEMENT, STRUCTURE_ELEMENT, TEMPLATE_ELEMENT, VALUE_ELEMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the included binding model.Get path to included binding.booleanCheck if precompiled binding.private voidpreSet(IUnmarshallingContext uctx) Make sure all attributes are defined.voidprevalidate(ValidationContext vctx) Prevalidate element information.voidsetIncludePath(String path) Set path to included binding.voidsetPrecompiled(boolean precomp) Set precompiled binding flag.Methods inherited from class org.jibx.binding.model.NestingElementBase
addChild, childIterator, children, getDefaultStyle, getDefinitions, getStyle, getStyleName, setDefinitions, setStyleName, validateMethods inherited from class org.jibx.binding.model.ElementBase
getComment, name, setComment, toString, type, validateAttributes
-
Field Details
-
s_allowedAttributes
Enumeration of allowed attribute names -
m_includePath
Path to included binding definition. -
m_precompiled
private boolean m_precompiledIncluded binding precompiled flag. -
m_binding
Object model for included binding.
-
-
Constructor Details
-
IncludeElement
public IncludeElement()Constructor.
-
-
Method Details
-
setIncludePath
Set path to included binding.- Parameters:
path-
-
getIncludePath
Get path to included binding.- Returns:
- path
-
getBinding
Get the included binding model. This call is only valid after prevalidation.- Returns:
- binding element, or
nullif redundant include
-
isPrecompiled
public boolean isPrecompiled()Check if precompiled binding.- Returns:
trueif precompiled,falseif not
-
setPrecompiled
public void setPrecompiled(boolean precomp) Set precompiled binding flag.- Parameters:
precomp-
-
preSet
Make sure all attributes are defined.- Parameters:
uctx- unmarshalling context- Throws:
JiBXException- on unmarshalling error
-
prevalidate
Description copied from class:ElementBasePrevalidate element information. The prevalidation step is used to check isolated aspects of an element, such as the settings for enumerated values on the element and attributes. This empty base class implementation should be overridden by each subclass that requires prevalidation handling.- Overrides:
prevalidatein classNestingElementBase- Parameters:
vctx- validation context
-