Package org.mule.metadata.persistence
Class SerializationContext
- java.lang.Object
-
- org.mule.metadata.persistence.SerializationContext
-
public class SerializationContext extends Object
Contains state which affects many serializers or type adapters involved in the process of marshalling aMetadataType- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description SerializationContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ObjectType>getRegisteredObjectType(String registrationId)Recovers anObjectTypewhich was registered throughregisterObjectType(ObjectType).List<ObjectType>getRegisteredObjectTypes()StringregisterObjectType(ObjectType objectType)Acknowledges anObjectTypeand returns a key which can be used as a reference to such type
-
-
-
Method Detail
-
registerObjectType
public String registerObjectType(ObjectType objectType)
Acknowledges anObjectTypeand returns a key which can be used as a reference to such type- Parameters:
objectType- anObjectType- Returns:
- a key which acts as a reference to the given type
-
getRegisteredObjectType
public Optional<ObjectType> getRegisteredObjectType(String registrationId)
Recovers anObjectTypewhich was registered throughregisterObjectType(ObjectType).- Parameters:
registrationId- the id that was obtained while registering the type- Returns:
- an
OptionalObjectType
-
getRegisteredObjectTypes
public List<ObjectType> getRegisteredObjectTypes()
- Returns:
- An immutable
Listwith all theObjectTypewhich were registered throughregisterObjectType(ObjectType)
-
-