public < T extends ListValue > Collection < T > listTypeValues ( Class < T > valuesClass ) { IAssetType typeToGet = instance . getMetaModel ( ) . getAssetType ( V1Instance . getAssetTypeToken ( valuesClass ) ) ; Query query = new Query ( typeToGet ) ; FilterTerm assetStateTerm = new FilterTerm ( typeToGet . getAttributeDefinition ( "AssetState" ) ) ; assetStateTerm . notEqual ( AssetState . Closed ) ; query . setFilter ( new AndFilterTerm ( new IFilterTerm [ ] { assetStateTerm } ) ) ; return instance . queryToEntityEnum ( valuesClass , query ) ; }
Gets the active values of a standard list type .