public class IdInterfaceValidator extends Object
| Constructor and Description |
|---|
IdInterfaceValidator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
validate(Class<?> id)
Validates the form of the given id interface candidate type.
|
public static void validate(Class<?> id)
IdInterfaceExceptions is thrown containing all of the violations encountered, which can be obtained
from IdInterfaceExceptions.getExceptions() or, as a convenience,
IdInterfaceExceptions.getMessages().
Id interfaces are intended to have methods representing setters and getters. Getter methods take the form
PropertyType getPropertyName() orPropertyType propertyName().void|IdType setPropertyName(PropertyType),void|IdType withPropertyName(PropertyType), orvoid|IdType propertyName(PropertyType);interface, not a class,Serializable,MapId,Serializable type,Serializable type,void or the id interface's type,id - The candidate interface typeIdInterfaceExceptionsIdInterfaceExceptions.getExceptions(),
IdInterfaceException}Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.