1 17 package org.apache.ws.jaxme.js; 18 19 import java.io.IOException ; 20 21 26 public class Parameter implements DirectAccessible, IndentedObject { 27 private final JavaQName type; 28 private final String name; 29 private boolean isNullable = true; 30 31 public Parameter(JavaQName pType, String pName) { 32 type = pType; 33 name = pName; 34 } 35 public JavaQName getType() { return type; } 36 public String getName() { return name; } 37 public String toString() { return type.toString() + " " + name; } 38 public void write(IndentationEngine pEngine, IndentationTarget pTarget) 39 throws IOException { 40 pEngine.write(pTarget, getName()); 41 } 42 public boolean isNullable() { return isNullable; } 43 public void setNullable(boolean pNullable) { isNullable = pNullable; } 44 } 45 | Popular Tags |