Class MetamodelToJSONConverter
- java.lang.Object
-
- org.eclipse.basyx.aas.factory.json.MetamodelToJSONConverter
-
public class MetamodelToJSONConverter extends Object
This class can be used to build JSON from Metamodel Objects- Author:
- conradi
-
-
Field Summary
Fields Modifier and Type Field Description static String
ASSET_ADMINISTRATION_SHELLS
static String
ASSETS
static String
CONCEPT_DESCRIPTIONS
static String
SUBMODELS
-
Constructor Summary
Constructors Constructor Description MetamodelToJSONConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
convertToJSON(Collection<AssetAdministrationShell> aasList, Collection<Asset> assetList, Collection<ConceptDescription> conceptDescriptionList, Collection<Submodel> submodelList)
Builds the JSON for the given metamodel Objects.
-
-
-
Field Detail
-
ASSET_ADMINISTRATION_SHELLS
public static final String ASSET_ADMINISTRATION_SHELLS
- See Also:
- Constant Field Values
-
SUBMODELS
public static final String SUBMODELS
- See Also:
- Constant Field Values
-
ASSETS
public static final String ASSETS
- See Also:
- Constant Field Values
-
CONCEPT_DESCRIPTIONS
public static final String CONCEPT_DESCRIPTIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
convertToJSON
public static String convertToJSON(Collection<AssetAdministrationShell> aasList, Collection<Asset> assetList, Collection<ConceptDescription> conceptDescriptionList, Collection<Submodel> submodelList)
Builds the JSON for the given metamodel Objects. Not required parameters can be null.- Parameters:
aasList
- the AASs to build the JSON forassetList
- the Assets to build the JSON forconceptDescriptionList
- the ConceptDescriptions to build the JSON forsubmodelList
- the Submodels to build the JSON for
-
-