// composite type stored in an array; V1
CompositeType subtypeV1 = new CompositeType( "Subtype1", "Version 1", new String[]{"item1"}, new String[]{"Item 1"}, new OpenType<?>[]{
SimpleType.STRING
}
);
// composite type stored in an array; V2
CompositeType subtypeV2 = new CompositeType( "Subtype2", "Version 2", new String[]{"item1", "item2"}, new String[]{"Item 1", "Item 2"}, new OpenType<?>[]{
SimpleType.STRING,
SimpleType.INTEGER
}
);
// main composite type; V1 // one of the items is array of 'subtypeV1' instances
CompositeType typeV1 = new CompositeType( "MyDataV1", "Version 1", new String[]{"item1", "item2"}, new String[]{"Item 1", "Item 2"}, new OpenType<?>[]{
SimpleType.STRING,
ArrayType.getArrayType(subtypeV1)
}
);
// main composite type; V2 // one of the items is array of 'subtypeV2' instances
CompositeType typeV2 = new CompositeType( "MyDataV2", "Version 2", new String[]{"item1", "item2"}, new String[]{"Item 1", "Item 2"}, new OpenType<?>[]{
SimpleType.STRING,
ArrayType.getArrayType(subtypeV2)
}
); // ***
// *** // construct the data
Map<String, Object> subitemsV1 = new HashMap<>();
Map<String, Object> subitemsV2 = new HashMap<>();
Map<String, Object> itemsV1 = new HashMap<>();
Map<String, Object> itemsV2 = new HashMap<>();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.