You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2005/08/08 04:44:10 UTC
svn commit: r230732 [2/2] - in /webservices/axis/trunk/java:
modules/common/src/org/apache/axis2/i18n/
modules/core/src/org/apache/axis2/clientapi/
modules/core/src/org/apache/axis2/context/
modules/core/src/org/apache/axis2/deployment/ modules/core/sr...
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java?rev=230732&r1=230731&r2=230732&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java Sun Aug 7 19:43:27 2005
@@ -271,6 +271,15 @@
}
/**
+ * Returns a filtered list of children - just the elements.
+ *
+ * @return an iterator over the child elements
+ */
+ public Iterator getChildElements() {
+ return new OMChildrenIterator(getFirstChild());
+ }
+
+ /**
* THis will create a namespace in the current element scope
*
* @param uri
@@ -397,9 +406,14 @@
return attributes.values().iterator();
}
- public Iterator getAttributes(QName qname) {
- //TODO: would there be multiple attributes with the same QName
- return null;
+ /**
+ * Return a named attribute if present
+ *
+ * @param qname the qualified name to search for
+ * @return an OMAttribute with the given name if found, or null
+ */
+ public OMAttribute getAttribute(QName qname) {
+ return (OMAttribute)attributes.get(qname);
}
/**
Modified: webservices/axis/trunk/java/xdocs/mail-transport.html
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/xdocs/mail-transport.html?rev=230732&r1=230731&r2=230732&view=diff
==============================================================================
--- webservices/axis/trunk/java/xdocs/mail-transport.html (original)
+++ webservices/axis/trunk/java/xdocs/mail-transport.html Sun Aug 7 19:43:27 2005
@@ -94,8 +94,8 @@
.createClientConfigurationContext();
ServiceDescription service = new ServiceDescription(serviceName);
OperationDescription operation = new OperationDescription(operationName);
- operation.setMessageReciever(new MessageReceiver() {
- public void recieve(MessageContext messgeCtx) throws AxisFault {
+ operation.setMessageReceiver(new MessageReceiver() {
+ public void receive(MessageContext messgeCtx) throws AxisFault {
envelope = messgeCtx.getEnvelope();
}
});