public class MediaRule extends Object implements Rule<com.sun.codemodel.JType,com.sun.codemodel.JType>
Applies the "media" hyper schema rule.
| Modifier and Type | Field and Description |
|---|---|
static String |
BINARY_ENCODING |
protected RuleFactory |
ruleFactory |
| Modifier | Constructor and Description |
|---|---|
protected |
MediaRule(RuleFactory ruleFactory)
Constructs a new media rule.
|
public static final String BINARY_ENCODING
protected RuleFactory ruleFactory
protected MediaRule(RuleFactory ruleFactory)
Constructs a new media rule.
ruleFactory - the rule factory that created this rule.public com.sun.codemodel.JType apply(String nodeName, com.fasterxml.jackson.databind.JsonNode mediaNode, com.sun.codemodel.JType baseType, Schema schema)
Applies this schema rule.
apply in interface Rule<com.sun.codemodel.JType,com.sun.codemodel.JType>nodeName - the name of the property.mediaNode - the media nodebaseType - the type with the media node. This must be java.lang.String.schema - the schema containing the property.Copyright © 2014. All Rights Reserved.