internal protected override void LoadFromElement(PomXmlElement element) { base.LoadFromElement(element); Scope = element.ReadElementValue("scope"); Type = element.ReadElementValue("type"); Classifier = element.ReadElementValue("classifier"); bool optional; Optional = bool.TryParse(element.ReadElementValue("optional"), out optional) && optional; }
protected internal override void LoadFromElement(PomXmlElement element) { base.LoadFromElement(element); Packaging = element.ReadElementValue("packaging"); Name = element.ReadElementValue("name"); ModelVersion = element.ReadElementValue("modelVersion"); //read parent var parentNode = element.ReadElement("parent"); Parent = parentNode == null ? null : _dataFactory.CreateParentReference(parentNode); _container.LoadFromElement(element); //load profiles Profiles = element.ReadElements("profiles", "profile") .Select(e => _dataFactory.CreateProfile(e)).ToList(); }
internal protected override void LoadFromElement(PomXmlElement element) { base.LoadFromElement(element); RelativePath = element.ReadElementValue("relativePath"); }
internal protected virtual void LoadFromElement(PomXmlElement element) { ArtifactId = element.ReadElementValue("artifactId"); GroupId = element.ReadElementValue("groupId"); Version = element.ReadElementValue("version"); }
internal protected override void LoadFromElement(PomXmlElement element) { Id = element.ReadElementValue("id"); base.LoadFromElement(element); }