001    package com.oxygenxml.validate.nvdl;
002    
003    import com.thaiopensource.util.PropertyMap;
004    import com.thaiopensource.validate.auto.SchemaReceiver;
005    import com.thaiopensource.validate.auto.SchemaReceiverFactory;
006    import com.thaiopensource.validate.Option;
007    
008    /**
009     * A Schema receiver factory that knows how to create NVDL schema receivers.
010     */
011    public class NvdlSchemaReceiverFactory implements SchemaReceiverFactory {
012      /**
013       * Checks if the namespace is the NVDL namespace and if yes then it creates
014       * a schema receiver, otherwise returns null.
015       */
016      public SchemaReceiver createSchemaReceiver(String namespaceUri, PropertyMap properties) {
017        if (SchemaImpl.NVDL_URI.equals(namespaceUri)) {
018          return new SchemaReceiverImpl(properties);
019        }
020        return null;
021      }
022    
023      /**
024       * No options handling, always returns null.
025       */
026      public Option getOption(String uri) {
027        return null;
028      }
029    }