gpt4 book ai didi

org.eclipse.pde.internal.core.XMLPrintHandler.wrapAttribute()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 18:34:40 27 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.wrapAttribute()方法的一些代码示例,展示了XMLPrintHandler.wrapAttribute()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLPrintHandler.wrapAttribute()方法的具体详情如下:
包路径:org.eclipse.pde.internal.core.XMLPrintHandler
类名称:XMLPrintHandler
方法名:wrapAttribute

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(

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com