Package com.floragunn.codova.documents
Interface Metadata<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMetadata.Attribute<AttributeType>static interfaceMetadata.ListAttribute<AttributeType>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Metadata.Attribute<?>>attributes()static <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)Stringdescription()Parser<T,Parser.Context>parser()Map<String,Object>toBasicObject()Class<T>type()-
Methods inherited from interface com.floragunn.codova.documents.Document
meta, toBytes, toDeepBasicObject, toDocNode, toJsonString, toPrettyJsonString, toSmile, toString, toYamlString
-
-
-
-
Method Detail
-
description
String description()
-
parser
Parser<T,Parser.Context> parser()
-
toBasicObject
Map<String,Object> 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)
-
-