public TLVElement getFirstChildElement ( int tag ) { for ( TLVElement element : children ) { if ( tag == element . getType ( ) ) { return element ; } } return null ; }
Returns the first child element with specified tag . If tag doesn t exist then null is returned .