public class MappingElement extends MappingElementBase
| Modifier and Type | Field and Description |
|---|---|
private boolean |
m_constructVerified
Constructability verified flag.
|
private MappingElement |
m_extendsMapping
Mapping extended by this mapping.
|
s_allowedAttributesm_topChildrenBINDING_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 and Description |
|---|
MappingElement()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MappingElement |
getExtendsMapping()
Get mapping extended by this one.
|
void |
validate(ValidationContext vctx)
Validate element information.
|
void |
validateExtension(ValidationContext vctx)
Special validation method to link extension mappings to base mappings.
|
void |
verifyConstruction(ValidationContext vctx)
Verify that instances of the mapped class can be constructed.
|
getExtendsName, getName, getNameAttributes, getNamespace, getPrefix, getTypeName, getTypeQName, getUri, isAbstract, isDefaultTemplate, prevalidate, setAbstract, setExtendsName, setName, setPrefix, setTypeName, setTypeQName, setUriaddExtensionType, addTopChild, getClassName, getExtensionTypes, getHandledClass, getObjectType, getType, hasObject, isImplicit, isOptional, setClassName, topChildIterator, topChildrencheckCompatibleChildren, classifyComponents, getAttributeComponents, getChildObjectType, getContentComponents, getCreateClass, getCreateType, getFactory, getFactoryName, getId, getLabel, getMarshaller, getMarshallerName, getPostset, getPostsetName, getPreget, getPregetName, getPreset, getPresetName, getUnmarshaller, getUnmarshallerName, getUsing, isAllowRepeats, isChoice, isClassified, isFlexible, isNillable, isOrdered, setAllowRepeats, setChoice, setComponents, setCreateType, setFactoryName, setFlexible, setIdChild, setLabel, setMarshallerName, setNillable, setOrdered, setPostsetName, setPregetName, setPresetName, setUnmarshallerName, setUsing, verifyConstructionaddChild, childIterator, children, getDefaultStyle, getDefinitions, getStyle, getStyleName, setDefinitions, setStyleNamegetComment, name, setComment, toString, type, validateAttributesprivate MappingElement m_extendsMapping
private boolean m_constructVerified
public MappingElement getExtendsMapping()
public void verifyConstruction(ValidationContext vctx)
validate(ValidationContext)
processing of other elements. If this mapping has any extensions, the
check is ignored.
TODO: check that at least one of the extensions can be createdvctx - public void validate(ValidationContext vctx)
ElementBaseElementBase.prevalidate(org.jibx.binding.model.ValidationContext) method will always be called for every
element in the binding definition before this method is called for any
element. This empty base class implementation should be overridden by
each subclass that requires validation handling.validate in class MappingElementBasevctx - validation contextpublic void validateExtension(ValidationContext vctx)
vctx - validation context