- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.wrapAttribute()
方法的一些代码示例,展示了XMLPrintHandler.wrapAttribute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLPrintHandler.wrapAttribute()
方法的具体详情如下:
包路径:org.eclipse.pde.internal.core.XMLPrintHandler
类名称:XMLPrintHandler
方法名:wrapAttribute
暂无
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
protected void writeAttributes(StringBuffer buffer) {
// Print name attribute
if ((fFieldName != null) &&
(fFieldName.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_NAME,
PDETextHelper.translateWriteText(
fFieldName.trim(), DEFAULT_SUBSTITUTE_CHARS)));
}
}
代码示例来源:origin: org.eclipse.pde.ua/core
protected void writeAttributes(StringBuffer buffer) {
// Print task attribute
if ((fFieldTask != null) && (fFieldTask.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_TASK,
PDETextHelper.translateWriteText(fFieldTask.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
}
代码示例来源:origin: org.eclipse.pde.ua/core
protected void writeAttributes(StringBuffer buffer) {
// Print name attribute
if ((fFieldName != null) && (fFieldName.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_NAME,
PDETextHelper.translateWriteText(fFieldName.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
}
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
protected void writeAttributes(StringBuffer buffer) {
// Print task attribute
if ((fFieldTask != null) &&
(fFieldTask.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_TASK,
PDETextHelper.translateWriteText(
fFieldTask.trim(), DEFAULT_SUBSTITUTE_CHARS)));
}
}
代码示例来源:origin: org.eclipse.pde.ua/core
protected void writeAttributes(StringBuffer buffer) {
// Print name attribute
if ((fFieldName != null) && (fFieldName.length() > 0)) {
// No trim required
// No encode required
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_NAME,
fFieldName));
}
// Print value attribute
if ((fFieldValue != null) && (fFieldValue.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_VALUE,
PDETextHelper.translateWriteText(fFieldValue.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ua.core
@Override
protected void writeAttributes(StringBuilder buffer) {
// Print name attribute
if ((fFieldName != null) && (fFieldName.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_NAME,
PDETextHelper.translateWriteText(fFieldName.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ua.core
@Override
protected void writeAttributes(StringBuilder buffer) {
// Print task attribute
if ((fFieldTask != null) && (fFieldTask.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_TASK,
PDETextHelper.translateWriteText(fFieldTask.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ua.core
@Override
protected void writeAttributes(StringBuilder buffer) {
// Print name attribute
if ((fFieldName != null) && (fFieldName.length() > 0)) {
// No trim required
// No encode required
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_NAME,
fFieldName));
}
// Print value attribute
if ((fFieldValue != null) && (fFieldValue.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_VALUE,
PDETextHelper.translateWriteText(fFieldValue.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
}
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
protected void writeAttributes(StringBuffer buffer) {
// Print name attribute
if ((fFieldName != null) &&
(fFieldName.length() > 0)) {
// No trim required
// No encode required
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_NAME, fFieldName));
}
// Print value attribute
if ((fFieldValue != null) &&
(fFieldValue.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_VALUE,
PDETextHelper.translateWriteText(
fFieldValue.trim(), DEFAULT_SUBSTITUTE_CHARS)));
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ua.core
@Override
protected void writeAttributes(StringBuilder buffer) {
// Print id attribute
if ((fFieldId != null) && (fFieldId.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_ID,
PDETextHelper.translateWriteText(fFieldId.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
// Print kind attribute
if ((fFieldKind != null) && (fFieldKind.length() > 0)) {
// No trim required
// No encode required
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_KIND,
fFieldKind));
}
// Print name attribute
if ((fFieldName != null) && (fFieldName.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_NAME,
PDETextHelper.translateWriteText(fFieldName.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
// Print skip attribute
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_SKIP,
Boolean.valueOf(fFieldSkip).toString()));
}
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_ID,
PDETextHelper.translateWriteText(
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_KIND, fFieldKind));
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_NAME,
PDETextHelper.translateWriteText(
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_SKIP, new Boolean(fFieldSkip).toString()));
代码示例来源:origin: org.eclipse.pde.ua/core
protected void writeAttributes(StringBuffer buffer) {
// Print id attribute
if ((fFieldId != null) && (fFieldId.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_ID,
PDETextHelper.translateWriteText(fFieldId.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
// Print kind attribute
if ((fFieldKind != null) && (fFieldKind.length() > 0)) {
// No trim required
// No encode required
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_KIND,
fFieldKind));
}
// Print name attribute
if ((fFieldName != null) && (fFieldName.length() > 0)) {
// Trim leading and trailing whitespace
// Encode characters
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_NAME,
PDETextHelper.translateWriteText(fFieldName.trim(),
DEFAULT_SUBSTITUTE_CHARS)));
}
// Print skip attribute
buffer.append(XMLPrintHandler.wrapAttribute(ATTRIBUTE_SKIP,
new Boolean(fFieldSkip).toString()));
}
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
(fSerialization.length() > 0)) {
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_SERIALIZATION, fSerialization));
(fReturns.length() > 0)) {
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_RETURNS, fReturns));
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_CONFIRM, new Boolean(fConfirm).toString()));
(fWhen.length() > 0)) {
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_WHEN, fWhen));
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_TRANSLATE, fTranslate));
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
(fClazz.length() > 0)) {
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_CLASS, fClazz));
(fPluginId.length() > 0)) {
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_PLUGINID, fPluginId));
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_CONFIRM, new Boolean(fConfirm).toString()));
(fWhen.length() > 0)) {
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_WHEN, fWhen));
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_TRANSLATE, fTranslate));
buffer.append(XMLPrintHandler.wrapAttribute(
parameter, value));
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_LABEL,
PDETextHelper.translateWriteText(
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_SKIP, new Boolean(fSkip).toString()));
(fWhen.length() > 0)) {
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_WHEN, fWhen));
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
public void write(String indent, PrintWriter writer) {
StringBuffer buffer = new StringBuffer();
String newIndent = indent + XMLPrintHandler.XML_INDENT;
try {
// Print repeated-subitem element
buffer.append(ELEMENT_REPEATED_SUBITEM);
// Print values attribute
if ((fValues != null) &&
(fValues.length() > 0)) {
// Write as is. Do not translate
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_VALUES, fValues));
}
// Start element
XMLPrintHandler.printBeginElement(writer, buffer.toString(),
indent, false);
// Print subitem
if (fSubItem != null) {
fSubItem.write(newIndent, writer);
}
// End element
XMLPrintHandler.printEndElement(writer, ELEMENT_REPEATED_SUBITEM, indent);
} catch (IOException e) {
// Suppress
//e.printStackTrace();
}
}
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
(fCondition.length() > 0)) {
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_CONDITION, fCondition));
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_CONDITION, fCondition));
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_CONTEXTID,
PDETextHelper.translateWriteText(
} else if ((fHref != null) &&
(fHref.length() > 0)) {
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_HREF,
PDETextHelper.translateWriteText(
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
buffer.append(XMLPrintHandler.wrapAttribute(
ATTRIBUTE_TITLE,
PDETextHelper.translateWriteText(
本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.encode()方法的一些代码示例,展示了XMLPrintHandler.encode(
本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.wrapAttributeForPrint()方法的一些代码示例,展示了XMLPrint
本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.printNode()方法的一些代码示例,展示了XMLPrintHandler.prin
本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.printBeginElement()方法的一些代码示例,展示了XMLPrintHand
本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.printHead()方法的一些代码示例,展示了XMLPrintHandler.prin
本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.printEndElement()方法的一些代码示例,展示了XMLPrintHandle
本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.writeFile()方法的一些代码示例,展示了XMLPrintHandler.writ
本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.wrapAttribute()方法的一些代码示例,展示了XMLPrintHandler.
我是一名优秀的程序员,十分优秀!