Package org.apache.ws.jaxme.js

Examples of org.apache.ws.jaxme.js.JavaClassInitializer


      }
      String namespaces = pController.getXMLFieldName() + "Namespaces";
      JavaField jf = pSource.newJavaField(namespaces, Set.class);
      jf.setStatic(true);
      jf.setFinal(true);
      JavaClassInitializer jci = pSource.newJavaClassInitializer();
      LocalJavaField set = jci.newJavaField(Set.class);
      set.addLine("new ", HashSet.class, "()");
      XsAnyURI[] uris = namespaceList.getUris();
      for (int i = 0;  i < uris.length;  i++) {
          jci.addLine(set, ".add(", JavaSource.getQuoted(uris[i].toString()), ");");
      }
      if (namespaceList.isLocalSet()) {
          jci.addLine(set, ".add(\"\");");
      }
      if (namespaceList.isTargetNamespaceSet()) {
          jci.addLine(set, ".add(", JavaSource.getQuoted(getTargetNamespace()), ");");
      }
      jci.addLine(jf, " = ", Collections.class, ".unmodifiableSet(", set, ");");
      return jf;
  }
View Full Code Here


      }
      String namespaces = pController.getXMLFieldName() + "Namespaces";
      JavaField jf = pSource.newJavaField(namespaces, Set.class);
      jf.setStatic(true);
      jf.setFinal(true);
      JavaClassInitializer jci = pSource.newJavaClassInitializer();
      LocalJavaField set = jci.newJavaField(Set.class);
      set.addLine("new ", HashSet.class, "()");
      XsAnyURI[] uris = namespaceList.getUris();
      for (int i = 0;  i < uris.length;  i++) {
          jci.addLine(set, ".add(", JavaSource.getQuoted(uris[i].toString()), ");");
      }
      jci.addLine(jf, " = ", Collections.class, ".unmodifiableSet(", set, ");");
      return jf;
  }
View Full Code Here

      }
      String namespaces = pController.getXMLFieldName() + "Namespaces";
      JavaField jf = pSource.newJavaField(namespaces, Set.class);
      jf.setStatic(true);
      jf.setFinal(true);
      JavaClassInitializer jci = pSource.newJavaClassInitializer();
      LocalJavaField set = jci.newJavaField(Set.class);
      set.addLine("new ", HashSet.class, "()");
      XsAnyURI[] uris = namespaceList.getUris();
      for (int i = 0;  i < uris.length;  i++) {
          jci.addLine(set, ".add(", JavaSource.getQuoted(uris[i].toString()), ");");
      }
      if (namespaceList.isLocalSet()) {
          jci.addLine(set, ".add(\"\");");
      }
      if (namespaceList.isTargetNamespaceSet()) {
          jci.addLine(set, ".add(", JavaSource.getQuoted(getTargetNamespace()), ");");
      }
      jci.addLine(jf, " = ", Collections.class, ".unmodifiableSet(", set, ");");
      return jf;
  }
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.js.JavaClassInitializer

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.