1 17 package org.apache.ws.jaxme.js; 18 19 import java.io.IOException ; 20 21 22 29 public class IncreasingTarget implements IndentationTarget { 30 private IndentationTarget actualTarget; 31 private Boolean isInterface; 32 public IncreasingTarget(IndentationTarget pActualTarget) { 33 actualTarget = pActualTarget; 34 } 35 public boolean isInterface() { 36 return (isInterface == null) ? actualTarget.isInterface() : isInterface.booleanValue(); 37 } 38 public void setInterface(Boolean pInterface) { 39 isInterface = pInterface; 40 } 41 public void indent(int i) throws IOException { 42 actualTarget.indent(i+1); 43 } 44 public String asString(JavaQName pQName) { 45 return actualTarget.asString(pQName); 46 } 47 public void write(String pValue) throws IOException { 48 actualTarget.write(pValue); 49 } 50 public void write() throws IOException { 51 actualTarget.write(); 52 } 53 } 54 | Popular Tags |