/// <summary> /// Constructor for the <c>ElementMapLabel</c> object. This /// creates a label object, which can be used to convert an XML /// node to a <c>Map</c> of XML serializable objects. /// </summary> /// <param name="contact"> /// this is the contact that this label represents /// </param> /// <param name="label"> /// the annotation that contains the schema details /// </param> public ElementMapLabel(Contact contact, ElementMap label) { this.detail = new Signature(contact, this); this.decorator = new Qualifier(contact); this.entry = new Entry(contact, label); this.type = contact.Type; this.name = label.name(); this.label = label; }
/// <summary> /// Constructor for the <c>Entry</c> object. This takes the /// element map annotation that provides configuration as to how /// the map is serialized and deserialized from the XML document. /// The entry object provides a convenient means to access the XML /// schema configuration using defaults where necessary. /// </summary> /// <param name="contact"> /// this is the point of contact to the map object /// </param> /// <param name="label"> /// the annotation the map method or field uses /// </param> public Entry(Contact contact, ElementMap label) { this.attribute = label.attribute(); this.entry = label.entry(); this.value = label.value(); this.key = label.key(); this.key = label.key(); this.contact = contact; this.label = label; }