public abstract class Format extends Object
Constructor and Description |
---|
Format() |
Modifier and Type | Method and Description |
---|---|
protected void |
consumeAllFields(com.fasterxml.jackson.databind.JsonNode node,
Consumer<String> fieldReport) |
abstract String |
debugInfo()
Return a short partial description of the type, useful of DSL users
|
String |
getHint() |
int |
getMax() |
int |
getMin() |
String |
getName() |
Format |
getReportingType() |
boolean |
isOptional() |
protected abstract void |
resolve(Schema schema)
Second phase of initialization, when the Format is associated to the Schema
|
void |
setHint(String hint) |
void |
setMax(int max) |
void |
setMin(Integer min) |
void |
setName(String name) |
void |
setOptional(boolean optional) |
protected void |
setReportingType(Format format) |
String |
toString() |
abstract void |
validate(com.fasterxml.jackson.databind.JsonNode node,
Consumer<String> fieldReport,
ValidatorEngine validator) |
abstract void |
walk(Consumer<Format> consumer)
Execute an action on each node of the TypeDef tree.
|
protected abstract void resolve(Schema schema)
schema
- the schema it belongs to.protected void consumeAllFields(com.fasterxml.jackson.databind.JsonNode node, Consumer<String> fieldReport)
public abstract void validate(com.fasterxml.jackson.databind.JsonNode node, Consumer<String> fieldReport, ValidatorEngine validator)
public abstract void walk(Consumer<Format> consumer)
consumer
- the action to do on the nodepublic String getName()
public void setName(String name)
public boolean isOptional()
public void setOptional(boolean optional)
public String getHint()
public void setHint(String hint)
public int getMin()
public void setMin(Integer min)
public int getMax()
public void setMax(int max)
public abstract String debugInfo()
protected void setReportingType(Format format)
public Format getReportingType()
Copyright © 2018 Vitam. All rights reserved.