Пример #1
0
        /// <summary>
        /// Protected constructor that initializes all the parameters.
        /// </summary>
        /// <param name="fullpath"></param>
        /// <param name="name"></param>
        /// <param name="datatype"></param>
        /// <param name="hasChildren"></param>
        /// <param name="children"></param>
        protected PDFDataItem(string fullpath, string relativepath, string name, string title, System.Xml.XmlNodeType nodeType, DataType datatype, PDFDataItemCollection children)
        {
            if (string.IsNullOrEmpty(fullpath))
            {
                throw new ArgumentNullException("path");
            }
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }

            this.FullPath     = fullpath;
            this.RelativePath = relativepath;
            this.Name         = name;
            this.Title        = title;
            this._dataType    = datatype;
            this.NodeType     = nodeType;
            this.Children     = children;
        }
Пример #2
0
        //
        // .ctor
        //

        #region public PDFDataSchema(string rootpath, PDFDataItemCollection items)

        /// <summary>
        /// Creates a new instance of the data schema with the specified root path and items
        /// </summary>
        /// <param name="rootpath"></param>
        /// <param name="items"></param>
        public PDFDataSchema(string rootpath, PDFDataItemCollection items)
        {
            this.RootPath = rootpath;
            this.Items    = items;
        }
Пример #3
0
 /// <summary>
 /// Creates a new container data item (has children and the DataType is Array)
 /// </summary>
 /// <param name="fullpath"></param>
 /// <param name="name"></param>
 /// <param name="children"></param>
 public PDFDataItem(string fullpath, string relativepath, string name, PDFDataItemCollection children)
     : this(fullpath, relativepath, name, name, System.Xml.XmlNodeType.Element, Scryber.DataType.Array, children)
 {
 }