private String getLabelValue ( final QName propName , final String attrPropsValue ) { if ( attrPropsValue != null ) { int propStart = - 1 ; if ( attrPropsValue . startsWith ( propName + "(" ) || attrPropsValue . contains ( " " + propName + "(" ) ) { propStart = attrPropsValue . indexOf ( propName + "(" ) ; } if ( propStart != - 1 ) { propStart = propStart + propName . toString ( ) . length ( ) + 1 ; } final int propEnd = attrPropsValue . indexOf ( ")" , propStart ) ; if ( propStart != - 1 && propEnd != - 1 ) { return attrPropsValue . substring ( propStart , propEnd ) . trim ( ) ; } } return null ; }
Get labelled props value .