Ejemplo n.º 1
0
        public string GetText(ModelQuery query, string title = null)
        {
            if (title.IsNotEmpty())
            {
                _stringWriter.WriteLine(title);
            }

            switch (_graph.Role)
            {
                case ContainerRole.Root:
                    break;
                case ContainerRole.ProfileOrChild:
                    _stringWriter.WriteLine("Profile is '{0}'", _graph.Profile);
                    break;

                case ContainerRole.Nested:
                    _stringWriter.WriteLine("Nested Container: " + _graph.Profile);
                    break;
            }

            _stringWriter.WriteLine("");

            var model = _graph.ToModel();

            var pluginTypes = query.Query(model);

            writeContentsOfPluginTypes(pluginTypes);

            return _stringWriter.ToString();
        }