本文整理了Java中jadex.xml.bean.JavaWriter.objectToXML()
方法的一些代码示例,展示了JavaWriter.objectToXML()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JavaWriter.objectToXML()
方法的具体详情如下:
包路径:jadex.xml.bean.JavaWriter
类名称:JavaWriter
方法名:objectToXML
[英]Convert to a string.
[中]转换为字符串。
代码示例来源:origin: net.sourceforge.jadex/jadex-xml
/**
* Convert to a string.
*/
public static String objectToXML(Object val, ClassLoader classloader)
{
return objectToXML(val, classloader, null);
}
代码示例来源:origin: org.activecomponents.jadex/jadex-runtimetools-swing
/**
* Convert message to a string.
* @param message The message.
*/
public String encodeMessage(Map message)
{
String msg = JavaWriter.objectToXML(message, null); // Todo: classloader!?
return msg;
}
代码示例来源:origin: net.sourceforge.jadex/jadex-runtimetools-swing
/**
* Convert message to a string.
* @param message The message.
*/
public String encodeMessage(Map message)
{
String msg = JavaWriter.objectToXML(message, null); // Todo: classloader!?
return msg;
}
代码示例来源:origin: org.activecomponents.jadex/jadex-applications-bdi
os.write(JavaWriter.objectToXML(getHighscore(),this.getClass().getClassLoader()));
os.close();
代码示例来源:origin: org.activecomponents.jadex/jadex-applications-micro
str = JavaWriter.objectToXML(data, ArrayTest.class.getClassLoader());
time = System.nanoTime() - start;
System.out.println("encoding to XML took "+(time/1000000)+" milliseconds");
代码示例来源:origin: net.sourceforge.jadex/jadex-runtimetools-swing
/**
* Write current state into properties.
*/
public IFuture<Properties> getProperties()
{
Properties props = new Properties();
if(currentperspective!=null)
{
props.addProperty(new Property("perspective", currentperspective.getName()));
consoleheights.put(currentperspective.getName()+".console.height", Double.valueOf(getConsoleHeight()));
}
props.addProperty(new Property("consoleenabled", consoleenabled ? "true" : "false"));
props.addProperty(new Property("consoleheights", JavaWriter.objectToXML(consoleheights, getClass().getClassLoader())));
return new Future<Properties>(props);
}
代码示例来源:origin: org.activecomponents.jadex/jadex-runtimetools-swing
/**
* Write current state into properties.
*/
public IFuture<Properties> getProperties()
{
Properties props = new Properties();
if(currentperspective!=null)
{
props.addProperty(new Property("perspective", currentperspective.getName()));
consoleheights.put(currentperspective.getName()+".console.height", Double.valueOf(getConsoleHeight()));
}
props.addProperty(new Property("consoleenabled", consoleenabled ? "true" : "false"));
props.addProperty(new Property("consoleheights", JavaWriter.objectToXML(consoleheights, getClass().getClassLoader())));
return new Future<Properties>(props);
}
代码示例来源:origin: net.sourceforge.jadex/jadex-tools-base-swing
String treesave = JavaWriter.objectToXML(mep, getClass().getClassLoader()); // Doesn't support inner classes: ModelExplorer$ModelExplorerProperties
props.addProperty(new Property("tree", treesave));
内容来源于网络,如有侵权,请联系作者删除!