public void Visit(SetPropertyInheritedAmendment amendment) { var component = this.componentCollection.FindComponentWithProperties(amendment.ComponentPath); var specification = this.specificationLibrary.Lookup(component.Name); var property = component.FindOrCreateProperty(specification.Properties.Find(amendment.PropertyName)); property.Value = new InheritedPropertyValue(amendment.Key); }
public void Visit(SetPropertyInheritedAmendment amendment) { var component = this.componentCollection.FindComponentWithProperties(amendment.ComponentPath); var specification = this.specificationLibrary.Lookup(component.Name); var property = component.FindOrCreateProperty(specification.Properties.Find(amendment.PropertyName)); property.Value = new InheritedPropertyValue(amendment.Key); }
public AmendmentSurrogate Visit(SetPropertyInheritedAmendment amendment) { return(new SetPropertyInheritedAmendmentSurrogate { ComponentPath = amendment.ComponentPath.ToComponentPathString(), PropertyName = amendment.PropertyName, Key = amendment.Key }); }
public AmendmentResource Visit(SetPropertyInheritedAmendment amendment, int index) { return(new SetPropertyInheritedAmendmentResource { Id = index, ComponentPath = amendment.ComponentPath.ToComponentPathString(), PropertyName = amendment.PropertyName, Key = amendment.Key, Links = this.BuildLinks(amendment, index) }); }