/** * Returns the type hold the kind of communication it will allow or block. * It MUST be filled with one of these values: jid, group or subscription. * * @return the type of communication it represent. */ public Type getType() { if (this.getRule() == null) { return null; } else { return this.getRule().getType(); } }
/** * Returns the type hold the kind of communication it will allow or block. * It MUST be filled with one of these values: jid, group or subscription. * * @return the type of communication it represent. */ public Type getType() { if (this.getRule() == null) { return null; } else { return this.getRule().getType(); } }
/** * Returns the type hold the kind of communication it will allow or block. * It MUST be filled with one of these values: jid, group or subscription. * * @return the type of communication it represent. */ public Type getType() { if (this.getRule() == null) { return null; } else { return this.getRule().getType(); } }
/** * Sets the element identifier to apply the action. * * If the type is "jid", then the 'value' attribute MUST contain a valid Jabber ID. * If the type is "group", then the 'value' attribute SHOULD contain the name of a group * in the user's roster. * If the type is "subscription", then the 'value' attribute MUST be one of "both", "to", * "from", or "none". * * @param value is the identifier to apply the action. */ public void setValue(String value) { if (!(this.getRule() == null && value == null)) { this.getRule().setValue(value); } }
/** * Returns the element identifier to apply the action. * * If the type is "jid", then the 'value' attribute MUST contain a valid Jabber ID. * If the type is "group", then the 'value' attribute SHOULD contain the name of a group * in the user's roster. * If the type is "subscription", then the 'value' attribute MUST be one of "both", "to", * "from", or "none". * * @return the identifier to apply the action. */ public String getValue() { if (this.getRule() == null) { return null; } else { return this.getRule().getValue(); } }
/** * Returns the element identifier to apply the action. * * If the type is "jid", then the 'value' attribute MUST contain a valid Jabber ID. * If the type is "group", then the 'value' attribute SHOULD contain the name of a group * in the user's roster. * If the type is "subscription", then the 'value' attribute MUST be one of "both", "to", * "from", or "none". * * @return the identifier to apply the action. */ public String getValue() { if (this.getRule() == null) { return null; } else { return this.getRule().getValue(); } }
/** * Sets the element identifier to apply the action. * * If the type is "jid", then the 'value' attribute MUST contain a valid Jabber ID. * If the type is "group", then the 'value' attribute SHOULD contain the name of a group * in the user's roster. * If the type is "subscription", then the 'value' attribute MUST be one of "both", "to", * "from", or "none". * * @param value is the identifier to apply the action. */ public void setValue(String value) { if (!(this.getRule() == null && value == null)) { this.getRule().setValue(value); } }
/** * Sets the element identifier to apply the action. * * If the type is "jid", then the 'value' attribute MUST contain a valid Jabber ID. * If the type is "group", then the 'value' attribute SHOULD contain the name of a group * in the user's roster. * If the type is "subscription", then the 'value' attribute MUST be one of "both", "to", * "from", or "none". * * @param value is the identifier to apply the action. */ public void setValue(String value) { if (!(this.getRule() == null && value == null)) { this.getRule().setValue(value); } }
/** * Returns the element identifier to apply the action. * * If the type is "jid", then the 'value' attribute MUST contain a valid Jabber ID. * If the type is "group", then the 'value' attribute SHOULD contain the name of a group * in the user's roster. * If the type is "subscription", then the 'value' attribute MUST be one of "both", "to", * "from", or "none". * * @return the identifier to apply the action. */ public String getValue() { if (this.getRule() == null) { return null; } else { return this.getRule().getValue(); } }