本文整理了Java中org.xml.sax.helpers.XMLFilterImpl.endElement()
方法的一些代码示例,展示了XMLFilterImpl.endElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLFilterImpl.endElement()
方法的具体详情如下:
包路径:org.xml.sax.helpers.XMLFilterImpl
类名称:XMLFilterImpl
方法名:endElement
[英]Filter an end element event.
[中]筛选结束元素事件。
代码示例来源:origin: jenkinsci/jenkins
@Override
public void endElement(String uri, String localName, String qName) throws SAXException {
elements.pop();
tagNames.pop();
super.endElement(uri, localName, qName);
}
代码示例来源:origin: com.sun.xml.bind/jaxb-impl
startTagIsClosed = true;
super.endElement(uri, localName, qName);
代码示例来源:origin: igniterealtime/Openfire
@Override
public void endElement(String namespaceURI, String localName, String qName) throws SAXException {
try {
charactersAdded = false;
--indentLevel;
if ( lastOutputNodeType == Node.ELEMENT_NODE ) {
writePrintln();
indent();
}
// XXXX: need to determine this using a stack and checking for
// content / children
boolean hadContent = true;
if ( hadContent ) {
writeClose(qName);
}
else {
writeEmptyElementClose(qName);
}
lastOutputNodeType = Node.ELEMENT_NODE;
super.endElement( namespaceURI, localName, qName );
}
catch (IOException e) {
handleException(e);
}
}
代码示例来源:origin: mulesoft/mule
@Override
public void endElement(String arg0, String arg1, String arg2) throws SAXException {
super.endElement(this.usedNamespaceUri, arg1, arg2);
}
代码示例来源:origin: jamesagnew/hapi-fhir
@Override
public void endElement(String uri, String localName, String qName)
throws SAXException {
// Mutation event fired by the adding of element end,
// and so lastAddedElement will be set.
super.endElement(uri, localName, qName);
if (locatorStack.size() > 0) {
Locator startLocator = locatorStack.pop();
XmlLocationData location = new XmlLocationData(
startLocator.getSystemId(),
startLocator.getLineNumber(),
startLocator.getColumnNumber(),
locator.getLineNumber(),
locator.getColumnNumber());
Element lastAddedElement = elementStack.pop();
lastAddedElement.setUserData(
XmlLocationData.LOCATION_DATA_KEY, location,
dataHandler);
}
}
代码示例来源:origin: jamesagnew/hapi-fhir
@Override
public void endElement(String uri, String localName, String qName)
throws SAXException {
// Mutation event fired by the adding of element end,
// and so lastAddedElement will be set.
super.endElement(uri, localName, qName);
if (locatorStack.size() > 0) {
Locator startLocator = locatorStack.pop();
XmlLocationData location = new XmlLocationData(
startLocator.getSystemId(),
startLocator.getLineNumber(),
startLocator.getColumnNumber(),
locator.getLineNumber(),
locator.getColumnNumber());
Element lastAddedElement = elementStack.pop();
lastAddedElement.setUserData(
XmlLocationData.LOCATION_DATA_KEY, location,
dataHandler);
}
}
代码示例来源:origin: jamesagnew/hapi-fhir
@Override
public void endElement(String uri, String localName, String qName)
throws SAXException {
// Mutation event fired by the adding of element end,
// and so lastAddedElement will be set.
super.endElement(uri, localName, qName);
if (locatorStack.size() > 0) {
Locator startLocator = locatorStack.pop();
XmlLocationData location = new XmlLocationData(
startLocator.getSystemId(),
startLocator.getLineNumber(),
startLocator.getColumnNumber(),
locator.getLineNumber(),
locator.getColumnNumber());
Element lastAddedElement = elementStack.pop();
lastAddedElement.setUserData(
XmlLocationData.LOCATION_DATA_KEY, location,
dataHandler);
}
}
代码示例来源:origin: org.glassfish.jaxb/jaxb-runtime
startTagIsClosed = true;
super.endElement(uri, localName, qName);
代码示例来源:origin: org.dom4j/dom4j
public void endElement(String namespaceURI, String localName, String qName)
throws SAXException {
try {
charsAdded = false;
--indentLevel;
if (lastElementClosed) {
writePrintln();
indent();
}
// XXXX: need to determine this using a stack and checking for
// content / children
boolean hadContent = true;
if (hadContent) {
writeClose(qName);
} else {
writeEmptyElementClose(qName);
}
lastOutputNodeType = Node.ELEMENT_NODE;
lastElementClosed = true;
super.endElement(namespaceURI, localName, qName);
} catch (IOException e) {
handleException(e);
}
}
代码示例来源:origin: info.magnolia/magnolia-core
/**
* @see org.xml.sax.helpers.XMLFilterImpl#endElement(String, String, String)
*/
@Override
public void endElement(String uri, String localName, String qName) throws SAXException {
if (inFilterElement > 0) {
inFilterElement--;
return;
}
super.endElement(uri, localName, qName);
}
代码示例来源:origin: info.magnolia/magnolia-core
/**
* @see org.xml.sax.helpers.XMLFilterImpl#endElement(String, String, String)
*/
@Override
public void endElement(String uri, String localName, String qName) throws SAXException {
if (inVersionElement > 0) {
inVersionElement--;
return;
}
super.endElement(uri, localName, qName);
}
代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc
public void endElement(String namespaceURI, String localName, String qName)
throws SAXException {
super.endElement(namespaceURI, localName, qName);
elementNames.pop();
}
代码示例来源:origin: net.sf.mpxj/mpxj
@Override public void endElement(String uri, String localName, String qName) throws SAXException
{
String namespace = uri.isEmpty() ? NAMESPACE : uri;
super.endElement(namespace, localName, qName);
}
代码示例来源:origin: org.apache.tomee/openejb-jee
@Override
public void endElement(final String uri, final String localName, final String qName) throws SAXException {
if (uri != null && (uri.startsWith("http://jboss.org") || uri.startsWith("urn:java:"))) { // ignore it
ignore = false;
} else if (!ignore) {
super.endElement("http://java.sun.com/xml/ns/javaee", localName, qName);
}
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override
public void endElement(String uri, String localName, String qName) throws SAXException {
elements.pop();
tagNames.pop();
super.endElement(uri, localName, qName);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc
public void endElement(String namespaceURI, String localName, String qName) throws SAXException {
super.endElement(namespaceURI, localName, qName);
if( cutDepth!=0 ) {
cutDepth--;
if( cutDepth == 1 ) {
// pruning completed. restore the user handler
super.setContentHandler(next);
cutDepth=0;
}
}
}
}
代码示例来源:origin: org.jvnet.hyperjaxb2/hyperjaxb2-core
public void endElement(String uri, String localName, String qName) throws SAXException {
depth--;
if (depth != 0) {
super.endElement(uri, localName, qName);
}
else {
unmarshallingContext.popAttributes();
}
}
};
代码示例来源:origin: com.helger/ph-isorelax
@Override
public void endElement (final String uri, final String localName, final String qName) throws SAXException
{
core.endElement (uri, localName, qName);
super.endElement (uri, localName, qName);
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
@Override
public void endElement(String uri, String localName, String qName) throws SAXException {
if (inAddress) {
super.characters(newAddress.toCharArray(),0,newAddress.length());
}
inAddress = false;
super.endElement(uri, localName, qName);
}
};
代码示例来源:origin: in.jlibs/jlibs-xml
@Override
public void endElement(String uri, String localName, String qName) throws SAXException{
uri = translate(uri, old2new);
if(newNSSupport!=null)
qName = newNSSupport.toQName(uri, localName);
super.endElement(uri, localName, qName);
if(oldNSSupport!=null){
oldNSSupport.endElement();
assert newNSSupport!=null;
newNSSupport.endElement();
}
}
内容来源于网络,如有侵权,请联系作者删除!