/** * Returns the specific condition of the <code>error</code> or <tt>null</tt> if the * error doesn't have any. * * @param error the error the get the specific condition from. * @return the specific condition of this error, or null if it doesn't have * any. */ public static SpecificErrorCondition getSpecificErrorCondition(XMPPError error) { // This method is implemented to provide an easy way of getting a packet // extension of the XMPPError. for (SpecificErrorCondition condition : SpecificErrorCondition.values()) { if (error.getExtension(condition.toString(), AdHocCommandData.SpecificError.namespace) != null) { return condition; } } return null; }
/** * Returns the specific condition of the <code>error</code> or <tt>null</tt> if the * error doesn't have any. * * @param error the error the get the specific condition from. * @return the specific condition of this error, or null if it doesn't have * any. */ public static SpecificErrorCondition getSpecificErrorCondition(XMPPError error) { // This method is implemented to provide an easy way of getting a packet // extension of the XMPPError. for (SpecificErrorCondition condition : SpecificErrorCondition.values()) { if (error.getExtension(condition.toString(), AdHocCommandData.SpecificError.namespace) != null) { return condition; } } return null; }
/** * Returns the specific condition of the <code>error</code> or <tt>null</tt> if the * error doesn't have any. * * @param error the error the get the specific condition from. * @return the specific condition of this error, or null if it doesn't have * any. */ public static SpecificErrorCondition getSpecificErrorCondition(XMPPError error) { // This method is implemented to provide an easy way of getting a packet // extension of the XMPPError. for (SpecificErrorCondition condition : SpecificErrorCondition.values()) { if (error.getExtension(condition.toString(), AdHocCommandData.SpecificError.namespace) != null) { return condition; } } return null; }
public String getElementName() { return condition.toString(); } public String getNamespace() {
public String getElementName() { return condition.toString(); } public String getNamespace() {
public String getElementName() { return condition.toString(); } public String getNamespace() {
/** * Returns the specific condition of the <code>error</code> or <tt>null</tt> if the * error doesn't have any. * * @param error the error the get the specific condition from. * @return the specific condition of this error, or null if it doesn't have * any. */ public static SpecificErrorCondition getSpecificErrorCondition(StanzaError error) { // This method is implemented to provide an easy way of getting a packet // extension of the XMPPError. for (SpecificErrorCondition condition : SpecificErrorCondition.values()) { if (error.getExtension(condition.toString(), AdHocCommandData.SpecificError.namespace) != null) { return condition; } } return null; }
@Override public String getElementName() { return condition.toString(); } @Override