要从存储库中获取全局资产属性对象,请使用 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");