/** * Creates a DOM document from the input stream. */ public static Document createXmlDocument(InputStream in, boolean validate) throws Schema2BeansRuntimeException { return createXmlDocument(in, validate, null); }
public static Document createXmlDocument(InputSource in, boolean validate) throws Schema2BeansException { return createXmlDocument(in, validate, null, null); }
public static SunCmpMappings createGraph(java.io.InputStream in, boolean validate) throws org.netbeans.modules.schema2beans.Schema2BeansException { Document doc = GraphManager.createXmlDocument(in, validate); return createGraph(doc); }
public static DeploymentPlan createGraph(java.io.InputStream in, boolean validate) throws org.netbeans.modules.schema2beans.Schema2BeansException { Document doc = GraphManager.createXmlDocument(in, validate); return createGraph(doc); }
public static Wizard createGraph(java.io.InputStream in, boolean validate) throws org.netbeans.modules.schema2beans.Schema2BeansException { Document doc = GraphManager.createXmlDocument(in, validate); return createGraph(doc); }
public static Validation createGraph(java.io.InputStream in, boolean validate) throws org.netbeans.modules.schema2beans.Schema2BeansException { Document doc = GraphManager.createXmlDocument(in, validate); return createGraph(doc); }
public static Constraints createGraph(java.io.InputStream in, boolean validate) throws org.netbeans.modules.schema2beans.Schema2BeansException { Document doc = GraphManager.createXmlDocument(in, validate); return createGraph(doc); }
public static Node createRootElementNode(String name) throws Schema2BeansRuntimeException { String s = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" +// NOI18N "<" + name + "/>"; // NOI18N ByteArrayInputStream in = new ByteArrayInputStream(s.getBytes()); Document doc = GraphManager.createXmlDocument(in, false); NodeList children = doc.getChildNodes(); int length = children.getLength(); for (int i = 0; i < length; ++i) { Node node = children.item(i); if (node instanceof DocumentType) { //System.out.println("Found DocumentType where there should be none."); doc.removeChild(node); --length; } } return doc; }
private org.w3c.dom.Document getDomDocument(InputStream inputSource) throws SAXParseException { try { // creating w3c document org.w3c.dom.Document doc = org.netbeans.modules.schema2beans.GraphManager. createXmlDocument(new org.xml.sax.InputSource(inputSource), false, jsfCatalog, new J2eeErrorHandler(this)); return doc; } catch(Exception e) { // XXX Change that throw new SAXParseException(e.getMessage(), new org.xml.sax.helpers.LocatorImpl()); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException{ try{ init(comparators, runtimeVersion); String strDocument = in.readUTF(); // System.out.println("strDocument='"+strDocument+"'"); ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes()); Document doc = GraphManager.createXmlDocument(bais, false); initOptions(Common.NO_DEFAULT_VALUES); initFromNode(doc, Common.NO_DEFAULT_VALUES); } catch (Schema2BeansException e) { throw new RuntimeException(e); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException{ try{ init(comparators, runtimeVersion); String strDocument = in.readUTF(); // System.out.println("strDocument='"+strDocument+"'"); ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes()); Document doc = GraphManager.createXmlDocument(bais, false); initOptions(Common.NO_DEFAULT_VALUES); initFromNode(doc, Common.NO_DEFAULT_VALUES); } catch (Schema2BeansException e) { throw new RuntimeException(e); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException{ try{ init(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); String strDocument = in.readUTF(); // System.out.println("strDocument='"+strDocument+"'"); ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes()); Document doc = GraphManager.createXmlDocument(bais, false); initOptions(Common.NO_DEFAULT_VALUES); initFromNode(doc, Common.NO_DEFAULT_VALUES); } catch (Schema2BeansException e) { e.printStackTrace(); throw new RuntimeException(e.getMessage()); } }
return createXmlDocument(new InputSource(in), validate, er, null);
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException{ try{ init(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); String strDocument = in.readUTF(); // System.out.println("strDocument='"+strDocument+"'"); ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes()); Document doc = GraphManager.createXmlDocument(bais, false); initOptions(Common.NO_DEFAULT_VALUES); initFromNode(doc, Common.NO_DEFAULT_VALUES); } catch (Schema2BeansException e) { e.printStackTrace(); throw new RuntimeException(e.getMessage()); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException{ try{ init(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); String strDocument = in.readUTF(); // System.out.println("strDocument='"+strDocument+"'"); ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes()); Document doc = GraphManager.createXmlDocument(bais, false); initOptions(Common.NO_DEFAULT_VALUES); initFromNode(doc, Common.NO_DEFAULT_VALUES); } catch (Schema2BeansException e) { e.printStackTrace(); throw new RuntimeException(e.getMessage()); } }
BaseBean bean = null; doc = GraphManager.createXmlDocument(new org.xml.sax.InputSource(in), validate, er, eh); try {
doc = GraphManager.createXmlDocument(in, false);
doc = GraphManager.createXmlDocument(plan, false);