/** * Constructor for the <code>TextLabel</code> object. This is * used to create a label that can convert a XML node into a * primitive value from an XML element text value. * * @param contact this is the contact this label represents * @param label this is the annotation for the contact * @param format this is the format used for this label */ public TextLabel(Contact contact, Text label, Format format) { this.detail = new Introspector(contact, this, format); this.required = label.required(); this.type = contact.getType(); this.empty = label.empty(); this.data = label.data(); this.contact = contact; this.label = label; }
/** * Constructor for the <code>TextLabel</code> object. This is * used to create a label that can convert a XML node into a * primitive value from an XML element text value. * * @param contact this is the contact this label represents * @param label this is the annotation for the contact * @param format this is the format used for this label */ public TextLabel(Contact contact, Text label, Format format) { this.detail = new Introspector(contact, this, format); this.required = label.required(); this.type = contact.getType(); this.empty = label.empty(); this.data = label.data(); this.contact = contact; this.label = label; }
/** * Constructor for the <code>TextLabel</code> object. This is * used to create a label that can convert a XML node into a * primitive value from an XML element text value. * * @param contact this is the contact this label represents * @param label this is the annotation for the contact * @param format this is the format used for this label */ public TextLabel(Contact contact, Text label, Format format) { this.detail = new Introspector(contact, this, format); this.required = label.required(); this.type = contact.getType(); this.empty = label.empty(); this.data = label.data(); this.contact = contact; this.label = label; }