Examples of nextName()


Examples of com.google.gson.stream.JsonReader.nextName()

    EdmProperty edmProperty =
        (EdmProperty) MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet("Teams").getEntityType()
            .getProperty("Name");
    EntityPropertyInfo entityPropertyInfo = EntityInfoAggregator.create(edmProperty);
    reader.beginObject();
    reader.nextName();

    JsonPropertyConsumer jpc = new JsonPropertyConsumer();
    Object value = jpc.readPropertyValue(reader, entityPropertyInfo, null);
    assertEquals("Team 1", value);
  }
View Full Code Here

Examples of com.google.gson.stream.JsonReader.nextName()

    EdmProperty edmProperty =
        (EdmProperty) MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet("Teams").getEntityType()
            .getProperty("Name");
    EntityPropertyInfo entityPropertyInfo = EntityInfoAggregator.create(edmProperty);
    reader.beginObject();
    reader.nextName();

    JsonPropertyConsumer jpc = new JsonPropertyConsumer();
    Object value = jpc.readPropertyValue(reader, entityPropertyInfo, null);
    assertEquals("Team 1", value);
  }
View Full Code Here

Examples of org.dyno.visual.swing.base.NamespaceManager.nextName()

    if (getName() == null) {
      VisualDesigner designer = VisualSwingPlugin.getCurrentDesigner();
      if (designer != null) {
        NamespaceManager namespace = designer.getNamespace();
        if (namespace != null)
          setName(namespace.nextName(getBasename()));
      }
    }
  }

  public String getBasename() {
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.commentelement.util.TagScanner.nextName()

    if (map == null) {
      return null;
    }

    TagScanner scanner = new TagScanner(data, 1);
    String name = scanner.nextName();
    if (name == null) {
      return null;
    }
    StringBuffer buffer = new StringBuffer(name.length() + 4);
    buffer.append(SSI_PREFIX);
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.commentelement.util.TagScanner.nextName()

    CommentElementFactory factory = new CommentElementFactory(document, isJSPTag, this);
    Element element = factory.create(tagName, CommentElementFactory.IS_START);

    // set attributes
    String attrName = scanner.nextName();
    while (attrName != null) {
      String attrValue = scanner.nextValue();
      Attr attr = document.createAttribute(attrName);
      if (attr != null) {
        if (attrValue != null)
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.commentelement.util.TagScanner.nextName()

      if (attr != null) {
        if (attrValue != null)
          attr.setValue(attrValue);
        element.setAttributeNode(attr);
      }
      attrName = scanner.nextName();
    }
    return element;
  }

  public String generateStartTagContent(IDOMElement element) {
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.commentelement.util.TagScanner.nextName()

    Element element = null;
    String str = data.trim();
    CommentElementFactory factory = new CommentElementFactory(document, isJSPTag, this);
    if (str.charAt(0) == '/') { // end tag
      TagScanner scanner = new TagScanner(str, 1); // skip '/'
      String name = scanner.nextName();
      if (name.equals(elementName)) {
        element = factory.create(name, CommentElementFactory.IS_END);
      }
    } else { // start tag
      TagScanner scanner = new TagScanner(str, 0);
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.commentelement.util.TagScanner.nextName()

      if (name.equals(elementName)) {
        element = factory.create(name, CommentElementFactory.IS_END);
      }
    } else { // start tag
      TagScanner scanner = new TagScanner(str, 0);
      String name = scanner.nextName();
      if (name.equals(elementName)) {
        element = factory.create(name, (isEmpty) ? CommentElementFactory.IS_EMPTY : CommentElementFactory.IS_START);
        // set attributes
        String attrName = scanner.nextName();
        while (attrName != null) {
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.commentelement.util.TagScanner.nextName()

      TagScanner scanner = new TagScanner(str, 0);
      String name = scanner.nextName();
      if (name.equals(elementName)) {
        element = factory.create(name, (isEmpty) ? CommentElementFactory.IS_EMPTY : CommentElementFactory.IS_START);
        // set attributes
        String attrName = scanner.nextName();
        while (attrName != null) {
          String attrValue = scanner.nextValue();
          Attr attr = document.createAttribute(attrName);
          if (attr != null) {
            if (attrValue != null)
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.commentelement.util.TagScanner.nextName()

          if (attr != null) {
            if (attrValue != null)
              ((IDOMAttr) attr).setValueSource(attrValue);
            element.setAttributeNode(attr);
          }
          attrName = scanner.nextName();
        }
      }
    }
    return element;
  }
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.