/**
* This method validates if the given Object is a valid Google CAP Object.
*
* @param msg The Coogle CAP Object
* @return the valid Google CAP Object
* @throws InvalidObjectException If the Object is no valid Google CAP object
*/
public static Alert checkIfAlertObject(Object msg) throws InvalidObjectException {
Alert alert = null;
if (msg instanceof Alert) {
alert = (Alert)msg;
} else {
throw new InvalidObjectException("Given Object is no Alert Object!");
}
return alert;
}
Validator.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:CommonInformationSpace
作者:
评论列表
文章目录