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.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JType baseType,
Schema schema)
Applies this schema rule.
|
public com.sun.codemodel.JType apply(String nodeName, com.fasterxml.jackson.databind.JsonNode mediaNode, com.fasterxml.jackson.databind.JsonNode parent, 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 nodeparent - the parent nodebaseType - the type with the media node. This must be java.lang.String.schema - the schema containing the property.Copyright © 2019. All rights reserved.