If you think the Android project smsgateway-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*
*/*www.java2s.com*/
* ((e)) emite: A pure gwt (Google Web Toolkit) xmpp (jabber) library
*
* (c) 2008-2009 The emite development team (see CREDITS for details)
* This file is part of emite.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/package com.calclab.emite.core.client.packet;
import java.util.HashMap;
import java.util.List;
publicclass DelegatedPacket implements IPacket {
privatefinal IPacket delegate;
public DelegatedPacket(final IPacket delegate) {
this.delegate = delegate;
}
publicfinal IPacket addChild(final String nodeName, final String xmlns) {
return delegate.addChild(nodeName, xmlns);
}
publicfinal String getAttribute(final String name) {
return delegate.getAttribute(name);
}
public HashMap<String, String> getAttributes() {
return delegate.getAttributes();
}
public List<? extends IPacket> getChildren() {
return delegate.getChildren();
}
public List<? extends IPacket> getChildren(final PacketMatcher filter) {
return delegate.getChildren(filter);
}
public List<? extends IPacket> getChildren(final String name) {
return delegate.getChildren(name);
}
publicint getChildrenCount() {
return delegate.getChildrenCount();
}
public IPacket getFirstChild(final PacketMatcher filter) {
return delegate.getFirstChild(filter);
}
publicfinal IPacket getFirstChild(final String childName) {
return delegate.getFirstChild(childName);
}
publicfinal String getName() {
return delegate.getName();
}
publicfinal String getText() {
return delegate.getText();
}
publicboolean hasAttribute(final String name) {
return delegate.hasAttribute(name);
}
publicboolean hasAttribute(final String name, final String value) {
return delegate.hasAttribute(name, value);
}
publicboolean hasChild(final String name) {
return delegate.hasChild(name);
}
publicboolean removeChild(final IPacket child) {
return delegate.removeChild(child);
}
publicfinalvoid setAttribute(final String name, final String value) {
delegate.setAttribute(name, value);
}
publicfinalvoid setText(final String text) {
delegate.setText(text);
}
@Override
public String toString() {
return delegate.toString();
}
public IPacket With(final String name, final String value) {
delegate.With(name, value);
returnthis;
}
}