KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > xs > JBossXBSchemaValidator


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.apache.xerces.impl.xs;
8
9 import org.apache.xerces.xni.Augmentations;
10 import org.apache.xerces.xni.QName;
11 import org.apache.xerces.xni.XMLAttributes;
12 import org.apache.xerces.xs.XSElementDeclaration;
13
14 /**
15  * This class extends the XMLSchemaValidator from Xerces-2 distribution to give access to package protected instance variables.
16  *
17  * @author <a HREF="mailto:alex@jboss.org">Alexey Loubyansky</a>
18  * @version <tt>$Revision: 1.1 $</tt>
19  */

20 public class JBossXBSchemaValidator
21    extends XMLSchemaValidator
22 {
23    Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs)
24    {
25       Augmentations modifiedAugs = super.handleStartElement(element, attributes, augs);
26       if(modifiedAugs != null)
27       {
28          modifiedAugs.putItem("jbossxb.validator", this);
29       }
30       return modifiedAugs;
31    }
32
33    public XSElementDeclaration getCurrentElementDelcaration()
34    {
35       return this.fCurrentElemDecl;
36    }
37 }
38
Popular Tags