public String getPathName ( JMFType type ) { if ( type instanceof JSVariant ) { JMFType boxedBy = ( ( JSVariant ) type ) . getBoxedBy ( ) ; if ( boxedBy != null ) type = boxedBy ; } JMFType parent = type . getParent ( ) ; while ( parent instanceof JSRepeated ) parent = parent . getParent ( ) ; if ( parent == null ) return "" ; String prePath = getPathName ( parent ) ; if ( type instanceof JSRepeated ) return prePath ; String segment = type . getFeatureName ( ) ; if ( segment == null ) segment = "[" + getEffectiveSiblingPosition ( type ) + "]" ; if ( prePath . length ( ) > 0 ) return prePath + "/" + segment ; else return segment ; }
Return the most informative possible path name for a JMFType