1 28 29 package org.jibx.binding.def; 30 31 32 import org.jibx.binding.classes.*; 33 import org.jibx.runtime.JiBXException; 34 35 42 43 public class BaseMappingWrapper extends PassThroughComponent 44 { 45 50 51 public BaseMappingWrapper(IComponent wrap) { 52 super(wrap); 53 } 54 55 58 public void genAttributeUnmarshal(ContextMethodBuilder mb) 59 throws JiBXException { 60 mb.loadObject(); 61 super.genAttributeUnmarshal(mb); 62 } 63 64 public void genAttributeMarshal(ContextMethodBuilder mb) 65 throws JiBXException { 66 mb.loadObject(); 67 super.genAttributeMarshal(mb); 68 } 69 70 public void genContentUnmarshal(ContextMethodBuilder mb) 71 throws JiBXException { 72 mb.loadObject(); 73 super.genContentUnmarshal(mb); 74 } 75 76 public void genContentMarshal(ContextMethodBuilder mb) 77 throws JiBXException { 78 mb.loadObject(); 79 super.genContentMarshal(mb); 80 } 81 82 public void genNewInstance(ContextMethodBuilder mb) throws JiBXException { 83 throw new IllegalStateException 84 ("Internal error - no new instance for base class"); 85 } 86 87 public void print(int depth) { 89 BindingDefinition.indent(depth); 90 System.out.println("base mapping wrapper"); 91 m_component.print(depth+1); 92 } 93 } 94 | Popular Tags |