Exemplo n.º 1
0
 /**
  * Removes a specific <tt>UserCapsNodeListener</tt> from the list of
  * <tt>UserCapsNodeListener</tt>s interested in events notifying about changes in the list of user
  * caps nodes of this <tt>EntityCapsManager</tt>.
  *
  * @param listener the <tt>UserCapsNodeListener</tt> which is no longer interested in events
  *     notifying about changes in the list of user caps nodes of this <tt>EntityCapsManager</tt>
  */
 public void removeUserCapsNodeListener(UserCapsNodeListener listener) {
   if (listener != null) {
     synchronized (userCapsNodeListeners) {
       userCapsNodeListeners.remove(listener);
     }
   }
 }
 /**
  * Removes a <tt>SourcePacketExtension</tt> from the list of sources of this channel.
  *
  * @param source the <tt>SourcePacketExtension</tt> to remove from the list of sources of this
  *     channel
  * @return <tt>true</tt> if the list of sources of this channel changed as a result of the
  *     execution of the method; otherwise, <tt>false</tt>
  */
 public synchronized boolean removeSource(SourcePacketExtension source) {
   return sources.remove(source);
 }
 /**
  * Removes a <tt>payload-type</tt> element defined by XEP-0167: Jingle RTP Sessions from this
  * <tt>channel</tt>.
  *
  * @param payloadType the <tt>payload-type</tt> element to be removed from this <tt>channel</tt>
  * @return <tt>true</tt> if the list of <tt>payload-type</tt> elements associated with this
  *     <tt>channel</tt> has been modified as part of the method call; otherwise, <tt>false</tt>
  */
 public boolean removePayloadType(PayloadTypePacketExtension payloadType) {
   return payloadTypes.remove(payloadType);
 }
 /**
  * Removes a specific {@link Content} instance from the list of <tt>Content</tt> instances
  * included into this <tt>conference</tt> IQ.
  *
  * @param content the <tt>Content</tt> instance to be removed from the list of <tt>Content</tt>
  *     instances included into this <tt>conference</tt> IQ
  * @return <tt>true</tt> if the list of <tt>Content</tt> instances included into this
  *     <tt>conference</tt> IQ has been modified as a result of the method call; otherwise,
  *     <tt>false</tt>
  */
 public boolean removeContent(Content content) {
   return contents.remove(content);
 }
 /**
  * Removes a specific <tt>Channel</tt> from the list of <tt>Channel</tt>s included into this
  * <tt>Content</tt>.
  *
  * @param channel the <tt>Channel</tt> to be excluded from this <tt>Content</tt>
  * @return <tt>true</tt> if the list of <tt>Channel</tt>s included into this <tt>Content</tt>
  *     was modified as a result of the execution of the method; otherwise, <tt>false</tt>
  */
 public boolean removeChannel(Channel channel) {
   return channels.remove(channel);
 }