| Modifier and Type | Method and Description |
|---|---|
MetadataType |
ClassTypeLoader.load(Type type) |
| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataType> |
TypeLoader.load(String typeIdentifier)
Returns the MetadataType of the specified identifier if found
|
default Optional<MetadataType> |
TypeLoader.load(String typeIdentifier,
String typeAlias)
Returns the MetadataType of the specified identifier if found, optionally assigning specified type alias
|
| Modifier and Type | Method and Description |
|---|---|
String |
TypeWriter.toString(MetadataType structure)
Returns the string representation of a MetadataType
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBuilder<T extends MetadataType> |
class |
BasicTypeBuilder<T extends MetadataType> |
interface |
SimpleTypeBuilder<T extends MetadataType> |
interface |
TypeBuilder<T extends MetadataType> |
| Modifier and Type | Method and Description |
|---|---|
MetadataType |
BaseTypeBuilder.build() |
| Modifier and Type | Method and Description |
|---|---|
FunctionTypeBuilder |
FunctionTypeBuilder.addOptionalParameterOf(String name,
MetadataType paramType) |
FunctionTypeBuilder |
FunctionTypeBuilder.addParameterOf(String name,
MetadataType paramType) |
ArrayTypeBuilder |
ArrayTypeBuilder.of(MetadataType typeValue) |
UnionTypeBuilder |
UnionTypeBuilder.of(MetadataType type) |
ObjectTypeBuilder |
ObjectTypeBuilder.openWith(MetadataType openRestriction) |
FunctionTypeBuilder |
FunctionTypeBuilder.returnType(MetadataType returnType) |
ObjectFieldTypeBuilder |
ObjectFieldTypeBuilder.value(MetadataType typeValue) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
AnyType
A Top Type.
|
interface |
ArrayType
This type represents a collection of elements of a given type.
|
interface |
AttributeFieldType
Represents an Object Key attribute.
|
interface |
AttributeKeyType
An attribute key.
|
interface |
BinaryType
Represents Binary content type
|
interface |
BooleanType |
interface |
DateTimeType
A Date + Time Type + TimeZone
|
interface |
DateType
A date type with Year Month Day
|
interface |
FunctionType
A function with arguments and a return type
|
interface |
IntersectionType
For any types X and Y, the intersection, or conjunction, X&Y, of the types may be formed.
|
interface |
LocalDateTimeType
A Date + Time Type with not time zone (by convention the local timezone)
|
interface |
LocalTimeType
A time with no timezone (by convention the local timezone)
|
interface |
NothingType
A bottom type.
|
interface |
NullType
The null type.
|
interface |
NumberType
Numeric Types
|
interface |
ObjectFieldType
Represents a key value pair of an object field.
|
interface |
ObjectKeyType
Represents an object key.
|
interface |
ObjectType
An object type represents a list of fields that is represented by key value pairs type.
|
interface |
PeriodType
Represents a period of time.
|
interface |
RegexType
Represents a regex expression.
|
interface |
SimpleType |
interface |
StringType
String types
|
interface |
TimeType
Time only representation
|
interface |
TimeZoneType
Represents a timezone type
|
interface |
TupleType
Represents a finite ordered list of Types.
|
interface |
TypeParameterType
A Type Parameter used in type expressions.
|
interface |
UnionType
For any types X and Y, the union, or disjunction, X|Y, of the types may be formed.
|
interface |
VoidType
The void type.
|
| Modifier and Type | Method and Description |
|---|---|
MetadataType |
FunctionParameter.getType()
Returns the type of the parameter
|
MetadataType |
ArrayType.getType()
The type of the array
|
MetadataType |
AttributeFieldType.getValue()
The value of the attribute
|
MetadataType |
ObjectFieldType.getValue()
The value of this field
|
| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataType> |
ObjectType.getOpenRestriction()
Returns the restriction if any specified for the open type.
|
Optional<MetadataType> |
FunctionType.getReturnType()
The return type of the function.
|
List<MetadataType> |
IntersectionType.getTypes()
The list of types
|
List<MetadataType> |
TupleType.getTypes()
The list of elements of the tuple
|
List<MetadataType> |
UnionType.getTypes()
The list of types that belongs to this union.
|
| Constructor and Description |
|---|
FunctionParameter(String name,
MetadataType type) |
FunctionParameter(String name,
MetadataType type,
boolean optional) |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseMetadataType |
class |
DefaultAnyType |
class |
DefaultArrayType |
class |
DefaultAttributeFieldType |
class |
DefaultAttributeKeyType |
class |
DefaultBinaryType |
class |
DefaultBooleanType |
class |
DefaultDateTimeType |
class |
DefaultDateType |
class |
DefaultFunctionType |
class |
DefaultIntersectionType |
class |
DefaultLocalDateTimeType |
class |
DefaultLocalTimeType |
class |
DefaultNothingType |
class |
DefaultNullType |
class |
DefaultNumberType |
class |
DefaultObjectFieldType |
class |
DefaultObjectKeyType |
class |
DefaultObjectType |
class |
DefaultPeriodType |
class |
DefaultRegexType |
class |
DefaultStringType |
class |
DefaultTimeType |
class |
DefaultTimeZoneType |
class |
DefaultTupleType |
class |
DefaultTypeParameterType |
class |
DefaultUnionType |
class |
DefaultVoidType |
| Modifier and Type | Method and Description |
|---|---|
MetadataType |
DefaultArrayType.getType() |
MetadataType |
DefaultObjectFieldType.getValue() |
MetadataType |
DefaultAttributeFieldType.getValue() |
| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataType> |
DefaultObjectType.getOpenRestriction() |
Optional<MetadataType> |
DefaultFunctionType.getReturnType() |
List<MetadataType> |
DefaultTupleType.getTypes() |
List<MetadataType> |
DefaultIntersectionType.getTypes() |
List<MetadataType> |
DefaultUnionType.getTypes() |
| Constructor and Description |
|---|
DefaultAttributeFieldType(AttributeKeyType key,
MetadataType value,
boolean required,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions) |
DefaultObjectFieldType(ObjectKeyType key,
MetadataType value,
boolean isRequired,
boolean isRepeated,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> annotations) |
DefaultObjectType(Collection<ObjectFieldType> fields,
boolean ordered,
MetadataType openRestriction,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions) |
| Constructor and Description |
|---|
DefaultArrayType(Supplier<MetadataType> type,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions) |
DefaultFunctionType(MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> annotations,
Optional<MetadataType> returnType,
List<FunctionParameter> parameters) |
DefaultIntersectionType(List<MetadataType> types,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions) |
DefaultTupleType(List<MetadataType> types,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions) |
DefaultUnionType(List<MetadataType> types,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions) |
| Modifier and Type | Method and Description |
|---|---|
void |
MetadataTypeUtils.TypeResolverVisitor.defaultVisit(MetadataType metadataType) |
static Optional<String> |
MetadataTypeUtils.getDefaultValue(MetadataType type)
Returns the default value of a
MetadataType if exist. |
static Optional<String> |
MetadataTypeUtils.getTypeId(MetadataType type)
Returns the type id of a
MetadataType if exist. |
static boolean |
MetadataTypeUtils.hasExposedFields(MetadataType type)
Returns if an
ObjectType has at least one exposed field or not, for any other MetadataType returns false. |
static boolean |
MetadataTypeUtils.isCollection(MetadataType type)
Returns whether a metadata type is an instance of an
ArrayType or not. |
static boolean |
MetadataTypeUtils.isEnum(MetadataType type)
Indicates whether the give
MetadataType is an Enum or not. |
static boolean |
MetadataTypeUtils.isNullType(MetadataType type)
Returns whether a metadata type is an instance of
NullType or not. |
static boolean |
MetadataTypeUtils.isObjectType(MetadataType type)
Returns whether a metadata type is an instance of
ObjectType or not. |
static boolean |
MetadataTypeUtils.isVoid(MetadataType type)
Returns whether a metadata type is an instance of
VoidType or not. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MetadataTypeVisitor.defaultVisit(MetadataType metadataType)
When no method matches the specific type this method will be called.
|
protected abstract void |
BasicTypeMetadataVisitor.visitBasicType(MetadataType metadataType) |
| Modifier and Type | Method and Description |
|---|---|
String |
MetadataTypeWriter.toString(MetadataType structure) |
Copyright © 2024 MuleSoft, Inc.. All rights reserved.