类 GetXmlMethod

java.lang.Object
com.publiccms.common.base.BaseMethod
com.publiccms.views.method.tools.GetXmlMethod
所有已实现的接口:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

@Component public class GetXmlMethod extends BaseMethod
getXml 获取xml节点

参数列表

parameter list

パラメータリスト

  1. string:xml文本

返回结果

  • xml:xml模型

使用示例

usage example

使用例

${getXml('<xml><data>value</data></xml>').xml.data}

  • 字段详细资料

    • uninitialized

      private boolean uninitialized
  • 构造器详细资料

    • GetXmlMethod

      public GetXmlMethod()
  • 方法详细资料

    • execute

      public Object execute(List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException
      指定者:
      execute 在类中 BaseMethod
      抛出:
      freemarker.template.TemplateModelException
    • needAppToken

      public boolean needAppToken()
      指定者:
      needAppToken 在类中 BaseMethod
      返回:
      whether to need app token
    • httpEnabled

      public boolean httpEnabled()
      覆盖:
      httpEnabled 在类中 BaseMethod
      返回:
      whether to enable http
    • minParametersNumber

      public int minParametersNumber()
      指定者:
      minParametersNumber 在类中 BaseMethod
      返回:
      min parameters number