Code example for StringWriter

Methods: toString, write

0
    /* (non-Javadoc) 
     * @see com.signavio.warehouse.business.util.jpdl4.IWireObjectGroup#toJpdl() 
     */ 
    public String toJpdl() {
         
        StringWriter jpdl = new StringWriter();
        jpdl.write("<" + elementName + " ");
         
        if(name != null && !name.isEmpty()) {
            jpdl.write(JsonToJpdl.transformAttribute("name", name));
        } 
         
        if(value != null && !value.isEmpty()) {
            jpdl.write(JsonToJpdl.transformAttribute("value", value));
        } 
         
        jpdl.write(" />");
         
        return jpdl.toString();
    } 
     
    /* (non-Javadoc) 
     * @see com.signavio.warehouse.business.util.jpdl4.IWireObjectGroup#toJson() 
     */