public abstract class TypeDeclaration<T extends ResolvedType> extends Annotable<KeyValueNode>
node| Constructor and Description |
|---|
TypeDeclaration(KeyValueNode node,
T resolvedType) |
| Modifier and Type | Method and Description |
|---|---|
String |
defaultValue() |
Node |
getNode() |
T |
getResolvedType() |
String |
name() |
List<TypeDeclaration<?>> |
parentTypes() |
Boolean |
required() |
String |
rootElementName() |
String |
schemaContent() |
String |
toJsonSchema() |
String |
toXmlSchema() |
String |
type() |
List<RamlValidationResult> |
validate(String payload) |
annotationsequals, hashCodepublic TypeDeclaration(KeyValueNode node, T resolvedType)
public T getResolvedType()
public Node getNode()
public String name()
public List<TypeDeclaration<?>> parentTypes()
public String schemaContent()
public List<RamlValidationResult> validate(String payload)
public Boolean required()
public String defaultValue()
public String toXmlSchema()
public String toJsonSchema()
public String rootElementName()
Copyright © 2017. All rights reserved.