public class MappingReference extends PassThroughComponent
m_component| Constructor and Description |
|---|
MappingReference(IContainer contain,
PropertyDefinition prop,
String type,
String reftext,
String refqname,
IContextObj objc,
NameDefinition name,
boolean synth,
boolean nillable)
Constructor from property and type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
genContentUnmarshal(ContextMethodBuilder mb)
Patch the generated code to remove the unmarshalled object when it's a
"this" reference with both elements and attributes.
|
IMapping |
getMapping() |
String |
getType()
Get type expected by component.
|
boolean |
isOptional()
Check if component is an optional item.
|
void |
print(int depth) |
void |
setLinkages()
Establish and validate linkages between binding components.
|
genAttributeMarshal, genAttributeUnmarshal, genAttrPresentTest, genContentMarshal, genContentPresentTest, genLoadId, genNewInstance, getWrapperName, hasAttribute, hasContent, hasId, setWrappedComponentpublic MappingReference(IContainer contain, PropertyDefinition prop, String type, String reftext, String refqname, IContextObj objc, NameDefinition name, boolean synth, boolean nillable)
contain - containing binding definition structureprop - property definitiontype - fully qualified name of mapped typereftext - ordinary text name for abstract mapping reference
(null if not specified)refqname - qualified type name for abstract mapping reference
(null if not specified)objc - current object contextname - reference name definition (only allowed with abstract
mappings)synth - sythentic reference added to empty collection flagnillable - flag for nillable elementpublic IMapping getMapping()
public boolean isOptional()
IComponentisOptional in interface IComponentisOptional in class PassThroughComponenttrue if optional, false if requiredpublic String getType()
IComponentgetType in interface IComponentgetType in class PassThroughComponentpublic void setLinkages()
throws org.jibx.runtime.JiBXException
ILinkablesetLinkages in interface ILinkablesetLinkages in class PassThroughComponentorg.jibx.runtime.JiBXException - if error in configurationpublic void genContentUnmarshal(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
genContentUnmarshal in interface IComponentgenContentUnmarshal in class PassThroughComponentmb - Context Method Builderorg.jibx.runtime.JiBXException - If errorpublic void print(int depth)
print in interface IComponentprint in class PassThroughComponentCopyright © 2005–2016 jibx.org. All rights reserved.