@ Override public AttributeConfig_5 [ ] get_attribute_config_5 ( final String [ ] attributeNames ) throws DevFailed { MDC . setContextMap ( contextMap ) ; xlogger . entry ( Arrays . toString ( attributeNames ) ) ; // checkInitialization(); deviceMonitoring . startRequest ( "get_attribute_config_5 " + Arrays . toString ( attributeNames ) ) ; // check if we must retrieve all attributes config final int length = attributeNames . length ; boolean getAllConfig = false ; if ( length == 1 && attributeNames [ 0 ] . contains ( ALL_ATTR ) ) { getAllConfig = true ; } AttributeConfig_5 [ ] result ; if ( getAllConfig ) { logger . debug ( "get All" ) ; final List < AttributeImpl > attrList = getAttributeList ( ) ; // Collections.sort(attrList); result = new AttributeConfig_5 [ attributeList . size ( ) ] ; int i = 0 ; for ( final AttributeImpl attribute : attrList ) { if ( ! attribute . getName ( ) . equals ( STATE_NAME ) && ! attribute . getName ( ) . equals ( STATUS_NAME ) ) { result [ i ++ ] = TangoIDLAttributeUtil . toAttributeConfig5 ( attribute ) ; } } result [ i ++ ] = TangoIDLAttributeUtil . toAttributeConfig5 ( AttributeGetterSetter . getAttribute ( STATE_NAME , attrList ) ) ; result [ i ++ ] = TangoIDLAttributeUtil . toAttributeConfig5 ( AttributeGetterSetter . getAttribute ( STATUS_NAME , attrList ) ) ; } else { result = new AttributeConfig_5 [ attributeNames . length ] ; int i = 0 ; for ( final String attributeName : attributeNames ) { final AttributeImpl attribute = AttributeGetterSetter . getAttribute ( attributeName , attributeList ) ; logger . debug ( "{}:{}" , attributeName , attribute . getProperties ( ) ) ; result [ i ++ ] = TangoIDLAttributeUtil . toAttributeConfig5 ( attribute ) ; } } xlogger . exit ( ) ; return result ; }
Get attributes config . IDL5 version