/** * This will create a <code>Converter</code> for transforming an XML * element into a collection of XML serializable objects. The XML * schema class for these objects must be present the element list * annotation. * * @param context this is the context object used for serialization * * @return this returns the converter for creating a collection */ public Converter getConverter(Context context) throws Exception { String entry = getEntry(); if(!label.inline()) { return getConverter(context, entry); } return getInlineConverter(context, entry); }
/** * This will create a <code>Converter</code> for transforming an XML * element into a collection of XML serializable objects. The XML * schema class for these objects must be present the element list * annotation. * * @param context this is the context object used for serialization * * @return this returns the converter for creating a collection */ public Converter getConverter(Context context) throws Exception { String entry = getEntry(); if(!label.inline()) { return getConverter(context, entry); } return getInlineConverter(context, entry); }
/** * This will create a <code>Converter</code> for transforming an XML * element into a collection of XML serializable objects. The XML * schema class for these objects must be present the element list * annotation. * * @param context this is the context object used for serialization * * @return this returns the converter for creating a collection */ public Converter getConverter(Context context) throws Exception { String entry = getEntry(); if(!label.inline()) { return getConverter(context, entry); } return getInlineConverter(context, entry); }
/** * 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; }