public String getElement ( int elementIndex , Form form ) { CharSequence element = this . elements . get ( elementIndex ) ; ElementType type = this . elements . getType ( elementIndex ) ; if ( type . isIndexed ( ) ) { return element . toString ( ) ; } if ( form == Form . ORIGINAL ) { if ( type != ElementType . NON_UNIFORM ) { return element . toString ( ) ; } return convertToOriginalForm ( element ) . toString ( ) ; } if ( form == Form . DASHED ) { if ( type == ElementType . UNIFORM || type == ElementType . DASHED ) { return element . toString ( ) ; } return convertToDashedElement ( element ) . toString ( ) ; } CharSequence uniformElement = this . uniformElements [ elementIndex ] ; if ( uniformElement == null ) { uniformElement = ( type != ElementType . UNIFORM ) ? convertToUniformElement ( element ) : element ; this . uniformElements [ elementIndex ] = uniformElement . toString ( ) ; } return uniformElement . toString ( ) ; }
Return an element in the name in the given form .