public void validateElementTag ( ) { String errorMsg = String . format ( ErrorMessages . ERROR_INVALID_TAG_TO_CLASS , getElement ( ) . getTagName ( ) ) ; if ( ! isValidElementTag ( ) ) { throw new IllegalArgumentException ( errorMsg ) ; } }
Verify if the element loaded is a valid element for the class that is representing it .