1 19 package org.enhydra.zeus.binder; 20 21 import java.io.IOException ; 22 import java.util.List ; 23 24 import org.enhydra.zeus.Binder; 26 import org.enhydra.zeus.Source; 27 28 49 public abstract class BaseBinder implements Binder { 50 51 52 protected Source source; 53 54 55 protected boolean isCollapsingSimpleElements; 56 57 58 protected boolean isIgnoringIDAttributes; 59 60 69 public BaseBinder(Source source) { 70 this.source = source; 71 this.isCollapsingSimpleElements = false; 72 } 73 74 91 public void setIsCollapsingSimpleElements( 92 boolean isCollapsingSimpleElements) { 93 94 this.isCollapsingSimpleElements = isCollapsingSimpleElements; 95 } 96 97 115 public boolean isCollapsingSimpleElements() { 116 return isCollapsingSimpleElements; 117 } 118 119 130 public void setIsIgnoringIDAttributes(boolean isIgnoringIDAttributes) { 131 this.isIgnoringIDAttributes = isIgnoringIDAttributes; 132 } 133 134 145 public boolean isIgnoringIDAttributes() { 146 return isIgnoringIDAttributes; 147 } 148 149 170 public abstract List getBindings() throws IOException ; 171 172 } 173 | Popular Tags |