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

void com::thaiopensource::validate::nvdl::SchemaImpl::Handler::finishValidate (  )  throws SAXException [inline, private]

Notification that the validate element ends.


Definition at line 695 of file SchemaImpl.java.

References com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::actions, com::thaiopensource::validate::nvdl::ActionSet::addNoResultAction(), com::thaiopensource::validate::nvdl::AttributeActionSet::addSchema(), com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::attributeActions, createSubSchema(), hadError, md, com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::modeUsage, and com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::schemaUriRef.

Referenced by endElement().

      if (md.schemaUriRef != null) {
        try {
          // if we had attribute actions, that is matching attributes
          // we add a schema to the attributes action set.
          if (md.attributeActions != null) {
            Schema schema = createSubSchema(true);
          // if we had element actions, that is macting elements
          // we add a validate action with the schema and the specific mode usage.
          if (md.actions != null) {
            Schema schema = createSubSchema(false);
            md.actions.addNoResultAction(new ValidateAction(md.modeUsage, schema));
        catch (IncorrectSchemaException e) {
          hadError = true;
        catch (IOException e) {
          throw new WrappedIOException(e);

Generated by  Doxygen 1.6.0   Back to index