Examples of AttributeList


Examples of basicrunner.basichelper.AttributeList

            oConnector = new Connector();
            oFilter = new Filter();
            oDocumentHandler = new DocumentHandler();
      oThreadRunner = new ThreadRunner(xMSF);
            oCeptor = new DispatchProviderInterceptor() ;
            oAttributeList = new AttributeList();
            XSet xMSFSet = (XSet)UnoRuntime.queryInterface(XSet.class, xMSF);

            try {
                xMSFSet.insert(oHandler);
                xMSFSet.insert(oConnector);
View Full Code Here

Examples of com.android.dx.cf.iface.AttributeList

                          boolean keepLocals) {
        this.method = method;
        this.accSuper = (cf.getAccessFlags() & AccessFlags.ACC_SUPER) != 0;
        this.sourceFile = cf.getSourceFile();

        AttributeList attribs = method.getAttributes();
        this.attCode = (AttCode) attribs.findFirst(AttCode.ATTRIBUTE_NAME);

        AttributeList codeAttribs = attCode.getAttributes();

        /*
         * Combine all LineNumberTable attributes into one, with the
         * combined result saved into the instance. The following code
         * isn't particularly efficient for doing merges, but as far
         * as I know, this situation rarely occurs "in the
         * wild," so there's not much point in optimizing for it.
         */
        LineNumberList lineNumbers = LineNumberList.EMPTY;
        if (keepLines) {
            for (AttLineNumberTable lnt = (AttLineNumberTable)
                     codeAttribs.findFirst(AttLineNumberTable.ATTRIBUTE_NAME);
                 lnt != null;
                 lnt = (AttLineNumberTable) codeAttribs.findNext(lnt)) {
                lineNumbers = LineNumberList.concat(lineNumbers,
                        lnt.getLineNumbers());
            }
        }
        this.lineNumbers = lineNumbers;

        LocalVariableList localVariables = LocalVariableList.EMPTY;
        if (keepLocals) {
            /*
             * Do likewise (and with the same caveat) for
             * LocalVariableTable and LocalVariableTypeTable attributes.
             * This combines both of these kinds of attribute into a
             * single LocalVariableList.
             */
            for (AttLocalVariableTable lvt = (AttLocalVariableTable)
                     codeAttribs.findFirst(
                             AttLocalVariableTable.ATTRIBUTE_NAME);
                 lvt != null;
                 lvt = (AttLocalVariableTable) codeAttribs.findNext(lvt)) {
                localVariables =
                    LocalVariableList.concat(localVariables,
                            lvt.getLocalVariables());
            }

            LocalVariableList typeList = LocalVariableList.EMPTY;
            for (AttLocalVariableTypeTable lvtt = (AttLocalVariableTypeTable)
                     codeAttribs.findFirst(
                             AttLocalVariableTypeTable.ATTRIBUTE_NAME);
                 lvtt != null;
                 lvtt =
                     (AttLocalVariableTypeTable) codeAttribs.findNext(lvtt)) {
                typeList =
                    LocalVariableList.concat(typeList,
                            lvtt.getLocalVariables());
            }

View Full Code Here

Examples of com.emc.storageos.model.varray.AttributeList

     * @param id
     *        the ID of the virtual array.
     * @return the list of available attributes.
     */
    public List<VirtualPoolAvailableAttributesResourceRep> getAvailableAttributes(URI id) {
        AttributeList response = client.get(AttributeList.class, getIdUrl() + "/available-attributes", id);
        return defaultList(response.getAttributes());
    }
View Full Code Here

Examples of com.ojn.gexf4j.core.data.AttributeList

   
    gexf.getGraph()
      .setStartDate(toDate("2009-01-01"))
      .setEndDate(toDate("2009-03-20"));
   
    AttributeList attrListStatic = new AttributeListImpl(AttributeClass.NODE);
    gexf.getGraph().getAttributeLists().add(attrListStatic);
   
    AttributeList attrListDynamic = new AttributeListImpl(AttributeClass.NODE)
      .setMode(Mode.DYNAMIC);
    gexf.getGraph().getAttributeLists().add(attrListDynamic);
   
    Attribute attUrl = attrListStatic.createAttribute("0", AttributeType.STRING, "url");
    Attribute attFrog = attrListStatic.createAttribute("1", AttributeType.BOOLEAN, "frog")
      .setDefaultValue("true");
   
    Attribute attIndegree = attrListDynamic.createAttribute("2", AttributeType.FLOAT, "indegree");
   
    Node gephi = gexf.getGraph().createNode("0");
    gephi
      .setLabel("Gephi")
      .setStartDate(toDate("2009-03-01"))
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.runtime.AttributeList

  else {
      SyntaxTreeNode parent = (SyntaxTreeNode)_parentStack.peek();
      parent.addElement(element);
      element.setParent(parent);
  }
  element.setAttributes(new AttributeList(attributes));
  element.setPrefixMapping(_prefixMapping);
 
  if (element instanceof Stylesheet) {
      // Extension elements and excluded elements have to be
      // handled at this point in order to correctly generate
View Full Code Here

Examples of fr.esrf.tangoatk.core.AttributeList

    DefaultMutableTreeNode attributes = null;
    IDevice d;
  
   
    for (int i = 0; i < devices.size(); i++) {
        AttributeList scalarList = new AttributeList();
        AttributeList al = new AttributeList();
  
    d = (IDevice)devices.get(i);
    //System.out.println("devicename = " + d.getName());
    List<?> childrenlist = family.getChildren();
    for(int j = 0 ;  j < childrenlist.size() ; j++)
    {
        MemberNode devicelocal = null;
        //System.out.println("childrenlist[" + j + "] = " + childrenlist.get(j).getClass());
        devicelocal = (MemberNode)childrenlist.get(j);
        if(devicelocal.getName().toLowerCase().equals(d.getName()))
            device = devicelocal;
    }
    //device = family.getChild((d.getName()));
    //System.out.println("device :" + device);
    device.setAttributeList(scalarList);
 
    device.setDevice(d);

    try {
        al.add(d.getName() + "/*");
    } catch (ATKException e) {
  error(e);
    }

    if (al.size() > 0) {
    {
        IAttribute attribute = null;
        for(int j = 0; j < al.size() ; j++)
        {
            attribute = (IAttribute)al.get(j);
            if(attribute instanceof INumberScalar)
          {
                //System.out.println(attribute.getName() + " is a scalar ");
                try
                {
View Full Code Here

Examples of info.bliki.wiki.template.extension.AttributeList

    // convert plain collections
    // get exactly in this scope (no enclosing)

    // it will be a multi-value attribute
    // System.out.println("exists: "+name+"="+o);
    AttributeList v = null;

    Object o = this.attributes.get(name);
    if (o == null) { // new attribute
      if (value instanceof List) {
        v = new AttributeList(((List) value).size());
        // flatten incoming list into existing
        v.addAll((List) value);
        rawSetAttribute(this.attributes, name, v);
        return;
      }
      rawSetAttribute(this.attributes, name, value);
      return;
    }

    if (o.getClass() == AttributeList.class) { // already a list made by ST
      v = (AttributeList) o;
    } else if (o instanceof List) { // existing attribute is non-ST List
      // must copy to an ST-managed list before adding new attribute
      List listAttr = (List) o;
      v = new AttributeList(listAttr.size());
      v.addAll(listAttr);
      rawSetAttribute(this.attributes, name, v); // replace attribute w/list
    } else {
      // non-list second attribute, must convert existing to ArrayList
      v = new AttributeList(); // make list to hold multiple values
      // make it point to list now
      rawSetAttribute(this.attributes, name, v); // replace attribute w/list
      v.add(o); // add previous single-valued attribute
    }
    if (value instanceof List) {
      // flatten incoming list into existing
      if (v != value) { // avoid weird cyclic add
        v.addAll((List) value);
      }
    } else {
      v.add(value);
    }
  }
View Full Code Here

Examples of javax.management.AttributeList

   }
  
   public void selftest() throws Exception
   {
      // Store some attributes under an id
      AttributeList alist = new AttributeList();
      String storeId = "bananarama";
     
      Integer anInteger = new Integer(666);
      String aString = new String("Evil Test");
      alist.add(new Attribute("Attr1", anInteger));
      alist.add(new Attribute("Attr2", aString));
      apm.store(storeId, alist);
     
      // Read them back
      AttributeList alist2 = apm.load(storeId);     
   }
View Full Code Here

Examples of javax.swing.text.html.parser.AttributeList

            ContentModel cm2 = new ContentModel('*', new ContentModel());
            BitSet bs1 = new BitSet(0);
            bs1.set(1);
            BitSet bs2 = new BitSet(168);
            bs2.set(45);
            AttributeList al = new AttributeList("1");
            Element el = dtd.defineElement("elemento", ',', false, false, cm2,
                    bs1, bs2, al);
            cm2 = new ContentModel(el);
            ContentModel cm = new ContentModel(0, cm2);
            Vector v = new Vector();
View Full Code Here

Examples of net.jradius.packet.attribute.AttributeList

    public boolean authenticate(
        final UsernamePasswordCredentials usernamePasswordCredentials) {
        final RadiusClient radiusClient = getNewRadiusClient();

        final AttributeList attributeList = new AttributeList();
        attributeList.add(new Attr_UserName(usernamePasswordCredentials
            .getUsername()));
        attributeList.add(new Attr_UserPassword(usernamePasswordCredentials
            .getPassword()));

        final AccessRequest request = new AccessRequest(radiusClient,
            attributeList);
View Full Code Here
TOP
Copyright © 2015 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.