Examples of addString()


Examples of anvil.codec.ConstantPool.addString()

    clsid.append(" 1.0 ");
    LocalizationPreferences prefs = _address.getZone().getLocalizationPreferences();
    Calendar cal = Calendar.getInstance(prefs.getTimezoneInstance(), prefs.getLocaleInstance());
    anvil.util.Conversions.toString(clsid, cal);
    Field clsidfield = clazz.createField("_id", "Ljava/lang/String;", ACC_PUBLIC|ACC_STATIC|ACC_FINAL);
    clsidfield.setConstantValue(pool.addString(clsid.toString()));

    context.pushCode(code);
    code.self();
    code.invokespecial(pool.addMethodRef("anvil/script/compiler/CompiledModule",
      "<init>", "()V"));
View Full Code Here

Examples of bibliothek.util.xml.XElement.addString()

     * element will not be changed.
     */
    public void writeXML( XElement element ){
        for( Map.Entry<String, ApplicationResource> resource : resources.entrySet() ){
            XElement xresource = element.addElement( "resource" );
            xresource.addString( "name", resource.getKey() );
            resource.getValue().writeXML( xresource );
        }
    }
   
    /**
 
View Full Code Here

Examples of bibliothek.util.xml.XElement.addString()

     */
    public void writeXML( XElement element ){
      XElement delement = element.addElement( "dockables" );
      for( DockableEntry entry : dockables ){
            XElement xentry = delement.addElement( "entry" );
            xentry.addString( "id", entry.id );
            if( entry.current != null )
                xentry.addString( "current", entry.current.toString() );
           
            XElement xhistory = xentry.addElement( "history" );
            for( Path history : entry.history ){
View Full Code Here

Examples of bibliothek.util.xml.XElement.addString()

      XElement delement = element.addElement( "dockables" );
      for( DockableEntry entry : dockables ){
            XElement xentry = delement.addElement( "entry" );
            xentry.addString( "id", entry.id );
            if( entry.current != null )
                xentry.addString( "current", entry.current.toString() );
           
            XElement xhistory = xentry.addElement( "history" );
            for( Path history : entry.history ){
                xhistory.addElement( "mode" ).setString( history.toString() );
            }
View Full Code Here

Examples of bibliothek.util.xml.XElement.addString()

            }
           
            XElement xproperties = xentry.addElement( "properties" );
            for( Map.Entry<Path, B> next : entry.properties.entrySet() ){
                XElement xproperty = xproperties.addElement( "property" );
                xproperty.addString( "id", next.getKey().toString() );
                converter.writePropertyXML( next.getValue(), xproperty );
            }
        }
     
      XElement melement = element.addElement( "modes" );
View Full Code Here

Examples of bibliothek.util.xml.XElement.addString()

        }
     
      XElement melement = element.addElement( "modes" );
      for( ModeSetting<A> mode : modes.values() ){
        XElement xmode = melement.addElement( "entry" );
        xmode.addString( "id", mode.getModeId().toString() );
        mode.write( xmode, converter );
      }
    }
   
    /**
 
View Full Code Here

Examples of bibliothek.util.xml.XElement.addString()

        CDockablePerspective dockable = perspective.getDockable( key );
        Location location = getInvisibleLocation( dockable );
       
        if( location != null ){
          XElement xdockable = xinvisible.addElement( "dockable" );
        xdockable.addString( "key", key );
       
          if( dockable.getParent() == null ){
            conversion.getSituation().writeCompositionXML( conversion.convert( dockable.intern() ), xdockable.addElement( "content" ) );
          }
         
View Full Code Here

Examples of bibliothek.util.xml.XElement.addString()

          if( dockable.getParent() == null ){
            conversion.getSituation().writeCompositionXML( conversion.convert( dockable.intern() ), xdockable.addElement( "content" ) );
          }
         
          XElement xlocation = xdockable.addElement( "location" );
          xlocation.addString( "root", location.getRoot() );
          xlocation.addString( "mode", dockable.getLocationHistory().getLastMode().getModeIdentifier().toString() );
          transformer.writeXML( location.getLocation(), xlocation );
        }
      }
     
View Full Code Here

Examples of cofh.core.network.PacketSocial.addString()

    PacketSocial aPacket = new PacketSocial();
    aPacket.addByte(PacketTypes.FRIEND_LIST.ordinal());
    aPacket.addInt(friendConf.getCategory(thePlayer.getCommandSenderName().toLowerCase()).keySet().size());
    for (String theName : friendConf.getCategory(thePlayer.getCommandSenderName().toLowerCase()).keySet()) {
      aPacket.addString(theName);
    }
    PacketHandler.sendTo(aPacket, thePlayer);
  }

}
View Full Code Here

Examples of com.bluetangstudio.searchcloud.client.model.Document.addString()

        RestSearchCloudClient client = new RestSearchCloudClient(new DefaultHttpClientFactory(), getUri(), "apikey");

        String modelId = "test_SaveDocument";

        Document document = new Document(10);
        document.addString("title", "test");
        Integer documentId = client.saveDocument(new SaveDocumentRequest(modelId, document));
        Assert.assertNotNull(documentId);
        Assert.assertEquals(documentId, new Integer(10));

    }
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.