Hi.
Now I am having trouble implementing the reverse of above convenience
> method to create a new RegistryObjectListType from a List of
> IdentifiableTypes (really RegistryObjectTypes) to a RegistryObjectList.
> The signature of desired method is:
>
> public static RegistryObjectListType
> getRegistryObjectListType(List<RegistryObjectType> ros) {
> ...
> }
>
> Thanks for any help.
You may consider using the jaxb:class customization on these elements:
<jaxb:bindings scd="x-schema::tns"
xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0">
<jaxb:bindings scd="tns:Identifiable">
<jaxb:class/>
</jaxb:bindings>
</jaxb:bindings>
This will produce:
public class Identifiable
extends JAXBElement<IdentifiableType>
{
protected final static QName NAME = new
QName("urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", "Identifiable");
public Identifiable(IdentifiableType value) {
super(NAME, ((Class) IdentifiableType.class), null, value);
}
}
ps. HJ3 can't map this at the moment.
Bye.
/lexi