Examples of Name


Examples of com.google.appengine.datanucleus.test.jdo.Name

    assertEquals("c", ((List<?>)e.getProperty("array")).get(0));
  }

  public void testEmbeddable() throws EntityNotFoundException {
    Person p = new Person();
    p.setName(new Name());
    p.getName().setFirst("jimmy");
    p.getName().setLast("jam");
    p.setAnotherName(new Name());
    p.getAnotherName().setFirst("anotherjimmy");
    p.getAnotherName().setLast("anotherjam");
    makePersistentInTxn(p, TXN_START_END);

    assertNotNull(p.getId());
View Full Code Here

Examples of com.google.caja.util.Name

      CssPropertySignature rep = sig.getRepeatedSignature();
      inspectSig(rep);
    }

    private void inspectRef(CssPropertySignature.PropertyRefSignature sig) {
      Name propertyName = sig.getPropertyName();
      if (refsUsed.incr(propertyName.getCanonicalForm()) == 0) {
        CssSchema.CssPropertyInfo p = schema.getCssProperty(propertyName);
        if (p == null) {
          throw new SomethingWidgyHappenedError(
              "Unsatisfied reference " + propertyName);
        }
View Full Code Here

Examples of com.google.gdata.data.appsforyourdomain.Name

    if (passwordHashFunction != null) {
      login.setHashFunctionName(passwordHashFunction);
    }
    entry.addExtension(login);

    Name name = new Name();
    name.setGivenName(givenName);
    name.setFamilyName(familyName);
    entry.addExtension(name);

    if (quotaLimitInMb != null) {
      Quota quota = new Quota();
      quota.setLimit(quotaLimitInMb);
View Full Code Here

Examples of com.google.gdata.data.extensions.Name

    extProfile.declare(BasePersonEntry.class,
        Language.getDefaultDescription(false, true));
    extProfile.declare(BasePersonEntry.class, MaidenName.class);
    extProfile.declare(BasePersonEntry.class, Mileage.class);
    extProfile.declare(BasePersonEntry.class, Name.class);
    new Name().declareExtensions(extProfile);
    extProfile.declare(BasePersonEntry.class, Nickname.class);
    extProfile.declare(BasePersonEntry.class, Occupation.class);
    extProfile.declare(BasePersonEntry.class,
        Organization.getDefaultDescription(false, true));
    new Organization().declareExtensions(extProfile);
View Full Code Here

Examples of com.google.gwt.query.client.builders.Name

          if(jsonBuilderType.findMethod(method.getName(), method.getParameterTypes()) != null ||
              settingsType.findMethod(method.getName(), method.getParameterTypes()) != null ) {
            continue;
          }

          Name nameAnnotation = method.getAnnotation(Name.class);
          String name = nameAnnotation != null
            ? nameAnnotation.value()
            : methName.replaceFirst("^(get|set)", "");
          if (nameAnnotation == null) {
            name = name.substring(0, 1).toLowerCase() + name.substring(1);
          }
          attrs.add(name);
View Full Code Here

Examples of com.google.javascript.jscomp.GlobalNamespace.Name

* @author nicksantos@google.com (Nick Santos)
*/
public class GlobalNamespaceTest extends TestCase {

  public void testRemoveDeclaration1() {
    Name n = new Name("a", null, false);
    Ref set1 = createNodelessRef(Ref.Type.SET_FROM_GLOBAL);
    Ref set2 = createNodelessRef(Ref.Type.SET_FROM_GLOBAL);

    n.addRef(set1);
    n.addRef(set2);

    assertEquals(set1, n.getDeclaration());
    assertEquals(2, n.globalSets);
    assertEquals(2, n.getRefs().size());

    n.removeRef(set1);

    assertEquals(set2, n.getDeclaration());
    assertEquals(1, n.globalSets);
    assertEquals(1, n.getRefs().size());
  }
View Full Code Here

Examples of com.google.javascript.jscomp.NameReferenceGraph.Name

    }
  }

  private void connectUnknowns() {
    for (GraphNode<Name, Reference> node : graph.getNodes()) {
      Name name = node.getValue();
      String propName = name.getPropertyName();
      if (propName == null) {
        continue;
      }
      Collection<NameUse> uses = unknownNameUse.get(propName);
      if (uses != null) {
View Full Code Here

Examples of com.google.javascript.jscomp.mozilla.rhino.ast.Name

      return node;
    }

    @Override
    Node processFunctionNode(FunctionNode functionNode) {
      Name name = functionNode.getFunctionName();
      Boolean isUnnamedFunction = false;
      if (name == null) {
        int functionType = functionNode.getFunctionType();
        if (functionType != FunctionNode.FUNCTION_EXPRESSION) {
          errorReporter.error(
            "unnamed function statement",
            sourceName,
            functionNode.getLineno(), "", 0);
        }
        name = new Name();
        name.setIdentifier("");
        isUnnamedFunction = true;
      }
      Node node = newNode(Token.FUNCTION);
      Node newName = transform(name);
      if (isUnnamedFunction) {
        // Old Rhino tagged the empty name node with the line number of the
        // declaration.
        newName.setLineno(functionNode.getLineno());
        // TODO(bowdidge) Mark line number of paren correctly.
        // Same problem as below - the left paren might not be on the
        // same line as the function keyword.
        int lpColumn = functionNode.getAbsolutePosition() +
            functionNode.getLp();
        newName.setCharno(position2charno(lpColumn));
        maybeSetLengthFrom(newName, name);
      }

      node.addChildToBack(newName);
      Node lp = newNode(Token.LP);
      // The left paren's complicated because it's not represented by an
      // AstNode, so there's nothing that has the actual line number that it
      // appeared on.  We know the paren has to appear on the same line as the
      // function name (or else a semicolon will be inserted.)  If there's no
      // function name, assume the paren was on the same line as the function.
      // TODO(bowdidge): Mark line number of paren correctly.
      Name fnName = functionNode.getFunctionName();
      if (fnName != null) {
        lp.setLineno(fnName.getLineno());
      } else {
        lp.setLineno(functionNode.getLineno());
      }
      int lparenCharno = functionNode.getLp() +
          functionNode.getAbsolutePosition();
View Full Code Here

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

    this.nodes = nodes;
  }

  @Override
  public void idExpression(String id) {
    nodes.add(new Name(id));
  }
View Full Code Here

Examples of com.googlecode.objectify.test.entity.Name

  public void bigStringsAreAllowedInEmbeddedCollections() throws Exception
  {
    fact().register(HasNames.class);

    HasNames has = new HasNames();
    has.names = new Name[] { new Name("Bob", BIG_STRING) };

    HasNames fetched = ofy().saveClearLoad(has);
    assert fetched.names[0].lastName.equals(BIG_STRING);
  }
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.