public interface TypeDeclaration extends Annotable
| Modifier and Type | Method and Description |
|---|---|
List<AnnotationTarget> |
allowedTargets()
Restrictions on where annotations of this type can be applied.
|
String |
defaultValue()
Provides default value for a property
|
MarkdownString |
description()
A longer, human-friendly description of the type
|
AnnotableStringType |
displayName()
The displayName attribute specifies the type display name.
|
ExampleSpec |
example()
An example of this type instance represented as string or yaml map/sequence.
|
List<ExampleSpec> |
examples()
An example of this type instance represented as string.
|
List<TypeDeclaration> |
facets()
Gets the list of user-defined facets
|
String |
name()
Name of the parameter
|
List<TypeDeclaration> |
parentTypes()
The list of inherited types
|
Boolean |
required()
Sets if property is optional or not
|
String |
toXmlSchema() |
String |
type()
A base type which the current type extends, or more generally a type expression.
|
List<ValidationResult> |
validate(String payload)
Validates payload against the type/schema defined
|
XMLFacetInfo |
xml() |
annotationsString name()
AnnotableStringType displayName()
String type()
List<TypeDeclaration> parentTypes()
String defaultValue()
ExampleSpec example()
List<ExampleSpec> examples()
Boolean required()
MarkdownString description()
List<AnnotationTarget> allowedTargets()
List<ValidationResult> validate(String payload)
payload - the payload to be validatedList<TypeDeclaration> facets()
XMLFacetInfo xml()
String toXmlSchema()
Copyright © 2017. All rights reserved.