public class SubscriptionsExtension extends NodeExtension
Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionsExtension.SubscriptionsNamespace |
Modifier and Type | Field and Description |
---|---|
protected List<Subscription> |
items |
Constructor and Description |
---|
SubscriptionsExtension(List<Subscription> subList)
Subscriptions to the root node.
|
SubscriptionsExtension(String nodeId,
List<Subscription> subList)
Subscriptions to the specified node.
|
SubscriptionsExtension(SubscriptionsExtension.SubscriptionsNamespace subscriptionsNamespace,
String nodeId,
List<Subscription> subList)
Subscriptions to the specified node.
|
Modifier and Type | Method and Description |
---|---|
List<Subscription> |
getSubscriptions()
Gets the list of subscriptions.
|
CharSequence |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
getElementName, getNamespace, getNode, getPubSubNamespace, toString
protected List<Subscription> items
public SubscriptionsExtension(List<Subscription> subList)
subList
- The list of subscriptionspublic SubscriptionsExtension(String nodeId, List<Subscription> subList)
nodeId
- The node subscribed tosubList
- The list of subscriptionspublic SubscriptionsExtension(SubscriptionsExtension.SubscriptionsNamespace subscriptionsNamespace, String nodeId, List<Subscription> subList)
subscriptionsNamespace
- the namespace used by this elementnodeId
- The node subscribed tosubList
- The list of subscriptionspublic List<Subscription> getSubscriptions()
public CharSequence toXML(String enclosingNamespace)
Element
toXML
in interface Element
toXML
in class NodeExtension
enclosingNamespace
- the enclosing namespace or null
.