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

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

Parse a validate action.

Parameters:
attributes The validate element attributes.
Exceptions:
SAXException 

Definition at line 670 of file SchemaImpl.java.

References com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::actions, defaultSchemaType, getModeUsage(), getSchemaType(), locator, md, com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::modeUsage, com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::mustSupportOptions, com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::options, com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::schemaType, com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::schemaUriBase, com::thaiopensource::validate::nvdl::SchemaImpl::Handler::ModeData::schemaUriRef, warning(), and xmlBaseHandler.

Referenced by startElement().

                                                                          {
      // get the resolved URI pointing to the schema.
      md.schemaUriRef = getSchema(attributes);
      md.schemaUriBase = xmlBaseHandler.getBaseUri();
      // get the schema type
      md.schemaType = getSchemaType(attributes);
      // if no schemaType attribute, use the default schema type.
      if (md.schemaType == null)
        md.schemaType = defaultSchemaType;
      if (SchemaReceiverImpl.LEGACY_RNC_MEDIA_TYPE.equals(md.schemaType))
        warning("legacy_rnc_media_type", locator);
      // if we matched on elements create a mode usage.
      if (md.actions != null)
        md.modeUsage = getModeUsage(attributes);
      else
        md.modeUsage = null;
      // prepare to receive validate options.
      md.options = new PropertyMapBuilder();
      md.mustSupportOptions.clear();
    }


Generated by  Doxygen 1.6.0   Back to index