Package org.apache.xerces.impl.validation

Examples of org.apache.xerces.impl.validation.XMLElementDecl


            fCurrentGrammar.getAttributeDecl(attlistIndex, fTempAttDecl);

            if (DEBUG_ATTRIBUTES)
                if (fTempAttDecl != null) {
                    XMLElementDecl elementDecl = new XMLElementDecl();
                    fCurrentGrammar.getElementDecl(elementIndex, elementDecl);
                    System.out.println("element: "+(elementDecl.name.localpart));
                    System.out.println("attlistIndex " + attlistIndex + "\n"+
                                       "attName : '"+(fTempAttDecl.name.localpart) + "'\n"
                                       + "attType : "+fTempAttDecl.simpleType.type + "\n"
View Full Code Here


    *
    * @throws SAXException Thrown by handler to signal an error.
    */
   public void elementDecl(String name, String contentModel)
   throws SAXException {
      XMLElementDecl tmpElementDecl = (XMLElementDecl) fElementDeclTab.get(name) ;

      // check if it is already defined
      if ( tmpElementDecl != null ) {
          if (tmpElementDecl.type == -1) {
              fCurrentElementIndex = getElementDeclIndex(name, -1);
          }
          else {
              // duplicate element, ignored.
              return;
          }
      }
      else {
          fCurrentElementIndex = createElementDecl();//create element decl
      }

      XMLElementDecl elementDecl       = new XMLElementDecl();
      QName          elementName       = new QName(null, name, name, null);
      //XMLSimpleType  elementSimpleType = new XMLSimpleType();

      elementDecl.name                  = elementName;

View Full Code Here

      }
      // then it is forward reference to a element decl, create the elementDecl first.
      else {
          fCurrentElementIndex = createElementDecl();//create element decl

          XMLElementDecl elementDecl       = new XMLElementDecl();
          elementDecl.name = new QName(null, elementName, elementName, null);
         
          elementDecl.scope= -1;
         
          //add(or set) this elementDecl to the local cache
View Full Code Here

    * @see TYPE_MIXED
    * @see TYPE_CHILDREN
    */
   public void startContentModel(String elementName, short type)
   throws SAXException {
      XMLElementDecl elementDecl = (XMLElementDecl) this.fElementDeclTab.get( elementName);
      if ( elementDecl != null ) {
         fElementDecl = elementDecl;
      }
      fDepth = 0;
      initializeContentModelStack();
View Full Code Here

     * @throws XNIException Thrown by handler to signal an error.
     */
    public void elementDecl(String name, String contentModel)
        throws XNIException {

        XMLElementDecl tmpElementDecl = (XMLElementDecl) fElementDeclTab.get(name) ;

        // check if it is already defined
        if ( tmpElementDecl != null ) {
            if (tmpElementDecl.type == -1) {
                fCurrentElementIndex = getElementDeclIndex(name, -1);
            }
            else {
                // duplicate element, ignored.
                return;
            }
        }
        else {
            fCurrentElementIndex = createElementDecl();//create element decl
        }

        XMLElementDecl elementDecl       = new XMLElementDecl();
        QName          elementName       = new QName(null, name, name, null);
        //XMLSimpleType  elementSimpleType = new XMLSimpleType();

        elementDecl.name.setValues(elementName);

View Full Code Here

        }
        // then it is forward reference to a element decl, create the elementDecl first.
        else {
            fCurrentElementIndex = createElementDecl();//create element decl

            XMLElementDecl elementDecl       = new XMLElementDecl();
            elementDecl.name.setValues(null, elementName, elementName, null);
         
            elementDecl.scope= -1;
         
            //add(or set) this elementDecl to the local cache
View Full Code Here

     * @throws XNIException Thrown by handler to signal an error.
     */
    public void startContentModel(String elementName)
        throws XNIException {
     
        XMLElementDecl elementDecl = (XMLElementDecl) this.fElementDeclTab.get( elementName);
        if ( elementDecl != null ) {
            fElementDecl = elementDecl;
        }
        fDepth = 0;
        initializeContentModelStack();
View Full Code Here

            fCurrentGrammar.getAttributeDecl(attlistIndex, fTempAttDecl);

            if (DEBUG_ATTRIBUTES) {
                if (fTempAttDecl != null) {
                    XMLElementDecl elementDecl = new XMLElementDecl();
                    fCurrentGrammar.getElementDecl(elementIndex, elementDecl);
                    System.out.println("element: "+(elementDecl.name.localpart));
                    System.out.println("attlistIndex " + attlistIndex + "\n"+
                                       "attName : '"+(fTempAttDecl.name.localpart) + "'\n"
                                       + "attType : "+fTempAttDecl.simpleType.type + "\n"
View Full Code Here

     * @throws XNIException Thrown by handler to signal an error.
     */
    public void elementDecl(String name, String contentModel)
        throws XNIException {

        XMLElementDecl tmpElementDecl = (XMLElementDecl) fElementDeclTab.get(name) ;

        // check if it is already defined
        if ( tmpElementDecl != null ) {
            if (tmpElementDecl.type == -1) {
                fCurrentElementIndex = getElementDeclIndex(name, -1);
            }
            else {
                // duplicate element, ignored.
                return;
            }
        }
        else {
            fCurrentElementIndex = createElementDecl();//create element decl
        }

        XMLElementDecl elementDecl       = new XMLElementDecl();
        QName          elementName       = new QName(null, name, name, null);
        //XMLSimpleType  elementSimpleType = new XMLSimpleType();

        elementDecl.name.setValues(elementName);

View Full Code Here

        }
        // then it is forward reference to a element decl, create the elementDecl first.
        else {
            fCurrentElementIndex = createElementDecl();//create element decl

            XMLElementDecl elementDecl       = new XMLElementDecl();
            elementDecl.name.setValues(null, elementName, elementName, null);
         
            elementDecl.scope= -1;
         
            //add(or set) this elementDecl to the local cache
View Full Code Here

TOP

Related Classes of org.apache.xerces.impl.validation.XMLElementDecl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.