blob: ac696b649396147473c5e272e7fb5ebb615bc29b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*
* Copyright (c) 2012, Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2010, Kevin Smith
* All rights reserved.
*/
package com.isode.stroke.elements;
/**
* Class representing a MUC Owner Payload
*
*/
public class MUCOwnerPayload extends Payload {
/**
* Create the MUC Owner payload
*/
public MUCOwnerPayload() {
}
/**
* Get the payload
* @return payload, not null if set
*/
public Payload getPayload(){
return payload;
}
/**
* Set the payload
* @param p payload to set, nt null
*/
public void setPayload(Payload p) {
payload = p;
}
/**
* Get the form object
* @return form, not null if payload is set to Form
*/
public Form getForm() {
if(payload instanceof Form) {
return (Form)payload;
}
return null;
}
private Payload payload;
}
|