@Override public final void setAddress(URI value) { this.jaxbTypeObj.setAddress(EndpointReferenceTypeImpl.toAttributedURIType(value)); }
/** * Default constructor * * Note : According to the xml schema the "address" field is mandatory * * @param address the address of the {@link EndpointReferenceType} object that must * be {@link String} representation of an {@link URI} object. */ protected EndpointReferenceTypeImpl(URI address) { this.jaxbTypeObj = WsaJAXBContext.WSA_FACTORY.createEndpointReferenceType(); this.jaxbTypeObj.setAddress(EndpointReferenceTypeImpl.toAttributedURIType(address)); }
/** * 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; }