Java 类org.jivesoftware.smackx.pubsub.PubSubElementType 实例源码

项目:EIM    文件:NodeUtils.java   
/** 
 * Get a {@link ConfigureForm} from a packet.
 * 
 * @param packet
 * @param elem
 * @return The configuration form
 */
public static ConfigureForm getFormFromPacket(Packet packet, PubSubElementType elem)
{
    FormNode config = (FormNode)packet.getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
    Form formReply = config.getForm();
    return new ConfigureForm(formReply);

}
项目:androidPN-client.    文件:NodeUtils.java   
/** 
 * Get a {@link ConfigureForm} from a packet.
 * 
 * @param packet
 * @param elem
 * @return The configuration form
 */
public static ConfigureForm getFormFromPacket(Packet packet, PubSubElementType elem)
{
    FormNode config = (FormNode)packet.getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
    Form formReply = config.getForm();
    return new ConfigureForm(formReply);

}
项目:xmppsupport_v2    文件:SimpleNodeProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement,
        String currentNamespace, Map<String, String> attributeMap,
        List<? extends PacketExtension> content) {
    return new NodeExtension(PubSubElementType.valueOfFromElemName(
            currentElement, currentNamespace), attributeMap.get("node"));
}
项目:xmppsupport_v2    文件:NodeUtils.java   
/**
 * Get a {@link ConfigureForm} from a packet.
 * 
 * @param packet
 * @param elem
 * @return The configuration form
 */
public static ConfigureForm getFormFromPacket(Packet packet,
        PubSubElementType elem) {
    FormNode config = (FormNode) packet.getExtension(elem.getElementName(),
            elem.getNamespace().getXmlns());
    Form formReply = config.getForm();
    return new ConfigureForm(formReply);

}
项目:java-bells    文件:NodeUtils.java   
/** 
 * Get a {@link ConfigureForm} from a packet.
 * 
 * @param packet
 * @param elem
 * @return The configuration form
 */
public static ConfigureForm getFormFromPacket(Packet packet, PubSubElementType elem)
{
    FormNode config = (FormNode)packet.getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
    Form formReply = config.getForm();
    return new ConfigureForm(formReply);

}
项目:telegraph    文件:NodeUtils.java   
/** 
 * Get a {@link ConfigureForm} from a packet.
 * 
 * @param packet
 * @param elem
 * @return The configuration form
 */
public static ConfigureForm getFormFromPacket(Packet packet, PubSubElementType elem)
{
    FormNode config = (FormNode)packet.getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
    Form formReply = config.getForm();
    return new ConfigureForm(formReply);

}
项目:NewCommunication-Android    文件:NodeUtils.java   
/** 
 * Get a {@link ConfigureForm} from a packet.
 * 
 * @param packet
 * @param elem
 * @return The configuration form
 */
public static ConfigureForm getFormFromPacket(Packet packet, PubSubElementType elem)
{
    FormNode config = (FormNode)packet.getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
    Form formReply = config.getForm();
    return new ConfigureForm(formReply);

}
项目:Smack    文件:SimpleNodeProvider.java   
@Override
protected NodeExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends ExtensionElement> content)
{
       return new NodeExtension(PubSubElementType.valueOfFromElemName(currentElement, currentNamespace), attributeMap.get("node"));
}
项目:Smack    文件:PubSub.java   
@SuppressWarnings("unchecked")
   public <PE extends ExtensionElement> PE getExtension(PubSubElementType elem)
{
    return (PE) getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
}
项目:EIM    文件:SimpleNodeProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
       return new NodeExtension(PubSubElementType.valueOfFromElemName(currentElement, currentNamespace), attributeMap.get("node"));
}
项目:EIM    文件:PubSub.java   
public PacketExtension getExtension(PubSubElementType elem)
{
    return getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
}
项目:androidPN-client.    文件:SimpleNodeProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
       return new NodeExtension(PubSubElementType.valueOfFromElemName(currentElement, currentNamespace), attributeMap.get("node"));
}
项目:androidPN-client.    文件:PubSub.java   
public PacketExtension getExtension(PubSubElementType elem)
{
    return getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
}
项目:xmppsupport_v2    文件:PubSub.java   
public PacketExtension getExtension(PubSubElementType elem) {
    return getExtension(elem.getElementName(), elem.getNamespace()
            .getXmlns());
}
项目:java-bells    文件:SimpleNodeProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
       return new NodeExtension(PubSubElementType.valueOfFromElemName(currentElement, currentNamespace), attributeMap.get("node"));
}
项目:java-bells    文件:PubSub.java   
public PacketExtension getExtension(PubSubElementType elem)
{
    return getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
}
项目:telegraph    文件:SimpleNodeProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
       return new NodeExtension(PubSubElementType.valueOfFromElemName(currentElement, currentNamespace), attributeMap.get("node"));
}
项目:telegraph    文件:PubSub.java   
public PacketExtension getExtension(PubSubElementType elem)
{
    return getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
}
项目:NewCommunication-Android    文件:SimpleNodeProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
       return new NodeExtension(PubSubElementType.valueOfFromElemName(currentElement, currentNamespace), attributeMap.get("node"));
}
项目:NewCommunication-Android    文件:PubSub.java   
public PacketExtension getExtension(PubSubElementType elem)
{
    return getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
}
项目:Smack    文件:NodeUtils.java   
/** 
 * Get a {@link ConfigureForm} from a packet.
 * 
 * @param packet
 * @param elem
 * @return The configuration form
 */
public static ConfigureForm getFormFromPacket(Stanza packet, PubSubElementType elem)
{
    FormNode config = packet.getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
    Form formReply = config.getForm();
    return new ConfigureForm(formReply);
}