public interface RamlAdjuster
| Modifier and Type | Interface and Description |
|---|---|
static class |
RamlAdjuster.Composite |
static class |
RamlAdjuster.Helper |
| Modifier and Type | Field and Description |
|---|---|
static RamlAdjuster |
NULL_ADJUSTER |
| Modifier and Type | Method and Description |
|---|---|
TypePropertyBuilder |
adjustComposedProperty(TypeDeclarationBuilder typeDeclaration,
Property property,
TypePropertyBuilder typePropertyBuilder)
You may change the property definition for a given composed type.
|
String |
adjustEnumValue(Class<?> type,
String name)
If the type being adjusted is an enumeration, you may change the enumerated value's name.
|
TypeBuilder |
adjustForUnknownType(Type type)
Should you have a property than contains an unsupported type for RAML, you could handle here.
|
void |
adjustForUnknownTypeInProperty(Type type,
TypeBuilder typeBuilder,
TypeDeclarationBuilder builder,
Property property)
Should you have a property than contains an unsupported type for RAML, you could handle here.
|
TypePropertyBuilder |
adjustScalarProperty(TypeDeclarationBuilder typeDeclaration,
Property property,
TypePropertyBuilder typePropertyBuilder)
You may change the property definition for a given scalar type.
|
TypeBuilder |
adjustType(Type type,
String typeName,
TypeBuilder builder)
Changes the type.
|
String |
adjustTypeName(Class<?> aClass,
String name)
Allows you to change the name when used as a reference.
|
static final RamlAdjuster NULL_ADJUSTER
String adjustEnumValue(Class<?> type, String name)
type - name - TypeBuilder adjustType(Type type, String typeName, TypeBuilder builder)
type - typeName - builder - a suggested builder. You can add to it and return this builder, or build a new one.String adjustTypeName(Class<?> aClass, String name)
adjustType(Type, String, TypeBuilder) should you overload both.aClass - name - a suggested type name. You may return it or change it. It may not be null.TypePropertyBuilder adjustScalarProperty(TypeDeclarationBuilder typeDeclaration, Property property, TypePropertyBuilder typePropertyBuilder)
typeDeclaration - property - typePropertyBuilder - a suggested builder. You can add to it and return this builder, or build a new one.TypePropertyBuilder adjustComposedProperty(TypeDeclarationBuilder typeDeclaration, Property property, TypePropertyBuilder typePropertyBuilder)
typeDeclaration - property - typePropertyBuilder - a suggested builder. You can add to it and return this builder, or build a new one.TypeBuilder adjustForUnknownType(Type type)
type - void adjustForUnknownTypeInProperty(Type type, TypeBuilder typeBuilder, TypeDeclarationBuilder builder, Property property)
type - typeBuilder - Copyright © 2019 Mulesoft. All rights reserved.