public static class RamlAdjuster.Composite extends Object implements RamlAdjuster
RamlAdjuster.Composite, RamlAdjuster.HelperNULL_ADJUSTER| Constructor and Description |
|---|
Composite(Collection<RamlAdjuster> adjusters) |
| 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 typeDeclarationBuilder,
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.
|
public Composite(Collection<RamlAdjuster> adjusters)
public String adjustEnumValue(Class<?> type, String name)
RamlAdjusteradjustEnumValue in interface RamlAdjusterpublic TypeBuilder adjustType(Type type, String typeName, TypeBuilder builder)
RamlAdjusteradjustType in interface RamlAdjusterbuilder - a suggested builder. You can add to it and return this builder, or build a new one.public String adjustTypeName(Class<?> aClass, String name)
RamlAdjusterRamlAdjuster.adjustType(Type, String, TypeBuilder) should you overload both.adjustTypeName in interface RamlAdjustername - a suggested type name. You may return it or change it. It may not be null.public TypePropertyBuilder adjustScalarProperty(TypeDeclarationBuilder typeDeclaration, Property property, TypePropertyBuilder typePropertyBuilder)
RamlAdjusteradjustScalarProperty in interface RamlAdjustertypePropertyBuilder - a suggested builder. You can add to it and return this builder, or build a new one.public TypePropertyBuilder adjustComposedProperty(TypeDeclarationBuilder typeDeclaration, Property property, TypePropertyBuilder typePropertyBuilder)
RamlAdjusteradjustComposedProperty in interface RamlAdjustertypePropertyBuilder - a suggested builder. You can add to it and return this builder, or build a new one.public TypeBuilder adjustForUnknownType(Type type)
RamlAdjusteradjustForUnknownType in interface RamlAdjusterpublic void adjustForUnknownTypeInProperty(Type type, TypeBuilder typeBuilder, TypeDeclarationBuilder typeDeclarationBuilder, Property property)
RamlAdjusteradjustForUnknownTypeInProperty in interface RamlAdjusterCopyright © 2019 Mulesoft. All rights reserved.