1 28 29 package org.jibx.binding.def; 30 31 32 import org.jibx.runtime.JiBXException; 33 34 43 44 public abstract class LinkableBase extends PassThroughComponent 45 { 46 47 private boolean m_isLinking; 48 49 50 private boolean m_isLinked; 51 52 57 58 protected LinkableBase() {} 59 60 65 66 public LinkableBase(IComponent wrap) { 67 super(wrap); 68 } 69 70 75 76 protected void handleRecursion() {} 77 78 81 public void setLinkages() throws JiBXException { 84 if (m_isLinking) { 85 handleRecursion(); 86 } else { 87 if (!m_isLinked) { 88 m_isLinking = true; 89 m_component.setLinkages(); 90 m_isLinking = false; 91 m_isLinked = true; 92 } 93 } 94 } 95 96 public void print(int depth) { 98 BindingDefinition.indent(depth); 99 System.out.println("linkable wrapper"); 100 m_component.print(depth+1); 101 } 102 } 103 | Popular Tags |