public class SerializationContext extends Object
MetadataType| Constructor and Description |
|---|
SerializationContext() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ObjectType> |
getRegisteredObjectType(String registrationId)
Recovers an
ObjectType which was registered through
registerObjectType(ObjectType). |
List<ObjectType> |
getRegisteredObjectTypes() |
String |
registerObjectType(ObjectType objectType)
Acknowledges an
ObjectType and returns a key which can be used
as a reference to such type |
public String registerObjectType(ObjectType objectType)
ObjectType and returns a key which can be used
as a reference to such typeobjectType - an ObjectTypepublic Optional<ObjectType> getRegisteredObjectType(String registrationId)
ObjectType which was registered through
registerObjectType(ObjectType).registrationId - the id that was obtained while registering the typeOptional ObjectTypepublic List<ObjectType> getRegisteredObjectTypes()
List with all the ObjectType which were registered
through registerObjectType(ObjectType)Copyright © 2022 MuleSoft, Inc.. All rights reserved.