Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 81008 invoked by uid 500); 25 Nov 2002 19:19:15 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 80998 invoked by uid 500); 25 Nov 2002 19:19:15 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 25 Nov 2002 19:19:14 -0000 Message-ID: <20021125191914.50445.qmail@icarus.apache.org> From: gdaniels@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/proposals/XmlSchema/src/org/apache/axis/xsd/xml/schema XmlSchema.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N gdaniels 2002/11/25 11:19:13 Modified: proposals/XmlSchema/src/org/apache/axis/xsd/xml/schema XmlSchema.java Log: Playing around with this package a bit. Expose public read() methods for DOM Document and Element (so we can use this inside, say, a deserializer). Revision Changes Path 1.3 +6 -1 xml-axis/proposals/XmlSchema/src/org/apache/axis/xsd/xml/schema/XmlSchema.java Index: XmlSchema.java =================================================================== RCS file: /home/cvs/xml-axis/proposals/XmlSchema/src/org/apache/axis/xsd/xml/schema/XmlSchema.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- XmlSchema.java 17 Nov 2002 23:53:18 -0000 1.2 +++ XmlSchema.java 25 Nov 2002 19:19:11 -0000 1.3 @@ -186,9 +186,14 @@ } } - static XmlSchema read(Document doc, ValidationEventHandler veh) { + public static XmlSchema read(Document doc, ValidationEventHandler veh) { SchemaBuilder builder = new SchemaBuilder(); return builder.build(doc, veh); + } + + public static XmlSchema read(Element elem) { + SchemaBuilder builder = new SchemaBuilder(); + return builder.handleXmlSchemaElement(elem); } public XmlSchemaForm getAttributeFormDefault() {