- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.izforge.izpack.api.adaptator.impl.XMLElementImpl
类的一些代码示例,展示了XMLElementImpl
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLElementImpl
类的具体详情如下:
包路径:com.izforge.izpack.api.adaptator.impl.XMLElementImpl
类名称:XMLElementImpl
[英]Implementation of the adaptator between nanoXml and javax
[中]nanoXml和javax之间适配器的实现
代码示例来源:origin: stackoverflow.com
public class MyClass implements Tagged, XMLElement {
private Tagged tagged;
private XMLElement xmlElement;
public MyClass(/*...*/) {
tagged = new TaggedImpl();
xmlElement = new XMLElementImpl();
}
@Override
public void someTaggedMethod() {
tagged.someTaggedMethod();
}
}
代码示例来源:origin: org.codehaus.izpack/izpack-core
@Override
public void makeXMLData(IXMLElement conditionRoot)
{
XMLElementImpl packel = new XMLElementImpl("name", conditionRoot);
packel.setContent(this.name);
conditionRoot.addChild(packel);
}
代码示例来源:origin: org.codehaus.izpack/izpack-core
@Override
public void makeXMLData(IXMLElement conditionRoot)
{
XMLElementImpl javael = new XMLElementImpl("java", conditionRoot);
conditionRoot.addChild(javael);
XMLElementImpl classel = new XMLElementImpl("class", javael);
classel.setContent(this.classname);
javael.addChild(classel);
if (this.methodname != null)
{
XMLElementImpl methodel = new XMLElementImpl("method", javael);
methodel.setContent(this.methodname);
javael.addChild(methodel);
}
if (this.fieldname != null)
{
XMLElementImpl fieldel = new XMLElementImpl("field", javael);
fieldel.setContent(this.fieldname);
javael.addChild(fieldel);
}
XMLElementImpl returnvalel = new XMLElementImpl("returnvalue", javael);
returnvalel.setContent(this.returnvalue);
returnvalel.setAttribute("type", this.returnvaluetype);
javael.addChild(returnvalel);
}
代码示例来源:origin: org.codehaus.izpack/izpack-core
@Override
public IXMLElement createConditionElement(Condition condition, IXMLElement root)
{
XMLElementImpl xml = new XMLElementImpl("condition", root);
xml.setAttribute("id", condition.getId());
xml.setAttribute("type", condition.getClass().getCanonicalName());
return xml;
}
代码示例来源:origin: org.codehaus.izpack/izpack-core
@Override
public void makeXMLData(IXMLElement conditionRoot)
{
XMLElementImpl el1 = new XMLElementImpl(this.contentType.getAttribute(),
conditionRoot);
el1.setContent(this.source);
conditionRoot.addChild(el1);
XMLElementImpl el2 = new XMLElementImpl(VALUE_ELEMENT_NAME, conditionRoot);
el2.setContent(this.value);
el2.setAttribute(VALUE_ATTR_REGEX_NAME, Boolean.toString(isRegEx));
el2.setAttribute(VALUE_ATTR_CASEINSENSITIVE_NAME, Boolean.toString(isCaseInsensitive));
conditionRoot.addChild(el2);
}
代码示例来源:origin: org.codehaus.izpack/izpack-api
@Override
public List<IXMLElement> getChildrenNamed(String name)
{
List<IXMLElement> res = new ArrayList<IXMLElement>();
for (IXMLElement child : getChildren())
{
if (child.getName() != null && child.getName().equals(name))
{
res.add(new XMLElementImpl(child.getElement()));
}
}
return res;
}
代码示例来源:origin: org.codehaus.izpack/izpack-core
@Override
public void writeRulesXML(OutputStream out)
{
XMLWriter xmlOut = new XMLWriter();
xmlOut.setOutput(out);
XMLElementImpl conditionsel = new XMLElementImpl("conditions");
for (Condition condition : conditionsMap.values())
{
IXMLElement conditionEl = createConditionElement(condition, conditionsel);
condition.makeXMLData(conditionEl);
conditionsel.addChild(conditionEl);
}
logger.fine("Writing generated conditions specification");
try
{
xmlOut.write(conditionsel);
}
catch (XMLException e)
{
throw new IzPackException(e);
}
}
代码示例来源:origin: org.codehaus.izpack/izpack-api
@Override
public List<IXMLElement> getChildren()
{
initChildrenList();
return childrenList;
}
代码示例来源:origin: org.codehaus.izpack/izpack-api
@Override
public String getAttribute(String name)
{
return this.getAttribute(name, null);
}
代码示例来源:origin: org.codehaus.izpack/izpack-api
@Override
public int getChildrenCount()
{
initChildrenList();
return childrenList.size();
}
代码示例来源:origin: org.codehaus.izpack/izpack-api
@Override
public IXMLElement getFirstChildNamed(String name)
{
XMLElementImpl res = null;
NodeList nodeList = element.getElementsByTagName(name);
if (nodeList.getLength() > 0)
{
res = new XMLElementImpl(nodeList.item(0));
}
return res;
}
代码示例来源:origin: org.codehaus.izpack/izpack-core
@Override
public void makeXMLData(IXMLElement conditionRoot)
{
XMLElementImpl nameEl = new XMLElementImpl("name", conditionRoot);
nameEl.setContent(this.variablename);
conditionRoot.addChild(nameEl);
XMLElementImpl valueEl = new XMLElementImpl("value", conditionRoot);
valueEl.setContent(this.value);
conditionRoot.addChild(valueEl);
}
代码示例来源:origin: org.codehaus.izpack/izpack-api
@Override
public IXMLElement getChildAtIndex(int index)
{
initChildrenList();
return childrenList.get(index);
}
代码示例来源:origin: org.codehaus.izpack/izpack-api
private IXMLElement searchFirstElement(DOMResult domResult)
{
for (Node child = domResult.getNode().getFirstChild(); child != null; child = child.getNextSibling())
{
if (child.getNodeType() == Node.ELEMENT_NODE)
{
return new XMLElementImpl(child);
}
}
return null;
}
代码示例来源:origin: org.codehaus.izpack/izpack-core
/**
* {@inheritDoc}
*/
@Override
public void makeXMLData(IXMLElement conditionRoot)
{
XMLElementImpl requiredUserEl = new XMLElementImpl("requiredusername", conditionRoot);
requiredUserEl.setContent(this.requiredUsername);
conditionRoot.addChild(requiredUserEl);
}
代码示例来源:origin: org.codehaus.izpack/izpack-api
private void initChildrenList()
{
if (hasChanged)
{
hasChanged = false;
childrenList = new ArrayList<IXMLElement>();
for (Node child = element.getFirstChild(); child != null; child = child.getNextSibling())
{
if (child.getNodeType() == Node.ELEMENT_NODE)
{
childrenList.add(new XMLElementImpl(child));
}
}
}
}
代码示例来源:origin: org.codehaus.izpack/izpack-api
@Override
public void makeXMLData(IXMLElement conditionRoot)
{
XMLElementImpl nameXml = new XMLElementImpl("arg1", conditionRoot);
nameXml.setContent(this.operand1);
conditionRoot.addChild(nameXml);
XMLElementImpl valueXml = new XMLElementImpl("arg2", conditionRoot);
valueXml.setContent(this.operand2);
conditionRoot.addChild(valueXml);
XMLElementImpl opXml = new XMLElementImpl("operator", conditionRoot);
opXml.setContent(this.operator.getAttribute());
conditionRoot.addChild(opXml);
}
}
代码示例来源:origin: org.codehaus.izpack/izpack-panel
dataElement = new XMLElementImpl(AUTO_KEY_CREATE_MENU_SHORTCUTS, panelRoot);
dataElement = new XMLElementImpl(AUTO_KEY_PROGRAM_GROUP, panelRoot);
dataElement.setContent(getGroupName());
xmlData.add(dataElement);
dataElement = new XMLElementImpl(AUTO_KEY_CREATE_DESKTOP_SHORTCUTS, panelRoot);
dataElement.setContent(Boolean.toString(createDesktopShortcuts));
xmlData.add(dataElement);
dataElement = new XMLElementImpl(AUTO_KEY_CREATE_STARTUP_SHORTCUTS, panelRoot);
dataElement.setContent(Boolean.toString(createStartupShortcuts));
xmlData.add(dataElement);
dataElement = new XMLElementImpl(AUTO_KEY_SHORTCUT_TYPE, panelRoot);
String userTypeString = AUTO_KEY_SHORTCUT_TYPE_VALUE_USER;
if (getUserType() == Shortcut.ALL_USERS)
代码示例来源:origin: org.codehaus.izpack/izpack-core
@Override
public void makeXMLData(IXMLElement conditionRoot)
{
XMLElementImpl el = new XMLElementImpl(this.contentType.getAttribute(), conditionRoot);
el.setContent(this.content);
conditionRoot.addChild(el);
}
代码示例来源:origin: org.codehaus.izpack/izpack-panel
/**
* Serialize state to XML and insert under panelRoot.
*
* @param installData The installation installData GUI.
* @param rootElement The XML root element of the panels blackbox tree.
*/
@Override
public void createInstallationRecord(InstallData installData, IXMLElement rootElement)
{
HashSet<String> omitFromAutoSet = new HashSet<String>();
Map<String, String> entries = generateEntries(installData, views, omitFromAutoSet);
IXMLElement dataElement;
for (String key : entries.keySet())
{
dataElement = new XMLElementImpl(AUTO_KEY_ENTRY, rootElement);
dataElement.setAttribute(AUTO_ATTRIBUTE_KEY, key);
String value = (omitFromAutoSet.contains(key) ? "" : entries.get(key));
dataElement.setAttribute(AUTO_ATTRIBUTE_VALUE, value);
rootElement.addChild(dataElement);
}
}
我正在制作一个 android 应用程序,它允许用户在 editText 中输入关键字,当他们点击提交时,下面的 recyclerview 将显示来自 API 请求的结果。 我的 recyclerVi
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我想在我的 Svelte Kit 应用程序中使用 @sveltejs/adapter-static(想把它变成一个 SPA)。 我使用 npm i @sveltejs/adapter-static 安
我有一个简单的表单,在提交重定向到 AuthController 内的 processAction 之后,在这个 action 中我想要创建一个简单的 table bar。 已编辑: 引用Zend f
当我使用 ListView 时,我扩展了 ArrayAdapter 并将数据(一个列表)存储在 ArrayAdapter 中,因此当数据更改时,我调用: adapter.add(item).; 还有另
我有一个使用 Webpack 捆绑的 commonjs 浏览器应用程序( typescript )。它使用 webrtc,所以我想使用 webrtc-adapter package from npm
在 “DesignPatterns: Elements of Reusable Object-Oriented Software” 一书中谈到 C++ 实现 Adapter 模式时,它是这样的这个:
只需要帮助理解 ZF2 中的一些简单数据库查询。在 ZF1 中,我有这样简单的方法: public function recordset() { // listing of all records $
当使用Spring的Java配置时,你一定会看到像WebMvcConfigurerAdapter这样的类& HandlerInterceptorAdapter它们实现单个接口(interface),并
我将 doctrine2 与 ZF2 一起使用,我的一些库与 Zend\Db\Adapter\Adapter 一起使用,其他的与 doctrine2 一起使用。现在,他们两次连接到数据库。是否可以在原
过去几天我一直在工作灯上工作,现在正在尝试制作连接到数据库的应用程序。以下是截图: 1) Worklight\server\conf\worklight.properties 2) mySQLAdap
几年前,我在 this tutorial 之后开始学习 Zend 框架。 .在那里,它显示映射器是使用 Zend\Db\Adapter\Adapter 创建的。类来获取数据库连接,这就是我使用数据库的
我正在学习 RecyclerView 并在 developer 中的站点 Adapter 类扩展 RecyclerView.Adapter 。实现显示: public class MyAdapter
查看文档:http://docs.spring.io/spring-integration/reference/html/ip.html#tcp-adapters我知道适配器仅用于单向通信。但是,这里
当我移动到另一个 fragment 时,我如何恢复分页适配器项状态?我试过下面的文章,但没有用。 https://medium.com/@florina.muntenescu private fun
我正在使用 capistrano 并收到此错误消息: Please install the pg adapter: `gem install activerecord-pg-adapter` (can
我正在尝试在本地主机上安装 Magento 2,当我想连接数据库时出现错误。 错误是: “Magento\Framework\DB\Adapter\Pdo\MysqlFactory”生成的源类“\Ma
我的 Rails 服务器通过正常的开发脚本运行良好,我计划使用 Netbeans for Rails。当我使用 Netbeans 启动我现有的项目并重新启动我的 Webrick 服务器时,它显示错误
运行 Ruby on Rails (RoR) 应用程序或使用 ActiveRecord 框架的 Ruby 代码,您会收到错误消息: Please install the postgresql adap
我在运行 Redmine2.3-stable 时遇到这个错误,随后无法成功安装 mysql2 适配器。 这是错误: Please install the mysql2 adapter: `ge
我是一名优秀的程序员,十分优秀!