Examples of elements()


Examples of com.google.gwt.query.client.js.JsCache.elements()

    c.put("X", "X");
    assertNull(c.get(1));
    assertEquals(slist[2], c.get(2));
    assertEquals(7, c.length());
    assertEquals(7, c.keys().length);
    assertEquals(7, c.elements().length);

    assertTrue(c.exists(2));
    assertFalse(c.exists(3));
    assertTrue(c.exists("X"));
    assertFalse(c.exists("V"));
View Full Code Here

Examples of com.google.gwt.query.client.js.JsNodeArray.elements()

    assertEquals(1, a.elements().length);

    JsNodeArray n = JsNodeArray.create();
    assertEquals(0, n.getLength());
    assertEquals(0, n.<JsCache>cast().keys().length);
    assertEquals(0, n.elements().length);

    n.addNode($("<hr/>").get(0));
    assertEquals(1, n.getLength());
    assertEquals(1, n.<JsCache>cast().keys().length);
    assertEquals(1, n.elements().length);
View Full Code Here

Examples of com.google.storage.onestore.v3.OnestoreEntity.Path.elements()

class KeyTranslator {

  public static Key createFromPb(Reference reference) {
    Key parentKey = null;
    Path path = reference.getPath();
    List<Element> elements = path.elements();
    if (elements.isEmpty()) {
      throw new IllegalArgumentException("Invalid Key PB: no elements.");
    }

    AppIdNamespace appIdNamespace = new AppIdNamespace(reference.getApp(),
View Full Code Here

Examples of com.ibm.richtext.textlayout.attributes.AttributeSet.elements()

     */
    void _testViews(AttributeMap map) {

        AttributeSet keySet = map.getKeySet();

        Enumeration keyIter = keySet.elements();
        while (keyIter.hasMoreElements()) {
            if (!map.containsKey(keyIter.nextElement())) {
                errln("keySet contains key not in map");
            }
        }
View Full Code Here

Examples of com.liferay.portal.kernel.xml.Element.elements()

            List<EntityColumn> orderColsList = new ArrayList<EntityColumn>();

            order = new EntityOrder(asc, orderColsList);

            List<Element> orderColumnElements = orderElement.elements(
                    "order-column");

            for (Element orderColElement : orderColumnElements) {
                String orderColName = orderColElement.attributeValue("name");
                boolean orderColCaseSensitive = GetterUtil.getBoolean(
View Full Code Here

Examples of com.objectspace.jgl.Array.elements()

    double max = -1.0d;
    double tmax;
    try {
      Array cVector = containsValue(value);
      if (cVector.size() > 0) {
        for (Enumeration e = cVector.elements(); e.hasMoreElements();) {
          FzySet aSet = (FzySet) e.nextElement();
          tmax = aSet.getDOM(value);
          if (tmax > max) max = tmax;
        }
        return max;
View Full Code Here

Examples of com.sun.enterprise.deployment.DeploymentExtensionDescriptor.elements()

            Element extensionNode = appendChild(parentNode, TagNames.DEPLOYMENT_EXTENSION);   
            setAttribute(extensionNode, TagNames.NAMESPACE, descriptor.getNameSpace());
            if (descriptor.getMustUnderstand()) {
                setAttribute(extensionNode, TagNames.MUST_UNDERSTAND, "true");
            }
            for (Iterator elements = descriptor.elements();elements.hasNext();) {     
                ExtensionElementDescriptor element = (ExtensionElementDescriptor) elements.next();
                subNode.writeDescriptor(extensionNode, TagNames.EXTENSION_ELEMENT, element );
            }
        } while(itr.hasNext());           
    }
View Full Code Here

Examples of com.sun.javadoc.AnnotationTypeDoc.elements()

      }
    }
if (!useAnnotationDefaults()) return;
    { // also set values for the type's defaults
      AnnotationTypeDoc atd = src.annotationType();
      AnnotationTypeElementDoc[] elements = atd.elements();
      for(int i=0; i<elements.length; i++) {
        AnnotationValue value = elements[i].defaultValue();
        if (value != null) {
          String name = elements[i].name();
          System.out.println("default value named '"+name+"'  = "+
View Full Code Here

Examples of com.sun.tools.corba.se.idl.EnumEntry.elements()

                string = "\\u" + def + "'";
        ret = string;
    } else if (utype instanceof EnumEntry) {
        Enumeration e = labels.elements ();
        EnumEntry enumEntry = (EnumEntry)utype;
        Vector enumList = (Vector)enumEntry.elements ().clone ();
        // cull out those elements in the enumeration list that are
        // in the cases of this union
        while (e.hasMoreElements ())
            enumList.removeElement (e.nextElement ());
        // If all of the enum elements are covered in this union and
View Full Code Here

Examples of de.willuhn.util.History.elements()

  {
    History h = this.history.get(id);
    List<HBCITraceMessage> list = new ArrayList<HBCITraceMessage>();
   
    if (h != null)
      list.addAll(h.elements());
   
    return list;
  }

  /**
 
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.