Logo Search packages:      
Sourcecode: jing-trang version File versions  Download package

void com::thaiopensource::validate::nvdl::SchemaImpl::Handler::endElement ( String  namespaceURI,
String  localName,
String  qName 
) throws SAXException [inline]

End element callback.

Parameters:
namespaceURI The namespace uri for this element.
localName The element local name.
qName The element qualified name.

Definition at line 463 of file SchemaImpl.java.

References ceh, finishIncludedMode(), finishMode(), finishNestedMode(), finishValidate(), foreignDepth, nvdlStack, and xmlBaseHandler.

                                {
      // call the delegate handler
      super.endElement(namespaceURI, localName, qName);
      // handle xml:base
      xmlBaseHandler.endElement();
      // ignore foreign elements
      if (foreignDepth > 0) {
        foreignDepth--;
        return;
      }
      // exit early if we got errors.
      if (ceh.getHadErrorOrFatalError())
        return;
      // pop the NVDL element from the stack
      nvdlStack.pop();
      // dispatch based on element name.
      if (localName.equals("validate"))
        finishValidate();
      else if (localName.equals("mode")) {
        String parent = (String)nvdlStack.peek();
        if ("rules".equals(parent))
          finishMode(); 
        else if ("mode".equals(parent))
          // mode inside mode - included mode.
          finishIncludedMode();
        else
          // nested mode.
          finishNestedMode();
      }
    }


Generated by  Doxygen 1.6.0   Back to index