public void addAttribute ( Attribute attribute , Object value , int beginIndex , int endIndex ) { if ( attribute == null ) { throw new NullPointerException ( ) ; } if ( beginIndex < 0 || endIndex > length ( ) || beginIndex >= endIndex ) { throw new IllegalArgumentException ( "Invalid substring range" ) ; } addAttributeImpl ( attribute , value , beginIndex , endIndex ) ; }
Adds an attribute to a subrange of the string .