code: public boolean isTextContent()
     {
        try
        {
           return dataProperty().getType() != PropertyType.BINARY;
        }
        catch (RepositoryException exc)
        {
           LOG.error(exc.getMessage(), exc);
           return false;
        }
     }
docs: if the content of node is text.
  
  @return true if the content of node is text false if not