summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/elements/SecurityLabelsCatalog.java')
-rw-r--r--src/com/isode/stroke/elements/SecurityLabelsCatalog.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/com/isode/stroke/elements/SecurityLabelsCatalog.java b/src/com/isode/stroke/elements/SecurityLabelsCatalog.java
index 4bb9493..29cf3f7 100644
--- a/src/com/isode/stroke/elements/SecurityLabelsCatalog.java
+++ b/src/com/isode/stroke/elements/SecurityLabelsCatalog.java
@@ -4,38 +4,39 @@
*/
package com.isode.stroke.elements;
+import java.util.ArrayList;
import java.util.Collection;
import com.isode.stroke.jid.JID;
public class SecurityLabelsCatalog extends Payload {
private JID to_;
- private String name_;
- private String description_;
- private Collection<Item> items_;
+ private String name_ = "";
+ private String description_ = "";
+ private Collection<Item> items_ = new ArrayList<Item>();
- public class Item {
+ public static class Item {
private SecurityLabel label_;
- private String selector_;
+ private String selector_ = "";
private boolean default_;
public SecurityLabel getLabel() {
return label_;
}
- void setLabel(SecurityLabel label) {
+ public void setLabel(SecurityLabel label) {
label_ = label;
}
- final String getSelector() { return selector_; }
+ public final String getSelector() { return selector_; }
- void setSelector(final String selector) {
+ public void setSelector(final String selector) {
selector_ = selector;
}
- boolean getIsDefault() { return default_; }
+ public boolean getIsDefault() { return default_; }
- void setIsDefault(boolean isDefault) {
+ public void setIsDefault(boolean isDefault) {
default_ = isDefault;
}
};