Examples of addAttribute()


Examples of org.xml.sax.helpers.AttributeListImpl.addAttribute()

            for (int x=0; x<this.undecl.size(); x++) {
                NamespacesTable.Declaration dec=null;
                dec=(NamespacesTable.Declaration)this.undecl.elementAt(x);
                String aname="xmlns";
                if (dec.getPrefix().length()>0) aname="xmlns:"+dec.getPrefix();
                a2.addAttribute(aname,"CDATA",dec.getUri());
            }
            this.undecl.clear();
        }
        // Set the real attributes
        for (int x=0; x<a.getLength(); x++) {

Examples of org.xml.sax.helpers.AttributesImpl.addAttribute()

        throws Exception
    {
        final SAXConfigurationHandler handler = new SAXConfigurationHandler();
        final String qName = "myElement";
        final AttributesImpl attributes = new AttributesImpl();
        attributes.addAttribute( "", "", "key", "CDATA", "value" );
        handler.startElement( "", "", qName, attributes );
        handler.endElement( "", "", qName );
        final Configuration configuration = handler.getConfiguration();
        assertEquals( "configuration.name", qName, configuration.getName() );
        assertEquals( "configuration.location", "", configuration.getLocation() );

Examples of org.xmlBlaster.engine.runlevel.PluginConfig.addAttribute()

   public void testPluginConfig() {
      String me = ME + "-testPluginConfig";
      try {
         log.info("start");
         PluginConfig config = new PluginConfig(this.glob, "queueJDBC", true, "org.xmlBlaster.util.queue.jdbc.JDBCQueueCommonTablePlugin");
         config.addAttribute("url", "jdbc:oracle:thin:@localhost:1521:noty");
         config.addAttribute("user", "joe");
         config.addAttribute("password", "secret");
         config.addAttribute("connectionBusyTimeout", "90000");
         config.addAttribute("maxWaitingThreads", "300");
         RunLevelAction action = new RunLevelAction(this.glob, "LOAD", 3, -1, ErrorCode.toErrorCode("internal.unknown"), 5);

Examples of org.xmlpull.v1.builder.XmlElement.addAttribute()

    public void create() throws GraphException {

        XmlDocument doc = builder.newDocument();

        XmlElement scufl = doc.addDocumentElement(scuflNS, "scufl");
        scufl.addAttribute("version", "0.2");
        scufl.addAttribute("log", "0");
        XmlElement description = scufl.addElement(scuflNS, "workflowdescription");
        description.addAttribute("lsid", "urn:lsid:net.sf.taverna:wfDefinition:" + UUID.randomUUID());
        description.addAttribute("author", "");
        description.addAttribute("title", workflow.getName());

Examples of org.zoolu.sdp.MediaDescriptor.addAttribute()

                        if (isPayloadRelatedAttribute(localAttribute)) {                           
                            String payloadId = getPayloadIdFromAttribute(localAttribute);
                           
                            if (findAttributeByPayloadId(localAttribute.getAttributeName(),
                                              payloadId, newLocalDescriptor) == null) {                               
                                newLocalDescriptor.addAttribute(localAttribute);
                            }
                        } else if (newLocalDescriptor.getAttribute(localAttribute.getAttributeName()) == null) {                           
                            newLocalDescriptor.addAttribute(localAttribute);
                        }
                    }

Examples of pl.net.bluesoft.rnd.processtool.model.ProcessInstance.addAttribute()

        {
            ProcessInstanceSimpleAttribute attr = new ProcessInstanceSimpleAttribute();
            attr.setKey("creator");
            attr.setValue(creator.getLogin());
            newProcessInstance.addAttribute(attr);

            attr = new ProcessInstanceSimpleAttribute();
            attr.setKey("creatorName");
            attr.setValue(creator.getRealName());
            newProcessInstance.addAttribute(attr);

Examples of railo.transformer.bytecode.statement.tag.Tag.addAttribute()

    // attributes
    //attributes(func,data);
    Attribute[] attrs = attributes(tag,tlt,data,SEMI_BLOCK,LitString.EMPTY,script.getRtexpr()?Boolean.TRUE:Boolean.FALSE,null,false);
   
    for(int i=0;i<attrs.length;i++){
      tag.addAttribute(attrs[i]);
    }
   
    comments(data);
 
    // body

Examples of railo.transformer.bytecode.statement.tag.TagOther.addAttribute()

   
    int pos = data.cfml.getPos();
    String tmp=variableDec(data, true);
    if(!StringUtil.isEmpty(tmp)) {
      if(tmp.indexOf('.')!=-1) {
        property.addAttribute(new Attribute(false,"type",LitString.toExprString(tmp),"string"));
        hasType=true;
      }
      else {
        data.cfml.setPos(pos);
      }

Examples of railo.transformer.bytecode.statement.tag.TagOutput.addAttribute()

        TagLibTag outputTag = lib.getTag("output");
       
        TagOutput output=new TagOutput(tag.getStart(),null);
        output.setFullname(outputTag.getFullName());
        output.setTagLibTag(outputTag);
        output.addAttribute(new Attribute(false,"output",LitBoolean.TRUE,"boolean"));
        output.addAttribute(new Attribute(false,"formail",LitBoolean.TRUE,"boolean"));
       
        Body body=new BodyBase();//output.getBody();
        output.setBody(body);
       

Examples of railo.transformer.bytecode.statement.tag.TagParam.addAttribute()

    boolean hasType=false;
    int pos = data.cfml.getPos();
    String tmp=variableDec(data, true);
    if(!StringUtil.isEmpty(tmp)) {
      if(tmp.indexOf('.')!=-1) {
        param.addAttribute(new Attribute(false,"type",LitString.toExprString(tmp),"string"));
        hasType=true;
      }
      else data.cfml.setPos(pos);
    }
    else data.cfml.setPos(pos);
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.