@Override public final MetadataType createWsaModelMetadataType() { return new MetadataTypeImpl(); }
/** * A way to create a {@link com.ebmwebsourcing.wsstar.jaxb.addressing.MetadatType} * "Jaxb model type" object from a {@link MetadatType} "api type" one * * @param apiTypeObj */ public static com.ebmwebsourcing.wsstar.jaxb.addressing.MetadataType toJaxbModel(MetadataType apiTypeObj) { com.ebmwebsourcing.wsstar.jaxb.addressing.MetadataType jaxbTypeObj = null; if (apiTypeObj instanceof MetadataTypeImpl) { jaxbTypeObj = ((MetadataTypeImpl)apiTypeObj).getJaxbTypeObj(); } else { jaxbTypeObj = WsaJAXBContext.WSA_FACTORY.createMetadataType(); List<Element> metadataObjs = apiTypeObj.getAny(); if (metadataObjs != null) { jaxbTypeObj.getAny().addAll(metadataObjs); } } return jaxbTypeObj; }
/** * A way to create a {@link com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType} * "Jaxb model type" object from a {@link EndpointReferenceType} "api type" one * * @param apiTypeObj */ public static com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType toJaxbModel(EndpointReferenceType apiTypeObj){ com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType jaxbTypeObj = null; if (apiTypeObj instanceof EndpointReferenceTypeImpl) { jaxbTypeObj = ((EndpointReferenceTypeImpl)apiTypeObj).getJaxbTypeObj(); } else { jaxbTypeObj = WsaJAXBContext.WSA_FACTORY.createEndpointReferenceType(); jaxbTypeObj.setAddress(EndpointReferenceTypeImpl.toAttributedURIType(apiTypeObj.getAddress())); ReferenceParametersType refParams = apiTypeObj.getReferenceParameters(); if (refParams != null){ jaxbTypeObj.setReferenceParameters(ReferenceParametersTypeImpl.toJaxbModel(refParams)); } MetadataType metadata = apiTypeObj.getMetadata(); if (metadata != null){ jaxbTypeObj.setMetadata(MetadataTypeImpl.toJaxbModel(metadata)); } List<Element> any = apiTypeObj.getAny(); if (any != null){ jaxbTypeObj.getAny().addAll(any); } } return jaxbTypeObj; }
public final MetadataType createWsaModelMetadataType( com.ebmwebsourcing.wsstar.jaxb.addressing.MetadataType jaxbModelObj) { return new MetadataTypeImpl(jaxbModelObj); }
@Override public final MetadataType getMetadata() { com.ebmwebsourcing.wsstar.jaxb.addressing.MetadataType jaxbMetadata = this.jaxbTypeObj.getMetadata(); return ((jaxbMetadata != null )? new MetadataTypeImpl(jaxbMetadata.getAny()): null); }