@Override public GetCurrentMessage createGetCurrentMessage() throws WSNotificationException { return new GetCurrentMessageImpl(WSNotificationJAXBContext.wsnbFactory.createGetCurrentMessage(),null); }
/** * Default constructor */ protected GetCurrentMessageImpl(TopicExpressionType concreteTopic) { this.jaxbTypeObj = WsnbJAXBContext.WSNB_JAXB_FACTORY.createGetCurrentMessage(); this.jaxbTypeObj.setTopic(TopicExpressionTypeImpl.toJaxbModel(concreteTopic)); }
/** * A way to create a {@link com.ebmwebsourcing.wsstar.notification.base.GetCurrentMessage} * "Jaxb model type" object from a {@link GetCurrentMessage} "api type" one * * @param apiTypeObj */ public static com.ebmwebsourcing.wsstar.jaxb.notification.base.GetCurrentMessage toJaxbModel(GetCurrentMessage apiTypeObj) { com.ebmwebsourcing.wsstar.jaxb.notification.base.GetCurrentMessage jaxbTypeObj = null; if (apiTypeObj instanceof GetCurrentMessageImpl){ jaxbTypeObj = ((GetCurrentMessageImpl)apiTypeObj).getJaxbTypeObj(); } else { jaxbTypeObj = WsnbJAXBContext.WSNB_JAXB_FACTORY.createGetCurrentMessage(); // ~~~~ Set Topic ~~~~ jaxbTypeObj.setTopic(TopicExpressionTypeImpl.toJaxbModel(apiTypeObj.getTopic())); } return jaxbTypeObj; } }