可使用 RAMAsset.getAssetAttributes() 和 RAMAsset.getAssetAttribute(String) 来根据资产类型约束获取资产的可用属性。从资产访存属性后,请使用 RAMAsset.setValues(String[]) 来设置该属性的值。
AssetAttribute attribute = newAsset.getAssetAttribute("Custom Attribute");
attribute.setValues(new String[]{"value 1", "value 2", "value 3"});
session.put(newAsset, new NullProgressMonitor());