You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2016/01/21 21:56:42 UTC
svn commit: r1726095 - in
/webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder:
StAXBuilder.java StAXOMBuilder.java
Author: veithen
Date: Thu Jan 21 20:56:42 2016
New Revision: 1726095
URL: http://svn.apache.org/viewvc?rev=1726095&view=rev
Log:
Remove some unnecessary delegate methods from StAXBuilder.
Modified:
webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java
webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java
Modified: webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java?rev=1726095&r1=1726094&r2=1726095&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java (original)
+++ webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java Thu Jan 21 20:56:42 2016
@@ -393,50 +393,6 @@ public abstract class StAXBuilder implem
}
/**
- * Method getNamespaceCount.
- *
- * @return Returns int.
- * @throws OMException
- */
- public int getNamespaceCount() throws OMException {
- try {
- return parser.getNamespaceCount();
- } catch (Exception e) {
- throw new OMException(e);
- }
- }
-
- /**
- * Method getNamespacePrefix.
- *
- * @param index
- * @return Returns String.
- * @throws OMException
- */
- public String getNamespacePrefix(int index) throws OMException {
- try {
- return parser.getNamespacePrefix(index);
- } catch (Exception e) {
- throw new OMException(e);
- }
- }
-
- /**
- * Method getNamespaceUri.
- *
- * @param index
- * @return Returns String.
- * @throws OMException
- */
- public String getNamespaceUri(int index) throws OMException {
- try {
- return parser.getNamespaceURI(index);
- } catch (Exception e) {
- throw new OMException(e);
- }
- }
-
- /**
* Method setCache.
*
* @param b
@@ -477,49 +433,6 @@ public abstract class StAXBuilder implem
}
/**
- * Method getAttributeCount.
- *
- * @return Returns int.
- * @throws OMException
- */
- public int getAttributeCount() throws OMException {
- return parser.getAttributeCount();
- }
-
- /**
- * Method getAttributeNamespace.
- *
- * @param arg
- * @return Returns String.
- * @throws OMException
- */
- public String getAttributeNamespace(int arg) throws OMException {
- return parser.getAttributeNamespace(arg);
- }
-
- /**
- * Method getAttributeName.
- *
- * @param arg
- * @return Returns String.
- * @throws OMException
- */
- public String getAttributeName(int arg) throws OMException {
- return parser.getAttributeNamespace(arg);
- }
-
- /**
- * Method getAttributePrefix.
- *
- * @param arg
- * @return Returns String.
- * @throws OMException
- */
- public String getAttributePrefix(int arg) throws OMException {
- return parser.getAttributeNamespace(arg);
- }
-
- /**
* Get the underlying {@link XMLStreamReader} used by this builder. Note that for this type of
* builder, accessing the underlying parser implies that can no longer be used, and any attempt
* to call {@link #next()} will result in an exception.
Modified: webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java?rev=1726095&r1=1726094&r2=1726095&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java (original)
+++ webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java Thu Jan 21 20:56:42 2016
@@ -718,11 +718,7 @@ public class StAXOMBuilder extends StAXB
* This state can only be reached by a call to {@link #lookahead()}, and the
* current token is always a {@link XMLStreamConstants#START_ELEMENT START_ELEMENT}.
* The information related to that element can be obtained by calls to
- * {@link #getName()}, {@link #getNamespace()}, {@link #getPrefix()},
- * {@link #getAttributeCount()}, {@link #getAttributeName(int)},
- * {@link #getAttributeNamespace(int)}, {@link #getAttributePrefix(int)},
- * {@link #getNamespaceCount()}, {@link #getNamespacePrefix(int)} and
- * {@link #getNamespaceUri(int)}.
+ * {@link #getName()}, {@link #getNamespace()} and {@link #getPrefix()}.
* <p>
* A return value of <code>false</code> indicates that the node corresponding to the
* current token hold by the parser has already been created.