Beispiel #1
0
 internal static ConfigFile ConvertToRMConfig(ResourceObject Resource, ConverterSetting config)
 {
     return(ConvertToRMConfig(new List <ResourceObject>()
     {
         Resource
     }, config));
 }
Beispiel #2
0
        protected override void BeginProcessing()
        {
            if (RMConverterSetting == null)
            {
                ObjectSetting s = new ObjectSetting()
                {
                    AnchorAttributes            = AnchorAttributes.ToList(),
                    AttributExclusions          = AttributExclusions.ToList(),
                    IDPrefix                    = IDPrefix,
                    IncludeDefaultAttributes    = IncludeDefaultAttributes,
                    IncludeEmptyAttributeValues = IncludeEmptyAttributeValues,
                    ObjectSpecificExlusions     = RMConverterObjectExclusions.ToList(),
                    ObjectType                  = Resources[0].InternalObject.ObjectTypeName
                };

                RMConverterSetting = new ConverterSetting()
                {
                    Configurations = new List <ObjectSetting>()
                    {
                        s
                    }
                };
            }

            rmConfigConverter = new Converter(RMConverterSetting);
        }
Beispiel #3
0
        internal static ConfigFile ConvertToRMConfig(List <ResourceObject> Resources, ConverterSetting config)
        {
            Converter converter = new Converter(config);

            foreach (ResourceObject r in Resources)
            {
                converter.TryAddResourceOperation(r);
            }

            return(converter.GetConfigFile());
        }
Beispiel #4
0
 internal Converter(ConverterSetting converterSetting)
 {
     this.settings = converterSetting;
     config        = new ConfigFile();
 }