NodeFactory getNodeFactory() { return this.bean.graphManager().getNodeFactory(); }
public void changeDocType(String publicId, String systemId) { graphManager().setDoctype(publicId, systemId); }
/** * Write the current schema2beans graph as an XML document without reformating * * @param bean * @param writer * @throws IOException */ public static void write(BaseBean bean, Writer writer) throws IOException { GraphManager graphManager = bean.graphManager(); if (graphManager != null) { graphManager.write(writer); } else { throw new IllegalStateException(Common.getMessage("CantWriteBeanNotInDOMTree_msg")); } }
GraphManager gm = root.graphManager(); if (null == gm) throw new IllegalArgumentException(
/** * Write the current schema2beans graph as an XML document without reformating * * @param bean * @param outputStream * @throws IOException */ public static void write(BaseBean bean, OutputStream outputStream) throws IOException { try { GraphManager graphManager = bean.graphManager(); if (graphManager != null) { graphManager.write(outputStream); } else { throw new IllegalStateException(Common.getMessage("CantWriteBeanNotInDOMTree_msg")); } } catch (Schema2BeansException e) { throw new Schema2BeansRuntimeException(e); } }
bean.setGraphManager(prop.bean.graphManager()); bean.syncNodes(a); } else if (Common.isBoolean(prop.type)) {