访存现有资产属性

要从存储库中获取全局资产属性对象,请使用 RAMSession.getAllAssetAttributes()RAMSession.getAssetAttribute(String name)RAMSession.getAssetAttributeByURI(String URI)

                //Fetch all asset attributes
                RAMAssetAttribute[] allAssetAttributes = session.getAllAssetAttributes();
                
                //Fetch an asset attribute by name
                RAMAssetAttribute assetAttribute = session.getAssetAttribute("Asset Attribute Name");

反馈