예제 #1
0
        public XS__RootMetadata(
                #endif
            string metadataFilepath_in
            )
        {
            string _metadataPath = System.IO.Path.GetDirectoryName(metadataFilepath_in);

            metadatafiles_ = Metadatas.Load_fromFile(metadataFilepath_in);

            #region int _total_xxx = ...;
            int _total_metadata = 0;
            int _total_schema   = 0;
            for (int f = 0; f < metadatafiles_.MetadataFiles.Count; f++)
            {
                switch (metadatafiles_.MetadataFiles[f].XMLFileType)
                {
                case XS__metadata.METADATA:
                    _total_metadata++;
                    break;

                case XS__schema.SCHEMA:
                    _total_schema++;
                    break;
                }
            }
            #endregion
            #region string[] _xxxFilepath = new string[_total_xxx];
            string[] _metadataFilepath = new string[
                _total_metadata
                                         ];
            string[] _schemaFilepath = new string[
                _total_schema
                                       ];
            #endregion

            _total_metadata = 0;
            _total_schema   = 0;
            for (int f = 0; f < metadatafiles_.MetadataFiles.Count; f++)
            {
                switch (metadatafiles_.MetadataFiles[f].XMLFileType)
                {
                case XS__metadata.METADATA:
                    _metadataFilepath[_total_metadata] = System.IO.Path.Combine(
                        _metadataPath,
                        metadatafiles_.MetadataFiles[f].XMLFilename
                        );
                    _total_metadata++;
                    break;

                case XS__schema.SCHEMA:
                    _schemaFilepath[_total_schema] = System.IO.Path.Combine(
                        _metadataPath,
                        metadatafiles_.MetadataFiles[f].XMLFilename
                        );
                    _total_schema++;
                    break;
                }
            }

            metadatacollection_ = new XS__metadataCollection(
                XS__metadata.Load_fromFile(
                    (XS__RootMetadata)this,
                    _metadataFilepath
                    )
                );
            schemacollection_ = new XS__schemaCollection(
                XS__schema.Load_fromFile(
                    (XS__RootMetadata)this,
                    _schemaFilepath
                    )
                );
        }
예제 #2
0
		public XS__RootMetadata(
		#endif
			string metadataFilepath_in
		) {
			string _metadataPath = System.IO.Path.GetDirectoryName(metadataFilepath_in);

			metadatafiles_ = Metadatas.Load_fromFile(metadataFilepath_in);

			#region int _total_xxx = ...;
			int _total_metadata = 0;
			int _total_schema = 0;
			for (int f = 0; f < metadatafiles_.MetadataFiles.Count; f++) {
				switch (metadatafiles_.MetadataFiles[f].XMLFileType) {
					case XS__metadata.METADATA:
						_total_metadata++;
						break;
					case XS__schema.SCHEMA:
						_total_schema++;
						break;
				}
			}
			#endregion
			#region string[] _xxxFilepath = new string[_total_xxx];
			string[] _metadataFilepath = new string[
				_total_metadata
			];
			string[] _schemaFilepath = new string[
				_total_schema
			];
			#endregion

			_total_metadata = 0;
			_total_schema = 0;
			for (int f = 0; f < metadatafiles_.MetadataFiles.Count; f++) {
				switch (metadatafiles_.MetadataFiles[f].XMLFileType) {
					case XS__metadata.METADATA:
						_metadataFilepath[_total_metadata] = System.IO.Path.Combine(
							_metadataPath,
							metadatafiles_.MetadataFiles[f].XMLFilename
						);
						_total_metadata++;
						break;
					case XS__schema.SCHEMA:
						_schemaFilepath[_total_schema] = System.IO.Path.Combine(
							_metadataPath,
							metadatafiles_.MetadataFiles[f].XMLFilename
						);
						_total_schema++;
						break;
				}
			}

			metadatacollection_ = new XS__metadataCollection(
				XS__metadata.Load_fromFile(
					(XS__RootMetadata)this, 
					_metadataFilepath
				)
			);
			schemacollection_ = new XS__schemaCollection(
				XS__schema.Load_fromFile(
					(XS__RootMetadata)this, 
					_schemaFilepath
				)
			);
		}