public class MetadataFactory extends Object
| Constructor and Description |
|---|
MetadataFactory(org.mule.runtime.api.metadata.MetadataContext metadataContext) |
| Modifier and Type | Method and Description |
|---|---|
static org.mule.metadata.api.model.MetadataType |
getDefaultMetadataType(org.mule.runtime.api.metadata.MetadataContext metadataContext) |
org.mule.metadata.api.model.MetadataType |
getMetadataType(amf.core.client.platform.model.domain.Shape shape,
List<String> schemaTypes) |
protected org.mule.metadata.api.model.MetadataType |
getMetadataTypeForAvro(amf.core.client.platform.model.domain.Shape shape)
From a Shape based on avro schema, create MetadataType.
|
protected org.mule.metadata.api.model.MetadataType |
getMetadataTypeForAvro(String dwScript,
String typeName)
Extracts MetadataType of
typeName as specified in dwScript The schema is expected as a JSON string. |
public MetadataFactory(org.mule.runtime.api.metadata.MetadataContext metadataContext)
public org.mule.metadata.api.model.MetadataType getMetadataType(amf.core.client.platform.model.domain.Shape shape,
List<String> schemaTypes)
throws org.mule.runtime.api.metadata.MetadataResolvingException
org.mule.runtime.api.metadata.MetadataResolvingExceptionprotected org.mule.metadata.api.model.MetadataType getMetadataTypeForAvro(amf.core.client.platform.model.domain.Shape shape)
throws IOException,
org.mule.runtime.api.metadata.MetadataResolvingException
shape - IOExceptionorg.mule.runtime.api.metadata.MetadataResolvingException@NotNull protected org.mule.metadata.api.model.MetadataType getMetadataTypeForAvro(String dwScript, String typeName)
typeName as specified in dwScript The schema is expected as a JSON string. Hence
TypeLoader is created using MetadataFormat.JSONdwScript - dataweave script to extract type informationtypeName - name of typepublic static org.mule.metadata.api.model.MetadataType getDefaultMetadataType(org.mule.runtime.api.metadata.MetadataContext metadataContext)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.