public final class SharedHostNameAttribute extends AbstractFormatAttribute
host-name format attribute.
Important note: the basis for host name format validation is RFC 1034. The RFC does not
require that a host name have more than one domain name component. As
such, foo is a valid hostname.
Guava's InternetDomainName is used for validation.
| Constructor and Description |
|---|
SharedHostNameAttribute(String fmt) |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(ProcessingReport report,
MessageBundle bundle,
FullData data)
Validate the instance against this format attribute
|
newMsg, supportedTypespublic SharedHostNameAttribute(String fmt)
public void validate(ProcessingReport report, MessageBundle bundle, FullData data) throws ProcessingException
FormatAttributereport - the report to usebundle - the message bundle to usedata - the validation dataProcessingException - an exception occurs (normally, never for a
format attribute)