/** * Constructor for the <code>AttributeLabel</code> object. This * is used to create a label that can convert from an object to an * XML attribute and vice versa. This requires the annotation and * contact extracted from the XML schema class. * * @param contact this is the field from the XML schema class * @param label represents the annotation for the field * @param format this is the format used to style the path */ public AttributeLabel(Contact contact, Attribute label, Format format) { this.detail = new Introspector(contact, this, format); this.decorator = new Qualifier(contact); this.required = label.required(); this.type = contact.getType(); this.empty = label.empty(); this.name = label.name(); this.format = format; this.label = label; }
/** * Constructor for the <code>AttributeLabel</code> object. This * is used to create a label that can convert from an object to an * XML attribute and vice versa. This requires the annotation and * contact extracted from the XML schema class. * * @param contact this is the field from the XML schema class * @param label represents the annotation for the field * @param format this is the format used to style the path */ public AttributeLabel(Contact contact, Attribute label, Format format) { this.detail = new Introspector(contact, this, format); this.decorator = new Qualifier(contact); this.required = label.required(); this.type = contact.getType(); this.empty = label.empty(); this.name = label.name(); this.format = format; this.label = label; }
/** * Constructor for the <code>AttributeLabel</code> object. This * is used to create a label that can convert from an object to an * XML attribute and vice versa. This requires the annotation and * contact extracted from the XML schema class. * * @param contact this is the field from the XML schema class * @param label represents the annotation for the field * @param format this is the format used to style the path */ public AttributeLabel(Contact contact, Attribute label, Format format) { this.detail = new Introspector(contact, this, format); this.decorator = new Qualifier(contact); this.required = label.required(); this.type = contact.getType(); this.empty = label.empty(); this.name = label.name(); this.format = format; this.label = label; }