javax.faces.view.facelets.Tag.getLocalName()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(100)

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

Tag.getLocalName介绍

[英]Return the XML local name of the tag. For example, <my:tag /> would be "tag".
[中]返回标记的XML本地名称。例如,my:tag/将是“tag”。

代码示例

代码示例来源:origin: com.sun.faces/jsf-impl

private TagAttribute createElementName(Tag tag) {
  Location location = tag.getLocation();
  String ns = Namespace.p.uri;
  String myLocalName = Renderer.PASSTHROUGH_RENDERER_LOCALNAME_KEY;
  String qName = "p:" + myLocalName;
  String value = tag.getLocalName();
  return new TagAttributeImpl(location, ns, myLocalName, qName, value);
}

代码示例来源:origin: org.glassfish/javax.faces

private TagAttribute createElementName(Tag tag) {
  Location location = tag.getLocation();
  String ns = Namespace.p.uri;
  String myLocalName = Renderer.PASSTHROUGH_RENDERER_LOCALNAME_KEY;
  String qName = "p:" + myLocalName;
  String value = tag.getLocalName();
  return new TagAttributeImpl(location, ns, myLocalName, qName, value);
}

代码示例来源:origin: de.beyondjava/angularFaces-core

private Tag generateTagIfNecessary(Tag tag, TagAttributes modifiedAttributes) {
  if (modifiedAttributes != tag.getAttributes()) {
    if (tag.getLocalName().equals("div") && modifiedAttributes instanceof AFTagAttributes) {
      return generatePuiHtmlTag(tag, modifiedAttributes, "puiDiv");
    } else if (tag.getLocalName().equals("span") && modifiedAttributes instanceof AFTagAttributes) {
      return generatePuiHtmlTag(tag, modifiedAttributes, "puiSpan");
    } else
      return new Tag(tag.getLocation(), tag.getNamespace(), tag.getLocalName(), tag.getQName(), modifiedAttributes);
  }
  return null;
}

代码示例来源:origin: org.glassfish/jakarta.faces

private TagAttribute createElementName(Tag tag) {
  Location location = tag.getLocation();
  String ns = Namespace.p.uri;
  String myLocalName = Renderer.PASSTHROUGH_RENDERER_LOCALNAME_KEY;
  String qName = "p:" + myLocalName;
  String value = tag.getLocalName();
  return new TagAttributeImpl(location, ns, myLocalName, qName, value);
}

代码示例来源:origin: TheCoder4eu/BootsFaces-OSP

private TagAttribute createElementName(Tag tag) {
  Location location = tag.getLocation();
  String ns = Namespace.p.uri;
  String myLocalName = Renderer.PASSTHROUGH_RENDERER_LOCALNAME_KEY;
  String qName = "p:" + myLocalName;
  String value = tag.getLocalName();
  return TagAttributeUtilities.createTagAttribute(location, ns, myLocalName, qName, value);
}

代码示例来源:origin: net.bootsfaces/bootsfaces

private TagAttribute createElementName(Tag tag) {
  Location location = tag.getLocation();
  String ns = Namespace.p.uri;
  String myLocalName = Renderer.PASSTHROUGH_RENDERER_LOCALNAME_KEY;
  String qName = "p:" + myLocalName;
  String value = tag.getLocalName();
  return TagAttributeUtilities.createTagAttribute(location, ns, myLocalName, qName, value);
}

代码示例来源:origin: de.beyondjava/angularFaces-core

private TagAttribute createElementName(Tag tag) {
  Location location = tag.getLocation();
  String ns = Namespace.p.uri;
  String myLocalName = Renderer.PASSTHROUGH_RENDERER_LOCALNAME_KEY;
  String qName = "p:" + myLocalName;
  String value = tag.getLocalName();
  return TagAttributeUtilities.createTagAttribute(location, ns, myLocalName, qName, value);
}

代码示例来源:origin: eclipse-ee4j/mojarra

private TagAttribute createElementName(Tag tag) {
  Location location = tag.getLocation();
  String ns = Namespace.p.uri;
  String myLocalName = Renderer.PASSTHROUGH_RENDERER_LOCALNAME_KEY;
  String qName = "p:" + myLocalName;
  String value = tag.getLocalName();
  return new TagAttributeImpl(location, ns, myLocalName, qName, value);
}

代码示例来源:origin: de.beyondjava/angularFaces-core

private Tag generateTagIfNecessary(Tag tag, TagAttributes modifiedAttributes) {
  TagAttribute id = tag.getAttributes().get("", "id");
  if (null != id || modifiedAttributes != tag.getAttributes()) {
    if (tag.getLocalName().equals("div") && modifiedAttributes instanceof AFTagAttributes) {
      return generatePuiHtmlTag(tag, modifiedAttributes, "puiDiv");
    } else if (tag.getLocalName().equals("span") && modifiedAttributes instanceof AFTagAttributes) {
      return generatePuiHtmlTag(tag, modifiedAttributes, "puiSpan");
    } else
      return new Tag(tag.getLocation(), tag.getNamespace(), tag.getLocalName(), tag.getQName(),
          modifiedAttributes);
  }
  return null;
}

代码示例来源:origin: TheCoder4eu/BootsFaces-OSP

private Tag convertBootsFacesTag(Tag tag) {
    if (HTML_NAMESPACE.equals(tag.getNamespace())) {
      String tagname = tag.getLocalName();
      if (bootsfacesTags.containsKey(tagname)) {
        AFTagAttributes modifiedAttributes = new AFTagAttributes(tag.getAttributes().getAll());
        Tag t = new Tag(tag.getLocation(), BOOTSFACES_NAMESPACE, tag.getLocalName(), tag.getQName(),
            modifiedAttributes);
        return t;
      }
    }
    return tag;

  }
}

代码示例来源:origin: javax/javaee-web-api

/**
 * Constructor.
 *
 * @param orig the original tag.
 * @param attributes the tag attributes.
 */
public Tag(Tag orig, TagAttributes attributes) {
  this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
      .getQName(), attributes);
}

代码示例来源:origin: org.glassfish/javax.faces

/**
 * Constructor.
 *
 * @param orig the original tag.
 * @param attributes the tag attributes.
 */
public Tag(Tag orig, TagAttributes attributes) {
  this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
      .getQName(), attributes);
}

代码示例来源:origin: org.glassfish/jakarta.faces

/**
 * Constructor.
 *
 * @param orig the original tag.
 * @param attributes the tag attributes.
 */
public Tag(Tag orig, TagAttributes attributes) {
  this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
      .getQName(), attributes);
}

代码示例来源:origin: javax.faces/javax.faces-api

/**
 * Constructor.
 *
 * @param orig the original tag.
 * @param attributes the tag attributes.
 */
public Tag(Tag orig, TagAttributes attributes) {
  this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
      .getQName(), attributes);
}

代码示例来源:origin: com.sun.faces/jsf-api

public Tag(Tag orig, TagAttributes attributes) {
  this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
      .getQName(), attributes);
}

代码示例来源:origin: de.beyondjava/angularFaces-core

private Tag convertToACBodyTag(Tag tag, TagAttributes attributeList) {
  Tag t = new Tag(tag.getLocation(), ANGULAR_FACES_CORE_NAMESPACE, tag.getLocalName(), tag.getQName(),
      attributeList);
  return t;
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

public Tag(Tag orig, TagAttributes attributes)
{
  this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig.getQName(), attributes);
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
 * Constructor.
 *
 * @param orig the original tag.
 * @param attributes the tag attributes.
 */
public Tag(Tag orig, TagAttributes attributes) {
  this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
      .getQName(), attributes);
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * Constructor.
 *
 * @param orig the original tag.
 * @param attributes the tag attributes.
 */
public Tag(Tag orig, TagAttributes attributes) {
  this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
      .getQName(), attributes);
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * Constructor.
 *
 * @param orig the original tag.
 * @param attributes the tag attributes.
 */
public Tag(Tag orig, TagAttributes attributes) {
  this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
      .getQName(), attributes);
}

相关文章