You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2008/12/31 07:12:08 UTC
svn commit: r730316 -
/xerces/java/trunk/src/org/apache/xerces/stax/events/ElementImpl.java
Author: mrglavas
Date: Tue Dec 30 22:12:07 2008
New Revision: 730316
URL: http://svn.apache.org/viewvc?rev=730316&view=rev
Log:
Adding SVN properties.
Modified:
xerces/java/trunk/src/org/apache/xerces/stax/events/ElementImpl.java (contents, props changed)
Modified: xerces/java/trunk/src/org/apache/xerces/stax/events/ElementImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/stax/events/ElementImpl.java?rev=730316&r1=730315&r2=730316&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/stax/events/ElementImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/stax/events/ElementImpl.java Tue Dec 30 22:12:07 2008
@@ -1,109 +1,109 @@
-/*
- * 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.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: $
- */
-public 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 = new ArrayList();
-
- /**
- * Constructor.
- */
- ElementImpl(final QName name, final boolean isStartElement, final Location location) {
- super(isStartElement ? START_ELEMENT : END_ELEMENT, location);
- fName = name;
- }
-
- /**
- * @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());
- }
-
- public final void addNamespace(final Namespace namespace) {
- fNamespaces.add(namespace);
- }
-
- 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.");
- }
- }
-}
+/*
+ * 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.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$
+ */
+public 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 = new ArrayList();
+
+ /**
+ * Constructor.
+ */
+ ElementImpl(final QName name, final boolean isStartElement, final Location location) {
+ super(isStartElement ? START_ELEMENT : END_ELEMENT, location);
+ fName = name;
+ }
+
+ /**
+ * @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());
+ }
+
+ public final void addNamespace(final Namespace namespace) {
+ fNamespaces.add(namespace);
+ }
+
+ 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.");
+ }
+ }
+}
Propchange: xerces/java/trunk/src/org/apache/xerces/stax/events/ElementImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/trunk/src/org/apache/xerces/stax/events/ElementImpl.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org