@ Override public AttributeConfig [ ] get_attribute_config ( final String [ ] attributeNames ) throws DevFailed { MDC . setContextMap ( contextMap ) ; xlogger . entry ( ) ; // checkInitialization(); deviceMonitoring . startRequest ( "get_attribute_config " + 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 [ ] result ; if ( getAllConfig ) { final List < AttributeImpl > attrList = getAttributeList ( ) ; Collections . sort ( attrList ) ; result = new AttributeConfig [ attributeList . size ( ) ] ; int i = 0 ; for ( final AttributeImpl attribute : attrList ) { result [ i ++ ] = TangoIDLAttributeUtil . toAttributeConfig ( attribute ) ; } } else { result = new AttributeConfig [ attributeNames . length ] ; int i = 0 ; for ( final String attributeName : attributeNames ) { final AttributeImpl attribute = AttributeGetterSetter . getAttribute ( attributeName , attributeList ) ; result [ i ++ ] = TangoIDLAttributeUtil . toAttributeConfig ( attribute ) ; } } xlogger . exit ( ) ; return result ; }
Get attributes config . IDL1 version