/** Creates a new SchemaDef */ public Schema(String schemaNS) { super(); attributes = new Hashtable(); attributeGroups = new Hashtable(); complexTypes = new Hashtable(); simpleTypes = new Hashtable(); elements = new Hashtable(); _group = new Hashtable(); importedSchemas = new Hashtable(); includedSchemas = new Vector(); namespaces = new Hashtable(); this.schemaNS = schemaNS; init(); } // -- ScehamDef
/** * Creates a new Schema definition * * @param prefix the desired namespace prefix for the schemaNS. * @param schemaNS the namespace of the XML Schema itself. Note * this is not the same as the targetNamespace. */ public Schema(String prefix, String schemaNS) { super(); _attributes = new Hashtable(); _attributeGroups = new Hashtable(); _complexTypes = new Hashtable(); _simpleTypes = new Hashtable(); _elements = new Hashtable(); _groups = new Hashtable(); _importedSchemas = new Hashtable(); _includedSchemas = new Vector(); _namespaces = new Namespaces(); _schemaNamespace = schemaNS; if (_schemaNamespace == null) { _schemaNamespace = DEFAULT_SCHEMA_NS; } //-- declare default namespace bindings if (prefix == null) prefix = ""; addNamespace(prefix, _schemaNamespace); init(); } //-- ScehamDef