public final class Rules extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isEmail(String email)
Indicates whether it is a valid email address by looking at its syntax.
|
static boolean |
isXMLMediaType(String mtype) |
public static boolean isEmail(String email)
email
- The email to validatetrue
if the email is considered valid from its syntax;
false
otherwise.public static boolean isXMLMediaType(String mtype)
mtype
- the media type to checktrue
if it's an XML media typeCopyright © 2016 Allette Systems. All rights reserved.