public class MappingMetadata extends java.lang.Object implements Metadata
| Constructor and Description |
|---|
MappingMetadata(MetadataType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MetadataVisitor visitor,
int depth) |
java.util.List<Metadata> |
children()
Returns the direct children of this node in a flat list.
|
java.util.List<Element> |
flatten()
Returns the tree of elements under this node in a flat list.
|
static MappingMetadata |
mapping(DslField inField,
DslField outField) |
static MappingMetadata |
mapping(java.util.List<DslField> inFields,
DslField outField) |
static MappingMetadata |
mapping(java.util.function.Supplier<?> supplier,
DslField outField) |
static MappingMetadata |
mappings(MappingOperator operator) |
Metadata |
message(Context context)
Returns the failure message from the given context.
|
java.lang.String |
readable(java.util.Locale locale)
Returns the human readable version of this object.
|
java.util.stream.Stream<Element> |
stream() |
MetadataType |
type()
Returns the metadata type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkdown, markdown, readablepublic MappingMetadata(MetadataType type)
public static MappingMetadata mappings(MappingOperator operator)
public static MappingMetadata mapping(DslField inField, DslField outField)
public static MappingMetadata mapping(java.util.List<DslField> inFields, DslField outField)
public static MappingMetadata mapping(java.util.function.Supplier<?> supplier, DslField outField)
public java.util.stream.Stream<Element> stream()
public void accept(MetadataVisitor visitor, int depth)
accept in interface SyntaxTreepublic java.util.List<Element> flatten()
Metadatapublic java.util.List<Metadata> children()
Metadatapublic java.lang.String readable(java.util.Locale locale)
SyntaxTreereadable in interface SyntaxTreelocale - the locale to useSyntaxTree.readable()public MetadataType type()
Metadata