Exemplo n.º 1
0
        /// <summary>
        /// Graph object <paramref name="o"/> onto stream <paramref name="s"/>
        /// </summary>
        /// <param name="s">The stream</param>
        /// <param name="o">The object</param>
        public void Graph(System.Xml.XmlWriter s, object o, DatatypeFormatterGraphResult result)
        {
            SETFormatter formatter = new SETFormatter();

            formatter.Host = this.Host;
            formatter.Graph(s, o, result);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Graph object <paramref name="o"/> onto stream <paramref name="s"/>
        /// </summary>
        /// <param name="s">The stream</param>
        /// <param name="o">The object</param>
        public void Graph(System.Xml.XmlWriter s, object o, DatatypeFormatterGraphResult result)
        {
            SETFormatter formatter = new SETFormatter();

            formatter.Host = this.Host;

            // Create new generic arguments
            var uvpType = typeof(UVP <>);
            var genType = uvpType.MakeGenericType(GenericArguments);

            formatter.GenericArguments = new Type[] { genType };

            formatter.Graph(s, o, result);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Graph object <paramref name="o"/> onto stream <paramref name="s"/>
        /// </summary>
        /// <param name="s">The stream</param>
        /// <param name="o">The object</param>
        public override void Graph(System.Xml.XmlWriter s, object o, DatatypeFormatterGraphResult result)
        {
            // When graphing an NPPD, we're actually graphing a set of UVP, for example
            // NPPD<INT> is really SET<UVP<INT>> 
            // This is why we do the formatting in such an odd way

            result.AddResultDetail(new MARC.Everest.Connectors.NotImplementedResultDetail(Connectors.ResultDetailType.Warning, "The NPPD type is not an official R1 data type, the data has been graphed but may not be interpreted by remote systems", s.ToString()));

            SETFormatter formatter = new SETFormatter();
            formatter.Host = this.Host;
            // Create new generic arguments
            var uvpType = typeof(UVP<>);
            var genType = uvpType.MakeGenericType(GenericArguments);

            formatter.GenericArguments = new Type[] { genType };

            formatter.Graph(s, o, result);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Graph object <paramref name="o"/> onto stream <paramref name="s"/>
        /// </summary>
        /// <param name="s">The stream</param>
        /// <param name="o">The object</param>
        public override void Graph(System.Xml.XmlWriter s, object o, DatatypeFormatterGraphResult result)
        {
            // When graphing an NPPD, we're actually graphing a set of UVP, for example
            // NPPD<INT> is really SET<UVP<INT>>
            // This is why we do the formatting in such an odd way

            result.AddResultDetail(new MARC.Everest.Connectors.NotImplementedResultDetail(Connectors.ResultDetailType.Warning, "The NPPD type is not an official R1 data type, the data has been graphed but may not be interpreted by remote systems", s.ToString()));

            SETFormatter formatter = new SETFormatter();

            formatter.Host = this.Host;
            // Create new generic arguments
            var uvpType = typeof(UVP <>);
            var genType = uvpType.MakeGenericType(GenericArguments);

            formatter.GenericArguments = new Type[] { genType };

            formatter.Graph(s, o, result);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Graph object <paramref name="o"/> onto stream <paramref name="s"/>
 /// </summary>
 /// <param name="s">The stream</param>
 /// <param name="o">The object</param>
 public void Graph(System.Xml.XmlWriter s, object o, DatatypeFormatterGraphResult result)
 {
     SETFormatter formatter = new SETFormatter();
     formatter.Host = this.Host;
     formatter.Graph(s, o, result);
 }
Exemplo n.º 6
0
        /// <summary>
        /// Graph object <paramref name="o"/> onto stream <paramref name="s"/>
        /// </summary>
        /// <param name="s">The stream</param>
        /// <param name="o">The object</param>
        public void Graph(System.Xml.XmlWriter s, object o, DatatypeFormatterGraphResult result)
        {
            SETFormatter formatter = new SETFormatter();
            formatter.Host = this.Host;

            // Create new generic arguments
            var uvpType = typeof(UVP<>);
            var genType = uvpType.MakeGenericType(GenericArguments);

            formatter.GenericArguments = new Type[] { genType };

            formatter.Graph(s, o, result);
        }