Package com.floragunn.codova.documents
Interface Metadata<T>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Metadata<T>create(Class<T> type, String description, Parser<T, Parser.Context> parser, Metadata.Attribute<?>... attributes) static <T> Metadata<T>create(Class<T> type, String typeName, String description, Parser<T, Parser.Context> parser, Metadata.Attribute<?>... attributes) parser()type()Methods inherited from interface com.floragunn.codova.documents.Document
meta, toBytes, toDeepBasicObject, toDocNode, toJsonString, toPrettyJsonString, toSmile, toString, toYamlString
-
Method Details
-
description
String description() -
type
-
parser
Parser<T,Parser.Context> parser() -
toBasicObject
- Specified by:
toBasicObjectin interfaceDocument<T>
-
attributes
List<Metadata.Attribute<?>> attributes() -
create
static <T> Metadata<T> create(Class<T> type, String description, Parser<T, Parser.Context> parser, Metadata.Attribute<?>... attributes) -
create
static <T> Metadata<T> create(Class<T> type, String typeName, String description, Parser<T, Parser.Context> parser, Metadata.Attribute<?>... attributes)
-