Package net.sf.wsdl2jibx.mapping.bean

Examples of net.sf.wsdl2jibx.mapping.bean.JibxNamespace


   *
   * @param uri
   * @param prefix
   */
  public void addNamespace(String uri, String prefix) {
    JibxNamespace namespace = new JibxNamespace();
    binding.addNamespace(namespace);
    namespace.setUri(uri);
    namespace.setPrefix(prefix);
  }
View Full Code Here


   * @param uri
   * @param _default
   * @param prefix
   */
  public void addNamespace(JibxMapping mapping, String uri, String _default, String prefix) {
    JibxNamespace namespace = new JibxNamespace();
    mapping.addNamespace(namespace);
    namespace.setDefault(_default);
    namespace.setUri(uri);
    namespace.setPrefix(prefix);
  }
View Full Code Here

   */
  public boolean isNamespaceDeclared(String ns) {
    JibxMapping mapping = currentMapping;
    if(mapping.getNamespaces()==null) return false;
    for(int i=0;i<mapping.getNamespaces().size();i++) {
      JibxNamespace namespace = (JibxNamespace)mapping.getNamespaces().get(i);
      if(namespace.getUri().equals(ns))
        return true;
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of net.sf.wsdl2jibx.mapping.bean.JibxNamespace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.