public interface TypeDeclaration extends Annotable
| Modifier and Type | Method and Description |
|---|---|
List<AnnotationTarget> |
allowedTargets()
Restrictions on where annotations of this type can be applied.
|
Object |
defaultValue()
Provides default value for a property
|
String |
description()
A longer, human-friendly description of the type
|
String |
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()
When extending from a type you can define new facets (which can then be set to concrete values by subtypes).
|
TypeInstance |
fixedFacets()
Returns facets fixed by the type.
|
Boolean |
isAnnotation()
Whether the type represents annotation
|
ModelLocation |
location()
Location of the parameter (can not be edited by user)
|
LocationKind |
locationKind()
Kind of location
|
String |
name()
name of the parameter
|
Boolean |
repeat()
The repeat attribute specifies that the parameter can be repeated.
|
Boolean |
required()
Sets if property is optional or not
|
String |
schema()
Alias for the equivalent "type" property, for compatibility with RAML 0.8.
|
String |
schemaContent()
Returns schema content for the cases when schema is inlined, when schema is included, and when schema is a reference.
|
TypeInstance |
structuredExample()
Returns object representation of example, if possible
|
List<String> |
type()
A base type which the current type extends, or more generally a type expression.
|
XMLFacetInfo |
xml() |
annotationsfragmentString name()
String displayName()
List<TypeDeclaration> facets()
String schema()
List<String> type()
ModelLocation location()
LocationKind locationKind()
Object defaultValue()
ExampleSpec example()
List<ExampleSpec> examples()
Boolean repeat()
Boolean required()
String description()
XMLFacetInfo xml()
List<AnnotationTarget> allowedTargets()
Boolean isAnnotation()
TypeInstance fixedFacets()
String schemaContent()
TypeInstance structuredExample()
Copyright © 2016. All rights reserved.