Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Java Source Code for Xerces Java 2.11.2
Where Can I see Java Source Code files for Xerces Java 2.11.2?
✍: FYIcenter
Here are Java Source Code files for Xerces Java 2.11.2:
⏎ org/apache/xerces/stax/events/ElementImpl.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.xerces.stax.events;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.stream.Location;
import javax.xml.stream.events.Namespace;
/**
* @xerces.internal
*
* @author Lucian Holland
* @author Michael Glavassevich, IBM
*
* @version $Id: ElementImpl.java 956312 2010-06-20 00:47:28Z mrglavas $
*/
abstract class ElementImpl extends XMLEventImpl {
/**
* The qualified name of the element that is being closed.
*/
private final QName fName;
/**
* Namespaces declared in the current scope.
*/
private final List fNamespaces;
/**
* Constructor.
*/
ElementImpl(final QName name, final boolean isStartElement, Iterator namespaces, final Location location) {
super(isStartElement ? START_ELEMENT : END_ELEMENT, location);
fName = name;
if (namespaces != null && namespaces.hasNext()) {
fNamespaces = new ArrayList();
do {
Namespace ns = (Namespace) namespaces.next();
fNamespaces.add(ns);
}
while (namespaces.hasNext());
}
else {
fNamespaces = Collections.EMPTY_LIST;
}
}
/**
* @see javax.xml.stream.events.StartElement#getName()
* @see javax.xml.stream.events.EndElement#getName()
*/
public final QName getName() {
return fName;
}
/**
* @see javax.xml.stream.events.StartElement#getNamespaces()
* @see javax.xml.stream.events.EndElement#getNamespaces()
*/
public final Iterator getNamespaces() {
return createImmutableIterator(fNamespaces.iterator());
}
static Iterator createImmutableIterator(Iterator iter) {
return new NoRemoveIterator(iter);
}
private static final class NoRemoveIterator implements Iterator {
private final Iterator fWrapped;
public NoRemoveIterator(Iterator wrapped) {
fWrapped = wrapped;
}
/**
* @see java.util.Iterator#hasNext()
*/
public boolean hasNext() {
return fWrapped.hasNext();
}
/**
* @see java.util.Iterator#next()
*/
public Object next() {
return fWrapped.next();
}
/**
* @see java.util.Iterator#remove()
*/
public void remove() {
throw new UnsupportedOperationException("Attributes iterator is read-only.");
}
}
}
⏎ org/apache/xerces/stax/events/ElementImpl.java
Or download all of them as a single archive file:
File name: Xerces-J.2.12.2-src.zip File size: 2128351 bytes Release date: 2022-01-21 Download
⇒ Donwload Xerces-J-bin.2.11.0.zip
⇐ What Is in Xerces-J-bin.2.12.2.zip
2016-09-15, ≈256🔥, 1💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
JDK 11 jdk.jcmd.jmod is the JMOD file for JDK 11 JCmd tool, which can be invoked by the "jcmd" comma...
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module. JDK 11 Management module ...
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...