/** * Each annotation can provide a class which is used to determine * which label is used to serialize an object. This ensures that * the correct label is selected whenever serialization occurs. * * @param element this is the annotation to extract the type for * * @return this returns the class associated with the annotation */ public Class getType(ElementList element) { return element.type(); } }
/** * Each annotation can provide a class which is used to determine * which label is used to serialize an object. This ensures that * the correct label is selected whenever serialization occurs. * * @param element this is the annotation to extract the type for * * @return this returns the class associated with the annotation */ public Class getType(ElementList element) { return element.type(); } }
/** * Each annotation can provide a class which is used to determine * which label is used to serialize an object. This ensures that * the correct label is selected whenever serialization occurs. * * @param element this is the annotation to extract the type for * * @return this returns the class associated with the annotation */ public Class getType(ElementList element) { return element.type(); } }
/** * Constructor for the <code>ElementListLabel</code> object. This * creates a label object, which can be used to convert an XML * node to a <code>Collection</code> of XML serializable objects. * * @param contact this is the contact that this label represents * @param label the annotation that contains the schema details * @param format this is used to style the elements in the list */ public ElementListLabel(Contact contact, ElementList label, Format format) { this.detail = new Introspector(contact, this, format); this.decorator = new Qualifier(contact); this.required = label.required(); this.type = contact.getType(); this.override = label.name(); this.inline = label.inline(); this.entry = label.entry(); this.data = label.data(); this.item = label.type(); this.format = format; this.label = label; }
/** * Constructor for the <code>ElementListLabel</code> object. This * creates a label object, which can be used to convert an XML * node to a <code>Collection</code> of XML serializable objects. * * @param contact this is the contact that this label represents * @param label the annotation that contains the schema details * @param format this is used to style the elements in the list */ public ElementListLabel(Contact contact, ElementList label, Format format) { this.detail = new Introspector(contact, this, format); this.decorator = new Qualifier(contact); this.required = label.required(); this.type = contact.getType(); this.override = label.name(); this.inline = label.inline(); this.entry = label.entry(); this.data = label.data(); this.item = label.type(); this.format = format; this.label = label; }
/** * Constructor for the <code>ElementListLabel</code> object. This * creates a label object, which can be used to convert an XML * node to a <code>Collection</code> of XML serializable objects. * * @param contact this is the contact that this label represents * @param label the annotation that contains the schema details * @param format this is used to style the elements in the list */ public ElementListLabel(Contact contact, ElementList label, Format format) { this.detail = new Introspector(contact, this, format); this.decorator = new Qualifier(contact); this.required = label.required(); this.type = contact.getType(); this.override = label.name(); this.inline = label.inline(); this.entry = label.entry(); this.data = label.data(); this.item = label.type(); this.format = format; this.label = label; }