| Modifier | Constructor and Description |
|---|---|
protected |
FormatRule(RuleFactory ruleFactory) |
protected FormatRule(RuleFactory ruleFactory)
public com.sun.codemodel.JType apply(String nodeName, com.fasterxml.jackson.databind.JsonNode node, com.sun.codemodel.JType baseType, Schema schema)
This rule maps format values to Java types:
Date
String
String
long
Pattern
String
String
String
URI
String
String
String
String
apply in interface Rule<com.sun.codemodel.JType,com.sun.codemodel.JType>nodeName - the name of the node to which this format is appliednode - the format nodebaseType - the type which which is being formatted e.g. for
{ "type" : "string", "format" : "uri" } the
baseType would be java.lang.Stringschema - the schema to which this schema rule (and the given node)
belongs.Copyright © 2014. All Rights Reserved.