Examples of Namespace


Examples of com.google.javascript.jscomp.newtypes.Namespace

      RawNominalType rawType = currentScope.getNominalType(lendsQname);
      if (rawType != null && rawType.isInterface()) {
        warnings.add(JSError.make(objlit, LENDS_ON_BAD_TYPE, lendsName));
        return;
      }
      Namespace borrowerNamespace = currentScope.getNamespace(lendsQname);
      for (Node prop : objlit.children()) {
        String pname = NodeUtil.getObjectLitKeyName(prop);
        JSType propDeclType = declaredObjLitProps.get(prop);
        if (propDeclType != null) {
          borrowerNamespace.addProperty(pname, propDeclType, false);
        } else {
          JSType t = simpleInferExprType(prop.getFirstChild());
          if (t == null) {
            t = JSType.UNKNOWN;
          }
          borrowerNamespace.addProperty(pname, t, false);
        }
      }
    }
View Full Code Here

Examples of com.google.test.metric.cpp.dom.Namespace

class NamespaceBuilder extends DefaultBuilder {
  private final Node node;
  private List<String> sts;

  public NamespaceBuilder(Node parent, String name) {
    node = new Namespace(name);
    parent.addChild(node);
  }
View Full Code Here

Examples of com.mozilla.grouperfish.naming.Namespace

    public boolean isOk() {
        return failures.isEmpty();
    }

    public Namespace namespace() {
        return new Namespace(namespace);
    }
View Full Code Here

Examples of com.nhncorp.mods.socket.io.impl.Namespace

  public void start() {
    int port = 9191;
    HttpServer server = vertx.createHttpServer();
    SocketIOServer io = new DefaultSocketIOServer(vertx, server);

    final Namespace chat = io.of("/chat");
    chat.onConnection(new Handler<SocketIOSocket>() {
      public void handle(SocketIOSocket socket) {
        socket.on("namespace emit", new Handler<JsonObject>() {
          public void handle(JsonObject event) {
            chat.emit("msg", new JsonObject().putString("everyone", "in").putString("/chat", "will get"));
          }
        });
      }
    });

    final Namespace news = io.of("/news");
    news.onConnection(new Handler<SocketIOSocket>() {
      public void handle(SocketIOSocket socket) {
        socket.emit("item", new JsonObject().putString("news", "item"));
      }
    });
View Full Code Here

Examples of com.orange.wink.model.Namespace

  /**
   * @return
   */
  public Namespace resolveNamespace() {
    if (child != null) {
      final Namespace partial = new Namespace();
      partial.appendNamespace(child.resolveNamespace());
      partial.addName(prop);
      return partial;
    }
    final Namespace ns = new Namespace();

    ns.addName(name);
    ns.addName(prop);
    return ns;
  }
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.pptp.NameSpace

   * find in the puppet logic.
   *
   * @param target
   */
  public void loadSettings(TargetEntry target) {
    NameSpace settings = PPTPFactory.eINSTANCE.createNameSpace();
    settings.setReserved(true);
    settings.setName("settings");
    target.getContents().add(settings);

    // Create a wildcard to match all settings::*
    //
    TPVariable wildcard = PPTPFactory.eINSTANCE.createTPVariable();
    wildcard.setName("*");
    wildcard.setAssignable(false);
    settings.getContents().add(wildcard);

    // Add known names in settings (the most common ones). This to avoid
    // warnings
    //
    SettingsData settingsData = new SettingsData();
View Full Code Here

Examples of com.volantis.xml.pipeline.Namespace

                // return the empty sequence
                return Sequence.EMPTY;
            }
        };

        Namespace integrationNamespace = Namespace.literal("integration");

        // register this function with the expression context
        context.registerFunction(
                new ImmutableExpandedName(
                        integrationNamespace.getURI(),
                        "emptySequence"),
                emptySequenceFn);

        // ensure the prefix tracker is aware of this namespace
        NamespacePrefixTracker tracker = context.getNamespacePrefixTracker();
        tracker.startPrefixMapping(integrationNamespace.toString(),
                                   integrationNamespace.getURI());
    }
View Full Code Here

Examples of de.pdark.decentxml.Namespace

    }
  }

  private String getDomName() {
    String domName = domElement.getName();
    Namespace ns = domElement.getNamespace();
    if (ns!=null) {
      String prefix = ns.getPrefix();
      if (!prefix.isEmpty()) {
        domName = prefix + ":" + domName;
      }
    }
    return domName;
View Full Code Here

Examples of eu.musoft.eclipse.xpath.evaluation.plugin.views.namespaces.Namespace

  private void updateNamespacesTableData(Map<String, String> allNamespacesMap) {
    List<Namespace> currentNamespaces = namespacesTable.getNamespaces();
    currentNamespaces.clear();

    for (Map.Entry<String, String> entry : allNamespacesMap.entrySet()) {
      Namespace ns = new Namespace();
      ns.setPrefix(entry.getKey());
      ns.setURI(entry.getValue());
      currentNamespaces.add(ns);
    }
    currentNamespaces.add(new Namespace());
  }
View Full Code Here

Examples of info.bliki.wiki.namespaces.Namespace

  public AbstractWikiModel(Configuration configuration) {
    this(configuration, Locale.ENGLISH);
  }

  public AbstractWikiModel(Configuration configuration, Locale locale) {
    this(configuration, locale, Messages.getResourceBundle(locale), new Namespace(locale));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.