Code example for StringWriter

Methods: toString, write

0
			} 
		} catch (JSONException e) {}
	} 
	 
	public String toJpdl() throws InvalidModelException {
		StringWriter jpdl = new StringWriter();
		jpdl.write("<arg>\n");
		if(child != null) {
			jpdl.write(child.toJpdl());
		} else { 
			throw new InvalidModelException("Invalid Arg. Object or String is missing"); 
		} 
		jpdl.write("</arg>\n");
		return jpdl.toString();
	} 
 
	public WireObjectGroup getChild() { 
		return child;
	} 
 
	public void setChild(WireObjectGroup child) {