public class MediaRule extends Object implements Rule<com.sun.codemodel.JType,com.sun.codemodel.JType>
Applies the "media" hyper schema rule.
| Modifier | Constructor and Description |
|---|---|
protected |
MediaRule()
Constructs a new media rule.
|
| Modifier and Type | Method and Description |
|---|---|
com.sun.codemodel.JType |
apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode mediaNode,
com.sun.codemodel.JType baseType,
Schema schema)
Applies this schema rule.
|
protected MediaRule()
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 © 2017. All rights reserved.