本文整理了Java中javax.faces.view.facelets.Tag.getQName()
方法的一些代码示例,展示了Tag.getQName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.getQName()
方法的具体详情如下:
包路径:javax.faces.view.facelets.Tag
类名称:Tag
方法名:getQName
[英]Return the XML qualified name for this tag. For example, <my:tag /> would be "my:tag".
[中]返回此标记的XML限定名称。例如,my:tag/将是“my:tag”。
代码示例来源:origin: com.sun.faces/jsf-impl
private String getPrefixFromTag(Tag t) {
String result = t.getQName();
if (null != result) {
int i;
if (-1 != (i = result.indexOf(":"))) {
result = result.substring(0, i);
}
}
return result;
}
代码示例来源:origin: org.glassfish/javax.faces
private String getPrefixFromTag(Tag t) {
String result = t.getQName();
if (null != result) {
int i;
if (-1 != (i = result.indexOf(":"))) {
result = result.substring(0, i);
}
}
return result;
}
代码示例来源:origin: org.glassfish/jakarta.faces
private String getPrefixFromTag(Tag t) {
String result = t.getQName();
if (null != result) {
int i;
if (-1 != (i = result.indexOf(":"))) {
result = result.substring(0, i);
}
}
return result;
}
代码示例来源:origin: org.glassfish/jakarta.faces
@Override
public void applyMetadata(FaceletContext ctx, Object instance) {
UIComponent c = (UIComponent) instance;
Map localAttrs = c.getAttributes();
localAttrs.put("alias.element", tag.getQName());
if (this.attrs.length > 0) {
localAttrs.put("alias.attributes", this.attrs);
}
}
代码示例来源:origin: org.apache.myfaces.core.internal/myfaces-shaded-impl
public void applyMetadata(FaceletContext ctx, Object instance)
{
UIComponent component = (UIComponent) instance;
Map<String, Object> attrs = component.getAttributes();
attrs.put("alias.element", tag.getQName());
if (_attrs.length > 0)
{
attrs.put("alias.attributes", _attrs);
}
}
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl
public void applyMetadata(FaceletContext ctx, Object instance)
{
UIComponent component = (UIComponent) instance;
Map<String, Object> attrs = component.getAttributes();
attrs.put("alias.element", tag.getQName());
if (_attrs.length > 0)
{
attrs.put("alias.attributes", _attrs);
}
}
}
代码示例来源:origin: com.sun.faces/jsf-impl
public void endTag() {
Tag tag = (Tag) this.tags.pop();
this.addInstruction(new EndElementInstruction(tag.getQName()));
if (this.startTagOpen) {
this.buffer.append("/>");
this.startTagOpen = false;
} else {
this.buffer.append("</").append(tag.getQName()).append('>');
}
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
@Override
public void applyMetadata(FaceletContext ctx, Object instance)
{
UIComponent component = (UIComponent) instance;
Map<String, Object> attrs = component.getAttributes();
attrs.put("alias.element", tag.getQName());
if (_attrs.length > 0)
{
attrs.put("alias.attributes", _attrs);
}
}
}
代码示例来源:origin: com.sun.faces/jsf-impl
@Override
public void applyMetadata(FaceletContext ctx, Object instance) {
UIComponent c = (UIComponent) instance;
Map localAttrs = c.getAttributes();
localAttrs.put("alias.element", tag.getQName());
if (this.attrs.length > 0) {
localAttrs.put("alias.attributes", this.attrs);
}
}
代码示例来源:origin: org.glassfish/javax.faces
public void endTag() {
Tag tag = (Tag) this.tags.pop();
this.addInstruction(new EndElementInstruction(tag.getQName()));
if (this.startTagOpen) {
this.buffer.append("/>");
this.startTagOpen = false;
} else {
this.buffer.append("</").append(tag.getQName()).append('>');
}
}
代码示例来源:origin: org.glassfish/javax.faces
@Override
public void applyMetadata(FaceletContext ctx, Object instance) {
UIComponent c = (UIComponent) instance;
Map localAttrs = c.getAttributes();
localAttrs.put("alias.element", tag.getQName());
if (this.attrs.length > 0) {
localAttrs.put("alias.attributes", this.attrs);
}
}
代码示例来源:origin: org.glassfish/jakarta.faces
public void endTag() {
Tag tag = (Tag) this.tags.pop();
this.addInstruction(new EndElementInstruction(tag.getQName()));
if (this.startTagOpen) {
this.buffer.append("/>");
this.startTagOpen = false;
} else {
this.buffer.append("</").append(tag.getQName()).append('>');
}
}
代码示例来源: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.apache.myfaces.core/myfaces-api
private static String print(Tag tag, TagAttribute attr)
{
return tag.getLocation() + " <" + tag.getQName() + " " + attr.getQName() + "=\"" + attr.getValue() + "\">";
}
}
代码示例来源:origin: javax/javaee-web-api
private static String print(Tag tag, TagAttribute attr) {
return tag.getLocation() + " <" + tag.getQName() + " " + attr.getQName()
+ "=\"" + attr.getValue() + "\">";
}
代码示例来源: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: com.sun.faces/jsf-api
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: 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: 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;
}
内容来源于网络,如有侵权,请联系作者删除!