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(com.github.fge.jsonschema.report.ProcessingReport report,
FullData data)
Validate the instance against this format attribute
|
newMsg, supportedTypespublic SharedHostNameAttribute(String fmt)
public void validate(com.github.fge.jsonschema.report.ProcessingReport report,
FullData data)
throws com.github.fge.jsonschema.exceptions.ProcessingException
FormatAttributereport - the report to usedata - the validation datacom.github.fge.jsonschema.exceptions.ProcessingException - an exception occurs (normally, never for a
format attribute)Copyright © 2014. All Rights Reserved.