Examples of XmlElementDecl


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

    // debugging

    public void printElements(  ) {
        int elementDeclIndex = 0;
        XMLElementDecl elementDecl = new XMLElementDecl();
        while (getElementDecl(elementDeclIndex++, elementDecl)) {

            System.out.println("element decl: "+elementDecl.name+
                               ", "+ elementDecl.name.rawname  );
View Full Code Here

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

     * @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

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

        }
        // 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

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

     * @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

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

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

    *
    * @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

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

      }
      // 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

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

    * @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

Examples of org.apache.xerces.validators.common.XMLElementDecl

        // iterate over identity constraints for this element
        int size = identityConstraints != null ? identityConstraints.size() : 0;
        if (size > 0) {
            // REVISIT: Use cached copy. -Ac
            XMLElementDecl edecl = new XMLElementDecl();
            fSchemaGrammar.getElementDecl(elementIndex, edecl);
            for (int i = 0; i < size; i++) {
                Element ic = (Element)identityConstraints.elementAt(i);
                String icName = ic.getLocalName();
                if ( icName.equals(SchemaSymbols.ELT_KEY) ) {
View Full Code Here

Examples of org.apache.xerces.validators.common.XMLElementDecl

        // iterate over identity constraints for this element
        int size = identityConstraints != null ? identityConstraints.size() : 0;
        if (size > 0) {
            // REVISIT: Use cached copy. -Ac
            XMLElementDecl edecl = new XMLElementDecl();
            fSchemaGrammar.getElementDecl(elementIndex, edecl);
            for (int i = 0; i < size; i++) {
                Element ic = (Element)identityConstraints.elementAt(i);
                String icName = ic.getLocalName();
                if ( icName.equals(SchemaSymbols.ELT_KEYREF) ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.