Package com.floragunn.codova.documents
Interface Metadata.Attribute<AttributeType>
- All Known Subinterfaces:
Metadata.ListAttribute<AttributeType>
public static interface Metadata.Attribute<AttributeType>
-
Method Summary
Modifier and TypeMethodDescriptiondefaultValue(AttributeType defaultValue) static <AttributeType>
Metadata.ListAttribute<AttributeType>static <AttributeType>
Metadata.ListAttribute<AttributeType>intmeta()intname()static <AttributeType>
Metadata.Attribute<AttributeType>static <AttributeType>
Metadata.Attribute<AttributeType>static <AttributeType>
Metadata.Attribute<AttributeType>static <AttributeType>
Metadata.Attribute<AttributeType>
-
Method Details
-
name
String name() -
description
String description() -
meta
Metadata<AttributeType> meta() -
minCardinality
int minCardinality() -
maxCardinality
int maxCardinality() -
cardinalityAsString
String cardinalityAsString() -
defaultValue
AttributeType defaultValue() -
defaultValue
-
required
static <AttributeType> Metadata.Attribute<AttributeType> required(String name, Metadata<AttributeType> meta, String description) -
required
static <AttributeType> Metadata.Attribute<AttributeType> required(String name, Class<AttributeType> type, String description) -
optional
static <AttributeType> Metadata.Attribute<AttributeType> optional(String name, Metadata<AttributeType> meta, String description) -
optional
static <AttributeType> Metadata.Attribute<AttributeType> optional(String name, Class<AttributeType> type, String description) -
list
static <AttributeType> Metadata.ListAttribute<AttributeType> list(String name, Metadata<AttributeType> meta, String description) -
list
static <AttributeType> Metadata.ListAttribute<AttributeType> list(String name, Class<AttributeType> type, String description)
-