public class Validator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Validator.MethodResult |
| Constructor and Description |
|---|
Validator(ComponentContainer container,
Project project,
Options options,
IssueLog iLog) |
| Modifier and Type | Method and Description |
|---|---|
static Validator.MethodResult |
findLifecycleMethod(Project project,
ComponentContainer container,
String methodName,
boolean isActivate)
Find a lifecycle methods.
|
static Validator.MethodResult |
findMethod(Project project,
Options options,
ClassDescription cd,
ReferenceDescription ref,
String methodName)
Find the method and the required spec version
|
void |
validate()
Validate the component description.
|
public Validator(ComponentContainer container, Project project, Options options, IssueLog iLog)
public void validate()
throws SCRDescriptorException
SCRDescriptorExceptionpublic static Validator.MethodResult findLifecycleMethod(Project project, ComponentContainer container, String methodName, boolean isActivate) throws SCRDescriptorException
methodName - The method name.isActivate - Whether this is the activate or deactivate method.SCRDescriptorExceptionpublic static Validator.MethodResult findMethod(Project project, Options options, ClassDescription cd, ReferenceDescription ref, String methodName) throws SCRDescriptorException
SCRDescriptorException - If the class can't be foundCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.