public class ConverterMetadata extends java.lang.Object implements Metadata
| Constructor and Description |
|---|
ConverterMetadata(Element element,
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 ConverterMetadata |
identity() |
Metadata |
message(Context context)
Returns the failure message from the given context.
|
static ConverterMetadata |
metadata(java.lang.String description) |
java.lang.String |
readable(java.util.Locale locale)
Returns the human readable version of this object.
|
MetadataType |
type()
Returns the metadata type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkdown, markdown, readablepublic ConverterMetadata(Element element, MetadataType type)
public static ConverterMetadata metadata(java.lang.String description)
public static ConverterMetadata identity()
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