|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.plugins.configuration.Validator
public class Validator
Validator utility class can create a validation report for a set of input properties and a configuration description.
Nested Class Summary | |
---|---|
static class |
Validator.Report
A validation report |
Constructor Summary | |
---|---|
Validator()
|
Method Summary | |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
demapProperties(java.util.Map<java.lang.String,java.lang.String> input,
Description desc)
Reverses a set of properties mapped using the description's configuration to property mapping, or the same input if the description has no mapping |
static java.util.Map<java.lang.String,java.lang.String> |
mapProperties(java.util.Map<java.lang.String,java.lang.String> input,
Description desc)
Converts a set of input configuration keys using the description's configuration to property mapping, or the same input if the description has no mapping |
static Validator.Report |
validate(java.util.Properties props,
Description desc)
Validate a set of properties for a description, and return a report. |
static Validator.Report |
validate(PropertyResolver resolver,
Description description,
PropertyScope defaultScope)
Validate a set of properties for a description, and return a report. |
static Validator.Report |
validate(PropertyResolver resolver,
Description description,
PropertyScope defaultScope,
PropertyScope ignoredScope)
Validate a set of properties for a description, and return a report. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Validator()
Method Detail |
---|
public static Validator.Report validate(java.util.Properties props, Description desc)
props
- the input propertiesdesc
- the configuration description
public static Validator.Report validate(PropertyResolver resolver, Description description, PropertyScope defaultScope)
resolver
- property resolverdescription
- descriptiondefaultScope
- default scope for properties
public static Validator.Report validate(PropertyResolver resolver, Description description, PropertyScope defaultScope, PropertyScope ignoredScope)
resolver
- property resolverdescription
- descriptiondefaultScope
- default scope for propertiesignoredScope
- ignore properties at or below this scope, or null to ignore none
public static java.util.Map<java.lang.String,java.lang.String> mapProperties(java.util.Map<java.lang.String,java.lang.String> input, Description desc)
public static java.util.Map<java.lang.String,java.lang.String> demapProperties(java.util.Map<java.lang.String,java.lang.String> input, Description desc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |