本文整理汇总了Java中com.sun.xml.internal.bind.v2.runtime.output.Pcdata类的典型用法代码示例。如果您正苦于以下问题:Java Pcdata类的具体用法?Java Pcdata怎么用?Java Pcdata使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Pcdata类属于com.sun.xml.internal.bind.v2.runtime.output包,在下文中一共展示了Pcdata类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: leafElement
import com.sun.xml.internal.bind.v2.runtime.output.Pcdata; //导入依赖的package包/类
public void leafElement( Name tagName, Pcdata data, String fieldName ) throws SAXException, IOException, XMLStreamException {
if(seenRoot) {
textHasAlreadyPrinted = false;
nse = nse.push();
out.beginStartTag(tagName);
out.endStartTag();
if(data != null)
out.text(data,false);
out.endTag(tagName);
nse = nse.pop();
} else {
// root element has additional processing like xsi:schemaLocation,
// so we need to go the slow way
startElement(tagName,null);
endNamespaceDecls(null);
endAttributes();
out.text(data,false);
endElement();
}
}
示例2: leafElement
import com.sun.xml.internal.bind.v2.runtime.output.Pcdata; //导入依赖的package包/类
public void leafElement( Name tagName, Pcdata data, String fieldName ) throws SAXException, IOException, XMLStreamException {
if(seenRoot) {
textHasAlreadyPrinted = false;
nse = nse.push();
out.beginStartTag(tagName);
out.endStartTag();
out.text(data,false);
out.endTag(tagName);
nse = nse.pop();
} else {
// root element has additional processing like xsi:schemaLocation,
// so we need to go the slow way
startElement(tagName,null);
endNamespaceDecls(null);
endAttributes();
out.text(data,false);
endElement();
}
}
示例3: print
import com.sun.xml.internal.bind.v2.runtime.output.Pcdata; //导入依赖的package包/类
public abstract Pcdata print(T o) throws AccessorException;