Class PropertyContainerSerializer
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.structures.properties.PropertyContainerSerializer
Serializes and deserializes
PropertyContainer instances to and from JSON.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class'Serializes' anPropertyContainerSerializer.UndefinedPropertyValuefor JSON serialization. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyContainerdeserialize(StructureType structureType, String json) Deserializes aPropertyContainerfrom a JSON string.static Stringserialize(IStructureConst structure) Serializes thePropertyContainerof the givenStructureto a JSON string.static Stringserialize(IPropertyContainerConst propertyContainerConst) Serializes the givenIPropertyContainerConstto a JSON string.
-
Constructor Details
-
PropertyContainerSerializer
public PropertyContainerSerializer()
-
-
Method Details
-
serialize
Serializes the givenIPropertyContainerConstto a JSON string.- Parameters:
propertyContainerConst- TheIPropertyContainerConstto serialize.- Returns:
- The JSON string representing the
IPropertyContainerConst.
-
serialize
Serializes thePropertyContainerof the givenStructureto a JSON string.- Parameters:
structure- The structure whosePropertyContainerto serialize.- Returns:
- The JSON string representing the
PropertyContainer.
-
deserialize
Deserializes aPropertyContainerfrom a JSON string.- Parameters:
structureType- The structure type to deserialize thePropertyContainerfor.json- The JSON string to deserialize.- Returns:
- The deserialized
PropertyContainer.
-