private Struct toStruct ( Attributes att ) { int len = att . getLength ( ) ; Struct sct = new StructImpl ( ) ; for ( int i = 0 ; i < len ; i ++ ) { sct . setEL ( att . getQName ( i ) , att . getValue ( i ) ) ; } return sct ; }
cast a Attributes object to a Struct